Permission error when running pip install, and again when running collectstatic script #15666
Replies: 2 comments 2 replies
-
(No need to separately activate the venv) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've installed the latest Netbox and used workarounds to install the floorplan plugin, then restart services as per the plugin install guide.
In netbox I can't see the floorplan tab under my test location, which indicates that the plugin isn't loading correctly.
The plugin is however showing in netbox admin GUI as being installed, and the version is 0.3.6 which looks good.
I suspect I have set the user permissions up wrong, or one of the processes netbox uses isn't able to access this plugin, or my workarounds have caused issue.
Permission error during pip install:
^Workaround was to manually move the 2x folders that pip3 downloaded (netbox_floorplan and netbox_floorplan_plugin-0.3.6.dist-info) into /opt/netbox-3.7.4/venv/lib/python3.10/site-packages
i.e:
sudo mv /usr/local/lib/python3.10/dist-packages/netbox_floorplan /opt/netbox/venv/lib/python3.10/site-packages/
sudo mv /usr/local/lib/python3.10/dist-packages/netbox_floorplan_plugin-0.3.6.dist-info /opt/netbox/venv/lib/python3.10/site-packages/
Permission error during collectstatic script:
The workaround was to run the below command, which worked.
sudo /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic
The output was that 5 files were migrated, and I checked and they were actually there in the static folder.
Then I restarted netbox as per the plugins documentation, but no success.
I'm quite new to virtual environments and also pip so the answer here is probably pretty basic. Any help is greatly appreciated.
Cheers,
Hamish
Beta Was this translation helpful? Give feedback.
All reactions