Ubuntu Linux 20.10 working #889
KlfJoat
started this conversation in
Show and tell
Replies: 3 comments 2 replies
-
|
Thanks for the well-written tutorial 👍 I'll link this in the readme soon. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Changelog
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Just to share that now with Python 3.9.4 as default in Ubuntu 21.04, there's no need to do a virtual environment and the process is straightforward. Running a test, I checked that the only thing that's missing is 'pip' but you only need to install it:
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit: These instructions are not necessary in Ubuntu 21.04. Just run
./start_ofd.py!FYI, I've got this working in Linux under Ubuntu 20.10. Here's my setup, in case others might find it helpful.
Disclaimers:
I am no programmer, I'm a sysadmin. And I provide no warranties or support for this setup. This is what worked for me, it might not work for you. But hopefully, it will point you in the right directions.
The main problem is that the default Ubuntu 20.10
pythonis v2.7.18 andpython3is 3.8.6 (not 3.9, as this script requires). So the solution involves installing python3.9 and then using avenvwhenever updating and running this code.I am personally running each of these as a script, but here are the core parts.
Setup
These are one-time setup steps. You should only need to do this on new Linux installs.
sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update && sudo apt install python3.9 python3.9-venv python3.9-devvenvin the repo rootWe'll call it
venv.Ensure that you are in the root directory of this repository!
Updates
Every time we pull the repo, we need to make sure we activate the
venvand grab any updates in the possibly updatedrequirements.txtfile.Run
Every time we run, we need to activate the
venvbefore starting the script.(technically, the
sourcecommand only needs to be done once per session, but it hurts nothing to do it repeatedly)Resources
I used the following links to help me.
Beta Was this translation helpful? Give feedback.
All reactions