JaDogg / pydoro

🍅 pydoro - Terminal Pomodoro Timer
MIT License
537 stars 46 forks source link

Install with pipx under 3.12.3 will not run #344

Open ssteinerx opened 2 months ago

ssteinerx commented 2 months ago

Install

ssteiner@B450M-DS3H:~
$ pipx install pydoro
  installed package pydoro 0.2.3, installed using Python 3.12.3
  These apps are now globally available
    - pydoro
done! ✨ 🌟 ✨

Run, crash

ssteiner@B450M-DS3H:~
$ pydoro
Traceback (most recent call last):
  File "/home/ssteiner/.local/pipx/venvs/pydoro/lib/python3.12/site-packages/pydoro/pydoro_core/util.py", line 17, in in_app_path
    wd = sys._MEIPASS
         ^^^^^^^^^^^^
AttributeError: module 'sys' has no attribute '_MEIPASS'

Desktop (please complete the following information):

github-actions[bot] commented 2 months ago

Thank you for creating an issue. I'll take a look soon as I can.

thairanaru commented 1 month ago

I can replicate using Python 3.12.4 on Fedora Linux 40

47ronin commented 1 week ago

Error replicated in macOS Sonoma 14.6.1 using pipx

shayan15sa commented 4 days ago

I can replicate using pipx 1.4.3 python 3.12.3 linux mint 22 too.

Full error: pygame 2.6.0 (SDL 2.28.4, Python 3.12.3) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/site-packages/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 "/home/shayan/.local/bin/pydoro", line 8, in sys.exit(main()) ^^^^^^ File "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/site-packages/pydoro/pydoro_tui.py", line 127, in main config = Configuration() ^^^^^^^^^^^^^^^ File "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/site-packages/pydoro/pydoro_core/config.py", line 14, in init self._cli_load() File "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/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 "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/site-packages/pydoro/pydoro_core/util.py", line 20, in in_app_path return _from_resource(path) ^^^^^^^^^^^^^^^^^^^^ File "/home/shayan/.local/share/pipx/venvs/pydoro/lib/python3.12/site-packages/pydoro/pydoro_core/util.py", line 24, in _from_resource from pkg_resources import resource_filename ModuleNotFoundError: No module named 'pkg_resources'