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

[BUG] Error installing pyload #1046

Open
braindeadxxl24 opened this issue Jul 23, 2023 · 3 comments
Open

[BUG] Error installing pyload #1046

braindeadxxl24 opened this issue Jul 23, 2023 · 3 comments
Labels

Comments

@braindeadxxl24
Copy link

What happened?

Steps to reproduce:

sudo box
install -> pyload

Expected results:
installing pyload

result:
INFO -e
... Removing 3 packages
(tesseract-ocr gocr rhino)
✔ Apt remove complete
INFO Installing pyload
... Performing installation of 3 apt packages
(tesseract-ocr gocr rhino)
✔ Apt install complete
... Setting up the pyload venv
✔ Venv set up
... Installing python dependencies
✔ Done
... Cloning pyLoad
✔ Done
... Configuring pyLoad
✔ Done
... Initalizing database
ERROR Something went wrong with user setup -- you will be unable to
login
Please consult the above and/or check the log (less -R +G
/root/logs/swizzin.log)
... Insatlling systemd service
✔ Done
... Configuring nginx
✔ Done
... Enabling and starting pyLoad services
✔ Done
SUCCESS PyLoad installed

pyload is displayed in webui but when you click on it you get a "502 Bad Gateway" from nginx
swizzin.log

Swizzin commit

3.9.1 Stable

What OS are you using?

Ubuntu 20.04 (Focal)

What architecture is your OS?

amd64

Relevant logs and output

