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

"pip install ninfo" not runable #20

Open
shane-kerr opened this issue Oct 17, 2024 · 1 comment
Open

"pip install ninfo" not runable #20

shane-kerr opened this issue Oct 17, 2024 · 1 comment
Assignees

Comments

@shane-kerr
Copy link

I tried the simplest install using pip:

$ mkdir ninfo
$ cd ninfo
$ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install --upgrade pip
$ python3 -m pip install ninfo

Then I tried to list modules:

$ ninfo -l
Traceback (most recent call last):
  File "/home/shane/tmp/ninfo/venv/bin/ninfo", line 5, in <module>
    from ninfo import main
  File "/home/shane/tmp/ninfo/venv/lib/python3.12/site-packages/ninfo/__init__.py", line 1, in <module>
    from pkg_resources import iter_entry_points
ModuleNotFoundError: No module named 'pkg_resources'

This is on an otherwise working Ubuntu system:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
$ uname -a
Linux earth 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ python3 -V
Python 3.12.3
@JustinAzoff JustinAzoff self-assigned this Oct 20, 2024
@JustinAzoff
Copy link
Collaborator

ah, this is due to python3.12 deprecating installing those modules by default and that API:

mu-editor/mu#2485

In the meantime, python3 -m pip install setuptools will get things working and that can be added as a dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants