Closed
Description
When trying to install this module from source, we need the setuptools
module.
This is what I get:
(venv) william@x99:~/python-onvif-zeep-async$ python setup.py install
Traceback (most recent call last):
File "/home/william/python-onvif-zeep-async/setup.py", line 5, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'
I have done a little googling and found two noteworthy discussions online:
- setuptools included in requirements.txt generation pypa/pipenv#1417
- https://www.reddit.com/r/learnpython/comments/svk4fq/should_setuptools_be_in_requirementstxt_in_this/
From the above discussion, it seems that setuptools
should have been installed if we have pip
. However, it is not the case in my situation, both on Ubuntu 24.04.1, and on Arch Linux (fully updated).
This is on Ubuntu 24.04.1:
(venv) william@x99:~/python-onvif-zeep-async$ python3 setup.py install
Traceback (most recent call last):
File "/home/william/python-onvif-zeep-async/setup.py", line 5, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'
This is on Arch Linux:
(venv) [william@t480s python-onvif-zeep-async]$ python setup.py install
Traceback (most recent call last):
File "/home/william/python-onvif-zeep-async/setup.py", line 5, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'
After installing setuptools
inside the virtual environment, I was able to install the package (inside the virtual environment).
So I'm thinking setuptools
should be included in either requirements.txt
or requirements_dev.txt
... right?
Metadata
Metadata
Assignees
Labels
No labels