Skip to content

Poetry build fails with new filelock bugfix version  #343

@wassupxP

Description

@wassupxP

Hi guys, new bugfix release broke all poetry build. Seems that the bugfix changed API, is this intended? I believe this can be reproduced on any python package when building via poetry.

pip install poetry
poetry build
Traceback:
Traceback (most recent call last):
  File "/opt/contrib/lib/python3.9/site-packages/filelock/_api.py", line 388, in __del__
Exception ignored in: <function BaseFileLock.__del__ at 0x10684e940>
Traceback (most recent call last):
  File "/opt/contrib/lib/python3.9/site-packages/filelock/_api.py", line 388, in __del__
    self.release(force=True)
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/util/lock.py", line 34, in release
    with self.thread_safe:
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
    self.release(force=True)
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/util/lock.py", line 34, in release
    with self.thread_safe:
AttributeError: '_CountedFileLock' object has no attribute 'thread_safe'
failed to build image setuptools, pip because:
Traceback (most recent call last):
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/opt/contrib/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/util/lock.py", line 142, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / f"{name}.lock")):
  File "/opt/contrib/lib/python3.9/site-packages/filelock/_api.py", line 117, in __call__
    instance = super().__call__(
TypeError: __init__() got an unexpected keyword argument 'timeout'
Traceback (most recent call last):
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 54, in _install
    with parent.non_reentrant_lock_for_key(wheel_img.name):
  File "/opt/contrib/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/opt/contrib/lib/python3.9/site-packages/virtualenv/util/lock.py", line 142, in non_reentrant_lock_for_key
    with _CountedFileLock(str(self.path / f"{name}.lock")):
  File "/opt/contrib/lib/python3.9/site-packages/filelock/_api.py", line 117, in __call__
    instance = super().__call__(
TypeError: __init__() got an unexpected keyword argument 'timeout'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions