pydoro
pydoro copied to clipboard
[BUG] Fails to start on Win11 + Python 3.13
Describe the bug
pydoro does not start on Windows 11 after installation via pip with
ModuleNotFoundError: No module named 'pkg_resources'
Note: This issue is fixed by running pip install setuptools. Can this dependency be explicitly added a requirement? On Win11 + pip it looks like setuptools is not installed per default.
To Reproduce Steps to reproduce the behavior:
- On Windows 11 with Python 3.13.2 installed open a PowerShell session, create new venv
python -m venv /path/to/venv/pydoro. Activate environment with/path/to/venv/pydoro/Scripts/Activate.ps1, install pydoropip install pydoro - Run
pydoro(.execan be omitted) - Fails with
(pydoro) PS C:\> pydoro.exe
Traceback (most recent call last):
File "C:\path\to\env\pydoro\pydoro_core\util.py", line 17, in in_app_path
wd = sys._MEIPASS
^^^^^^^^^^^^
AttributeError: module 'sys' has no attribute '_MEIPASS'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\path\to\env\pydoro\Scripts\pydoro.exe\__main__.py", line 7, in <module>
sys.exit(main())
~~~~^^
File "C:\path\to\env\pydoro\Lib\site-packages\pydoro\pydoro_tui.py", line 127, in main
config = Configuration()
File "C:\path\to\env\envs\pydoro\Lib\site-packages\pydoro\pydoro_core\config.py", line 14, in __init__
self._cli_load()
~~~~~~~~~~~~~~^^
File "C:\path\to\env\pydoro\Lib\site-packages\pydoro\pydoro_core\config.py", line 142, in _cli_load
self.audio_file = self.cli_args.audio_file or self.audio_file or in_app_path("b15.wav")
~~~~~~~~~~~^^^^^^^^^^^
File "C:\path\to\env\pydoro\Lib\site-packages\pydoro\pydoro_core\util.py", line 20, in in_app_path
return _from_resource(path)
File "C:\path\to\env\pydoro\Lib\site-packages\pydoro\pydoro_core\util.py", line 24, in _from_resource
from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'
Expected behavior Normal startup
Desktop (please complete the following information):
- OS: Windows
- Version 11