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

Installation error #71

Closed
maserowik opened this issue Sep 18, 2024 · 2 comments
Closed

Installation error #71

maserowik opened this issue Sep 18, 2024 · 2 comments

Comments

@maserowik
Copy link

maserowik commented Sep 18, 2024

trying to install the webgui and I am getting the following message when i issue the install command. Any ideas?

sysop@DX-Spider:~/spider/spiderweb $ pip install -r requirements.txt
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

@videobuff
Copy link

I have used the --break-system-packages method, and so far it did not break my server (debian 12). However i got stuck on minifying css. I make a separate issue
PA0ESH

@maserowik
Copy link
Author

maserowik commented Oct 16, 2024

So to get past the message my blocker here is what I did
sudo apt install python3-full libev-dev libevdev2
cd spiderweb
python3 -m venv --system-site-packages venv
source venv/bin/activate
I then had the this as a prompt to show I was in my virtual environment (venv) sysop@dx-spider:~/spiderweb$
python -m pip install --upgrade pip
python -m pip install -r requirments.txt
deactivate

now back to normal prompt sysop@dx-spider:~/spiderweb$
cp /home/sysop/spiderweb/cfg/config.json.template /home/sysop/spiderweb/cfg/config.json
cd ..
cd scripts
./config.sh
made my changes
cd..
did a source venv/bin/activate
python webapp.py and tested with 192.168.55.156:5000
everything worked
then did a deactivate

I then needed to install bjoern
so I issued a
source venv/bin/activate
back to my virtual environment (venv) sysop@dx-spider:~/spiderweb$
issues a pip3 install bjoern
deactivate

This is how I has to set up my siderweb.service
[Unit]
Description=bjoern instance spiderweb
After=network.target
After=multi-user.target

[Service]
User=sysop
Group=www-data
Type=simple
WorkingDirectory=/home/sysop/spiderweb
Environment="PATH=/home/sysop/spiderweb"
ExecStart=/home/sysop/spiderweb/venv/bin/python3 /home/sysop/spiderweb/wsgi.py

[Install]
WantedBy=multi-user.target

i have to use my virtual python3 in order for the service to start.

upon completion I see now that the website is on 192.168.55.156:8080 not sure how it changed from 5000 to 8080 but it appears to be working.

Not sure if this is the correct way but it is working for me,

Mike- N3bsq

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