-
Notifications
You must be signed in to change notification settings - Fork 31
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
plugin installs will not show up on any dcim page. 4.0.2/0.0.12 #75
Comments
Hi, absolutely the right place, I'll see if I can replicate this. |
out standing. please let me know if i can give you any information. it was a new install as i am just starting. its running on a rocky 9.4 distro and i was using the venv environment. |
I'm having the same issue. I installed 4.0.5 of Netbox and the latest qecode and It shows nothing. In the admin/system the plugin is loaded |
i am not using the docker version, i am using the downloaded package install method. i am not sure where the qr code shows up, but i have been looking for it on the device page and rack page. not sure if it is anywhere else. i ran the collectstatic command and got back: i also upgraded to 4.0.5 to see if that made a difference, and it did not. i have attached the debug log for me loading the page for a device. |
Thanks for doing this ; it was just a random thought.
Hm that log shows a few errors but all are NetBox template based rather than QR. Is that log from a simple device (ie: 1ru single device) or a fairly complex (module bays, etc etc) ? You should see a QR code on devices and racks (you can see the list via QRCode classes) |
The Earlier one is from a complex device. This log is a simple cable manager so there is no ports or anything. so i dont see anything anywhere. |
I'm going to try this on a dedicated VM this eve to see if that makes a difference. In theory it shouldn't; Rocky 9.4 ? |
The OS is : |
Hi Homer, which python version are you running as 9.4 ships with 3.9 which is unsupported by NetBox 4.x; and how was this installed ? also which installation of Rocky (ie: minimal etc) we think this is missing libraries and is potentially not a plugin issue. |
i am using Python 3.12.1 (main, Feb 19 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)]. i used dnf to install it. i used the Application Streams to install it. ok. what do you recommend for the type of installation as i dont remember what i used. i can put up another box and try it again. |
Hi Homer, still can't replicate. As said we think this might be a missing library somewhere from possibly a minimal installation. My output:
min libs for pillow:
unsure on pip qrcode libs. (venv) [root@localhost netbox]# uname -a |
i am currently rebuilding the server. i'll let you know if it works when i get done. on the current server i am getting the same versions of all the software execpt netbox-qrcode, i am getting version 0.0.13. |
@HomerJaySimpson13 are you also the Redditor behind this thread? |
ok. so i twice rebuilt the server using both another rocky 9.4 install and a ubunbtu 24.0.4. it get the same results. NetBox version | 4.0.5 so in the end it must be something i am doing. i just cant figure out what it is. |
if i have debuging logging turned on, should i be seeing anything about qrcode? when i grep the log, i see nothing with qr in it. |
2、The only difference is the libjpeg version, which is. |
My only comment so far is that both RHEL and Rocky are running older version of quite a few things. The base python version as an example is below the one NetBox supports. Can I asked what installation type was used please ? ie: minimal; etc ? and also how python was installed given the OS version isn't compatible ? |
Hi... I'm using ubuntu 20.04.6 and I have the same issue. I read above posts and I share the details of version: NetBox version | 4.0.5 I'm not using docker, I'm using the git version |
I installed on a brand new ubuntu server 22.04.4 netbox, migrated the data and it's working.... There is issue with ubuntu 20.04.6 with python 3 installed by another way. ubuntu 20.04.6 doesn't have supported python3 version required by netbox |
Thanks for doing this and it fits what I think is happening with rocky.
Rocky's python version is 3.9 which is unsupported netbox 4. I have a
feeling the non os distro python being installed on these rocky instances
is causing the problem. It has to be that or a minimal installation or
similar.
…On Fri, 21 Jun 2024, 00:52 Ruben Cheng, ***@***.***> wrote:
I installed on a brand new ubuntu server 22.04.4 netbox, migrated the data
and it's working.... There is issue with ubuntu 20.04.6 with python 3
installed by another way. ubuntu 20.04.6 doesn't have supported python3
version required by netbox
—
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKJY366RI75TNUFISGGGOLZINTLXAVCNFSM6AAAAABJEVOTMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRG42DCMJWGY>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
I had this problem on AlmaLinux 8.10 after installing python 3.12 and Netbox 4.06. I think the problem may be that pkg_resources (netbox_qrcode/utilities.py) is deprecated and removed in Python 3.12. What fixed it for me was "pip install setuptools" and restart netbox. |
thanks @brourk ; @rcalpha @supertasksupertask @HomerJaySimpson13 - can you try this fix as above please ? I'll look at replacing pkg_resources with importlib for a future version |
i just ran the pip install setuptools and it fixed it. Thanks everyone for helping out! |
Was having this issue on Ubuntu 24.04, with netbox 4.0.9, "pip install setuptools" fixed the issue |
Thanks ! It works for me. (python 3.12 , netbox 4.0.9) |
may be we just need to include setuptools to install_requires |
i have netbox 4.0.2 running fine. i installed the qrcode plugin and it shows on the admin>system that the plug is loaded. But when i go to any page that would need a qrcode, there is none. it doesn't show anything, i ran the debug log and it shows it loading, i really have no idea where to look to even see what is wrong. Thanks for any assistance. i'm not even sure this is the place to post this question.
The text was updated successfully, but these errors were encountered: