Skip to content

setuptools missing in dependencies (pkg_resources) #63

@Marwe

Description

@Marwe

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions