Skip to content

msvcrt.locking permission denied #17

@valentinpreda

Description

@valentinpreda

Trying to compile a model on a Window 10 machine using Python 3.12.2 but the following error gets thrown:

File "C:\temp\.venv\Lib\site-packages\pysimlink\lib\model.py", line 130, in _unlock
rv = msvcrt.locking(f.fileno(), msvcrt.LK_UNLCK, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied

Commenting out line 71 self._lock() and 83 self._unlock() in model.py fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions