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

[Bug] Will not run in Ubuntu 24.04 #110

Open
bcook128 opened this issue May 13, 2024 · 7 comments
Open

[Bug] Will not run in Ubuntu 24.04 #110

bcook128 opened this issue May 13, 2024 · 7 comments
Labels
bug Something isn't working urgent
Milestone

Comments

@bcook128
Copy link

Describe the bug

Result of running konsave with ANY arguments:

Traceback (most recent call last):
File "/home/brad/.local/bin/konsave", line 5, in
from konsave.main import main
File "/home/brad/.local/share/pipx/venvs/konsave/lib/python3.12/site-packages/konsave/init.py", line 3, in
from pkg_resources import get_distribution, DistributionNotFound
ModuleNotFoundError: No module named 'pkg_resources'

System:
Ubuntu 24.04

Python version:
Python 3.12.3

konsave Version:
konsave 2.2.0

Setuptools Version:
setuptools 68.1.2

Installed via pipx

@hueyy
Copy link

hueyy commented May 16, 2024

Could this be related to #99?

@Prayag2 Prayag2 changed the title Will not run in Ubuntu 24.04 [Bug] Will not run in Ubuntu 24.04 May 18, 2024
@Prayag2
Copy link
Owner

Prayag2 commented May 18, 2024

pkg_resources has been deprecated and I haven't got the time to update it. I'll fix this in the next release, until then, you may install setuptools to fix this issue:

On Arch:
sudo pacman -S python-setuptools

Using Pip
pip install setuptools

@Prayag2 Prayag2 added bug Something isn't working urgent labels May 18, 2024
@Prayag2 Prayag2 added this to the v2.3.0 milestone May 18, 2024
@paulo-roger
Copy link

Same error in Garuda Linux.

All the same versions and output from OP here too.

@tazmo
Copy link

tazmo commented Jun 10, 2024

Unfortunately installing python3-setuptools in Ubuntu 24.04 does not appear to fix it.

@bcook128
Copy link
Author

Unfortunately installing python3-setuptools in Ubuntu 24.04 does not appear to fix it.

Anything later than Ubuntu 22.04 doesn't like pip. You most likely installed konsave with pipx so you'll have to "pipx inject konsave setuptools" to install into the konsave virtual environment. That should make it available for konsave to use and fix the issue in 24.04

@tazmo
Copy link

tazmo commented Jun 11, 2024

Exactly @bcook128. I should have added using pipx to my comment above... I am using pipx on 24.04 and after doing the "pipx inject konsave setuptools", that worked for Ubuntu 24.04. konsave seems to work now (for me). Thank you for the response.

@youngstroker
Copy link

Exactly @bcook128. I should have added using pipx to my comment above... I am using pipx on 24.04 and after doing the "pipx inject konsave setuptools", that worked for Ubuntu 24.04. konsave seems to work now (for me). Thank you for the response.

Can confirm, this does work for now, thank you.

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

No branches or pull requests

6 participants