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

setuptools missing in dependencies (pkg_resources) #63

Open
Marwe opened this issue Feb 2, 2025 · 0 comments
Open

setuptools missing in dependencies (pkg_resources) #63

Marwe opened this issue Feb 2, 2025 · 0 comments

Comments

@Marwe
Copy link

Marwe commented Feb 2, 2025

Package setuptools is a dependency, otherwise this error about missing package pkg_resources occurs.
Can easily be solved by installing setuptools:

user@box:~$ python -m venv ~/.virtualenvs/luftdatenpumpe
user@box:~$ . ~/.virtualenvs/luftdatenpumpe/bin/activate
(luftdatenpumpe) user@box:~$ pip install luftdatenpumpe
(luftdatenpumpe) user@box:~$ luftdatenpumpe

Traceback (most recent call last):
  File "/home/user/.virtualenvs/luftdatenpumpe/bin/luftdatenpumpe", line 5, in <module>
    from luftdatenpumpe.commands import run
  File "/home/user/.virtualenvs/luftdatenpumpe/lib/python3.12/site-packages/luftdatenpumpe/commands.py", line 12, in <module>
    from luftdatenpumpe.engine import LuftdatenEngine
  File "/home/user/.virtualenvs/luftdatenpumpe/lib/python3.12/site-packages/luftdatenpumpe/engine.py", line 8, in <module>
    from munch import Munch
  File "/home/user/.virtualenvs/luftdatenpumpe/lib/python3.12/site-packages/munch/__init__.py", line 24, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
(luftdatenpumpe) user@box:~$ which luftdatenpumpe 
/home/user/.virtualenvs/luftdatenpumpe/bin/luftdatenpumpe

(luftdatenpumpe) user@box:~$ pip install setuptools
Collecting setuptools
  Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
Successfully installed setuptools-75.8.0

(luftdatenpumpe) user@box:~$ luftdatenpumpe 
Usage:
     luftdatenpumpe networks [--network=<network>]
     luftdatenpumpe stations --network=<network> [options] [--target=<target>]...
     luftdatenpumpe readings --network=<network> [options] [--target=<target>]... [--timespan=<timespan>]
     luftdatenpumpe database --network=<network> [--target=<target>]... [--create-views] [--grant-user=<username>] [--drop-data] [--drop-tables] [--drop-database]
     luftdatenpumpe grafana --network=<network> --kind=<kind> --name=<name> [--variables=<variables>] [--fields=<fields>]
     luftdatenpumpe --version
     luftdatenpumpe (-h | --help)

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

1 participant