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

Install with pipx under 3.12.3 will not run #344

Open
ssteinerx opened this issue Jun 17, 2024 · 5 comments
Open

Install with pipx under 3.12.3 will not run #344

ssteinerx opened this issue Jun 17, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ssteinerx
Copy link

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):

  • OS: Linux
  • Version Kubuntu 24.04
@ssteinerx ssteinerx added the bug Something isn't working label Jun 17, 2024
Copy link

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

@thairanaru
Copy link

I can replicate using Python 3.12.4 on Fedora Linux 40

@47ronin
Copy link

47ronin commented Aug 28, 2024

Error replicated in macOS Sonoma 14.6.1 using pipx

@shayan15sa
Copy link

shayan15sa commented Sep 1, 2024

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'

@vnj0x61
Copy link
Contributor

vnj0x61 commented Oct 31, 2024

Hi,
i had the same problem. Here is a fix which is working for me:

https://github.com/JaDogg/pydoro/pull/348/files

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

No branches or pull requests

6 participants