The following NEW packages will be installed:
  rhino
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/14.0 kB of archives.
After this operation, 56.3 kB of additional disk space will be used.
Selecting previously unselected package rhino.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40>
Preparing to unpack .../rhino_1.7.7.1-1_all.deb ...
Unpacking rhino (1.7.7.1-1) ...
Setting up rhino (1.7.7.1-1) ...
update-alternatives: using /usr/bin/rhino to provide /usr/bin/js (js) in auto mode
Processing triggers for man-db (2.9.1-1) ...
^[[2m[Sun Jul 23 22:36:33]^[(B^[[m ^[[36mLOG    No failures in apt log found^[(B^[[m
^[[2m[Sun Jul 23 22:36:33]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mApt install complete^[(B^[[m
^[[2m[Sun Jul 23 22:36:34]^[(B^[[m ^[[36mLOG    pip is available^[(B^[[m
^[[2m[Sun Jul 23 22:36:35]^[(B^[[m ^[[2m...     Setting up the pyload venv^[(B^[[m
created virtual environment CPython2.7.18.final.0-64 in 487ms
  creator CPython2Posix(dest=/opt/.venv/pyload, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1
  activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator
^[[2m[Sun Jul 23 22:36:35]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mVenv set up^[(B^[[m
^[[2m[Sun Jul 23 22:36:35]^[(B^[[m ^[[2m...     Installing python dependencies^[(B^[[m
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support i>
Requirement already satisfied: wheel in /opt/.venv/pyload/lib/python2.7/site-packages (0.37.1)
Requirement already satisfied: setuptools<45 in /opt/.venv/pyload/lib/python2.7/site-packages (44.1.1)
Processing /root/.cache/pip/wheels/3a/b8/34/2dcec21974f06e1541443bc5b33656d003d3f926671a1c69d6/pycurl-7.43.0.5-cp27-cp27mu-linux_x86_64.whl
Processing /root/.cache/pip/wheels/b6/e6/c8/d1eca13628952ceec1d40d96e0a7a1380460d2349ce0b85312/pycrypto-2.6.1-cp27-cp27mu-linux_x86_64.whl
Processing /root/.cache/pip/wheels/d5/a4/2d/d79cea5b35526890a1f6631c1b1c11b869d00fcc5ab56212db/tesseract-0.1.3-py2-none-any.whl
Collecting pillow
  Using cached Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1 MB)
Collecting pyOpenSSL
  Using cached pyOpenSSL-21.0.0-py2.py3-none-any.whl (55 kB)
Processing /root/.cache/pip/wheels/49/3a/18/4f3a75cf51cb2491b055063b4dd26221858185f6a47e6947fb/Js2Py-0.74-py2-none-any.whl
Processing /root/.cache/pip/wheels/d4/3c/a1/fd7bcf389a776ce0be95e1e3176421b92dd24d0b78a58908a1/feedparser-5.2.1-py2-none-any.whl
Collecting beautifulsoup
  Using cached BeautifulSoup-3.2.2-py2-none-any.whl (32 kB)
Collecting six>=1.5.2
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting cryptography>=3.3
  Using cached cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6 MB)
Collecting tzlocal>=1.2
  Using cached tzlocal-2.1-py2.py3-none-any.whl (16 kB)
Collecting pyjsparser>=2.5.1
  Using cached pyjsparser-2.7.1-py2-none-any.whl (26 kB)
Collecting enum34; python_version < "3"
  Using cached enum34-1.1.10-py2-none-any.whl (11 kB)
Collecting ipaddress; python_version < "3"
  Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Collecting cffi>=1.12
  Using cached cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl (390 kB)
Collecting pytz
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: pycurl, pycrypto, tesseract, pillow, six, enum34, ipaddress, pycparser, cffi, cryptography, pyOpenSSL, pytz, tzlocal, pyjsparser, js2py, feedparser, beautifulsoup
Successfully installed beautifulsoup-3.2.2 cffi-1.15.1 cryptography-3.3.2 enum34-1.1.10 feedparser-5.2.1 ipaddress-1.0.23 js2py-0.74 pillow-6.2.2 pyOpenSSL-21.0.0 pycparser-2.21 pycrypto-2.6.1 pycurl-7.43.0.5 pyjsparser-2.7.1 pytz-2023.>
^[[2m[Sun Jul 23 22:36:46]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:36:46]^[(B^[[m ^[[2m...     Cloning pyLoad^[(B^[[m
Cloning into '/opt/pyload'...
^[[2m[Sun Jul 23 22:36:51]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:36:51]^[(B^[[m ^[[2m...     Configuring pyLoad^[(B^[[m
^[[2m[Sun Jul 23 22:36:51]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:36:51]^[(B^[[m ^[[2m...     Initalizing database^[(B^[[m
^[[2m[Sun Jul 23 22:37:01]^[(B^[[m ^[[31m^[[1mERROR     Something went wrong with user setup -- you will be unable to login^[(B^[[m
^[[2m[Sun Jul 23 22:37:01]^[(B^[[m ^[[31m^[[3m  Please consult the above and/or check the log (less -R +G /root/logs/swizzin.log)^[(B^[[m
^[[2m[Sun Jul 23 22:37:01]^[(B^[[m ^[[2m...     Insatlling systemd service^[(B^[[m
^[[2m[Sun Jul 23 22:37:01]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:37:01]^[(B^[[m ^[[2m...     Configuring nginx^[(B^[[m
^[[2m[Sun Jul 23 22:37:02]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:37:02]^[(B^[[m ^[[2m...     Enabling and starting pyLoad services^[(B^[[m
^[[2m[Sun Jul 23 22:37:03]^[(B^[[m      ^[[32m^[[2m✔   ^[[3mDone^[(B^[[m
^[[2m[Sun Jul 23 22:37:03]^[(B^[[m ^[[32m^[[1mSUCCESS   PyLoad installed^[(B^[[m
@JReming85
Copy link
Contributor

JReming85 commented Aug 23, 2023

Oh I just did a PR to fix this.

In the meantime you can edit /etc/swizzin/scripts/install/pyload.sh
On line 44, remove pycurl from the PIP string

and on line 46, start a new line and add
/opt/.venv/pyload/bin/pip install pycurl --no-cache-dir >> "${log}" 2>&1

So lines 44-46 will look like this

PIP='wheel setuptools<45 pycrypto tesseract pillow pyOpenSSL js2py feedparser beautifulsoup'
/opt/.venv/pyload/bin/pip install $PIP >> "${log}" 2>&1
/opt/.venv/pyload/bin/pip install pycurl --no-cache-dir >> "${log}" 2>&1

@rjroot
Copy link

rjroot commented Nov 22, 2023

Oh I just did a PR to fix this.

In the meantime you can edit /etc/swizzin/scripts/install/pyload.sh On line 44, remove pycurl from the PIP string

and on line 46, start a new line and add /opt/.venv/pyload/bin/pip install pycurl --no-cache-dir >> "${log}" 2>&1

So lines 44-46 will look like this

PIP='wheel setuptools<45 pycrypto tesseract pillow pyOpenSSL js2py feedparser beautifulsoup'
/opt/.venv/pyload/bin/pip install $PIP >> "${log}" 2>&1
/opt/.venv/pyload/bin/pip install pycurl --no-cache-dir >> "${log}" 2>&1

Having the same issue on latest release as well.

@apt5
Copy link

apt5 commented Jan 10, 2024

The error is still persistent.
Swizzin commit: 3.10.0
OS: Ubuntu 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants