Can't run venv
#10028
Replies: 2 comments 5 replies
-
I did start by manually patching the upgrade.sh file: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe I'm misreading but wouldn't you want
$ source /opt/netbox/venv/bin/activate
the "source" shell command is a built-in that reads a file and evals it, so you can import a bunch of variables into your current shell environment, and it's how python virtualenvs work, by setting the various python library path environment config variables to point inside the venv directory structure and not the default system paths, overriding them.
is your /bin/sh one that doesn't have the "source" built-in command, it might have one called "." instead eg.
$ . /opt/netbox/venv/bin/activate
that's the older name for this functionality IIRC
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: Lewdoz ***@***.***>
Sent: Tuesday, August 16, 2022 2:57 PM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] Can't run venv (Discussion #10028)
When I run:
'''source /opt/netbox/venv/bin/python3'''
I get a result o:
'''/bin/sh: 136: source: not found'''
I have followed the instructions on Netbox.dev and Vultr, which worked just fine on an Ubuntu kernel. I'm working on Debian 7 now. I have attempted all of the fixed on the forums, reinstalling pip3, installing missing dependencies and I set up gunicorn. Any help or troubleshooting assistance would be greatly appreciated.
—
Reply to this email directly, view it on GitHub<#10028>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM4TM4APEIE3XKXHFWDVZPXDRANCNFSM56XBZ6EQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Lewdoz
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.
-
When I run:
'''source /opt/netbox/venv/bin/python3'''
I get a result o:
'''/bin/sh: 136: source: not found'''
I have followed the instructions on Netbox.dev and Vultr, which worked just fine on an Ubuntu kernel. I'm working on Debian 7 now. I have attempted all of the fixed on the forums, reinstalling pip3, installing missing dependencies and I set up gunicorn. Any help or troubleshooting assistance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions