Skip to content
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

Problems in the installation Using Python [SOLVED] #117

Closed
juniornff opened this issue Sep 7, 2024 · 1 comment
Closed

Problems in the installation Using Python [SOLVED] #117

juniornff opened this issue Sep 7, 2024 · 1 comment

Comments

@juniornff
Copy link

juniornff commented Sep 7, 2024

I'm using:
OS: Debian GNU/Linux 12 (bookworm) x86_64
DE: GNOME 43.9

This is more of an explanation of how I solved the problems when trying to install and use the program, to document it in case someone needs it in the future.

This is all the guide tells you so far:

$ git clone --recurse-submodules https://github.com/a1ex4/ownfoil
$ cd ownfoil
$ pip install -r requirements.txt
$ python app/app.py

Although it mentions that pip is used, not necessarily the one following the guide has it installed.

Then, when running $ pip install -r requirements.txt, the message reported in #90 appears, although the solution given was to add the --break-system-packages argument, but I consider that to be too abrupt to simply run a web server. For that, the same error message recommends the creation of a virtual environment, but that requires the installation of the virtual environment management package.

So I consider these two commands as Prerequisites:

$ sudo apt install python3-pip -y
$ sudo apt-get install python3-venv

And now, these would be the commands:

$ git clone --recurse-submodules https://github.com/a1ex4/ownfoil
$ cd ownfoil
# Create the virtual environment
$ python3 -m venv venv/
# Activate the virtual environment
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python app/app.py

So every time i go to start the app:

$ cd path/to/ownfoil
$ source venv/bin/activate && python3 app/app.py && deactivate

When closing the app with Ctrl + C, the deactivate command exit the virtual environment

I leave the issue open for comments/feedback. Close it if you wish.

@a1ex4
Copy link
Owner

a1ex4 commented Oct 6, 2024

Thanks for the detailed instructions, although this is standard Python environment usage, so I don't want to fill the docs with these external steps.
Glad you could make it work, I'm sure it will help others too 👍

@a1ex4 a1ex4 closed this as completed Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants