-
Notifications
You must be signed in to change notification settings - Fork 95
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
ModuleNotFoundError: No module named 'pkg_resources' #141
Comments
Hi,
and I so edited the .env file:
So I don't know what credentials are missing? This Token was generated under Admin. Thanks. |
I'm currently running into the same problem. After some research, it seems to be a problem with the pynetbox package that is used here. I've found the issue for it there => netbox-community/pynetbox#612 |
OK and how I need to update it, while it looks that still revert back to the 7.0.1 and will it help while now I have a fallback to the first error. I have chenged the in the Importer requirments.txt file the pynetbox from 7.0.1 to 7.3.3 but still hav ethe same error. |
After changing the line in the query.py locally, it works just fine, since the required API-Version is also in the 403 header. If you're facing this issue, you can use the following workaround: (I assume you have already installed the requirements and are in the python3 venv where those are installed) Open the file: nano venv/lib/python3.12/site-packages/pynetbox/core/query.py Edit the line according to this comment: netbox-community/pynetbox#612 (comment) |
Hi, |
According to your error you should edit the one that is located at |
OK I have it and it works, only I needed something to understand the python and find the needed place.
and ended with:
Thanks. |
So at second time has finished it correctly and imported all. |
Glad it worked for you! Please remember to close the issue. |
The issue was resolved with an work around:
Edit the line according to this comment: netbox-community/pynetbox/issues/612 |
Hello still i get this error, any fix for it please ? root@netbox01:/home/netadmin/Device-Type-Library-Import# ./nb-dt-import.py |
Hi,
I try to import the Device Library, but it will not work.
I follow each step but when I try to run this command: ./nb-dt-import.py
Then I get this error message:
Traceback (most recent call last):
I'm running on Ubuntu 24.04 TLS Server and NetBox 4.0.3 with Python 3.12.3.
Please can you help me to resolve it?
The text was updated successfully, but these errors were encountered: