Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied error on startup #256

Closed
Landeers opened this issue Aug 31, 2023 · 3 comments · Fixed by #262
Closed

Access denied error on startup #256

Landeers opened this issue Aug 31, 2023 · 3 comments · Fixed by #262
Assignees
Labels
bug Something isn't working windows Windows related issue
Milestone

Comments

@Landeers
Copy link
Contributor

Landeers commented Aug 31, 2023

version : 0.14.0
platform : windows 22h2 build 19045

Error on startup :

  File "PyInstaller\loader\pyimod03_ctypes.py", line 53, in __init__
  File "ctypes\__init__.py", line 374, in __init__
PermissionError: [WinError 5] Accès refusé

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "launch_script.py", line 15, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "resana_secure\__init__.py", line 37, in <module>
  File "resana_secure\__init__.py", line 15, in _monkeypatch_user_agent
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "parsec\__init__.py", line 18, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "parsec\utils.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "trio\__init__.py", line 22, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "trio\_core\__init__.py", line 27, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "trio\_core\_run.py", line 34, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 493, in exec_module
  File "trio\_core\_thread_cache.py", line 66, in <module>
  File "trio\_core\_thread_cache.py", line 42, in get_os_thread_name_func
  File "PyInstaller\loader\pyimod03_ctypes.py", line 55, in __init__
pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'C:\\windows\\system32\\pthread.dll'. Most likely this dynlib/dll was not found when the application was frozen.
@Landeers Landeers added the bug Something isn't working label Aug 31, 2023
@FirelightFlagboy FirelightFlagboy changed the title BUG error on startup [BUG] Access denied error on startup Sep 1, 2023
@FirelightFlagboy FirelightFlagboy changed the title [BUG] Access denied error on startup Access denied error on startup Sep 1, 2023
@FirelightFlagboy FirelightFlagboy added the windows Windows related issue label Sep 1, 2023
@FirelightFlagboy
Copy link
Contributor

The error indicate that you're missing the pthread lib on windows

Failed to load dynlib/dll 'C:\windows\system32\pthread.dll'.

@Landeers
Copy link
Contributor Author

Landeers commented Sep 1, 2023

Try to add a pthread.dll file into install folder to reproduce bug.

Possible fix : update trio from 0.22.1 to 0.22.2

@vxgmichel
Copy link
Contributor

Corresponding issue on trio: python-trio/trio#2688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Windows related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants