RiversideNas:~ # zypper info rockstor
Loading repository dataβ¦
Reading installed packagesβ¦
Information for package rockstor:
Repository : Rockstor-Stable
Name : rockstor
Version : 4.6.1-0
Arch : x86_64
Vendor : YewTreeApps
Installed Size : 9.6 MiB
Installed : Yes
Status : up-to-date
Source package : rockstor-4.6.1-0.src
Upstream URL : https://rockstor.com/
Summary : Btrfs Network Attached Storage (NAS) Appliance.
Description :
Software raid, snapshot capable NAS solution with built-in file integrity protection.
Allows for file sharing between network attached devices.
RiversideNas:~ # cat /opt/rockstor/poetry-install.txt
The currently activated Python version 3.6.15 is not supported by the project (~2.7).
Trying to find and use a compatible version.
Using python2 (2.7.18)
Creating virtualenv rockstor in /opt/rockstor/.venv
Installing dependencies from lock file
Package operations: 29 installs, 0 updates, 0 removals
β’ Installing certifi (2021.10.8)
β’ Installing chardet (4.0.0)
β’ Installing greenlet (2.0.2)
β’ Installing idna (2.10)
β’ Installing pytz (2022.6)
β’ Installing six (1.16.0)
β’ Installing urllib3 (1.26.12)
β’ Installing django (1.11.29)
β’ Installing gevent (1.1.2)
β’ Installing oauthlib (3.1.0)
β’ Installing python-engineio (2.3.2)
β’ Installing requests (2.27.1)
β’ Installing dbus-python (1.2.18)
β’ Installing distro (1.6.0)
β’ Installing django-braces (1.13.0)
β’ Installing django-oauth-toolkit (1.1.2)
β’ Installing django-pipeline (1.6.9)
β’ Installing djangorestframework (3.9.3)
β’ Installing gunicorn (19.10.0)
β’ Installing mock (1.0.1)
β’ Installing psycogreen (1.0)
β’ Installing python-socketio (1.6.0)
β’ Installing supervisor (4.2.4)
β’ Installing huey (2.3.0)
β’ Installing psycopg2 (2.8.6)
β’ Installing gevent-websocket (0.9.5)
β’ Installing pyzmq (19.0.2)
β’ Installing psutil (5.9.4)
β’ Installing urlobject (2.1.1)
EnvCommandError
Command [β/opt/rockstor/.venv/bin/pipβ, βinstallβ, ββno-depsβ, βfile:///root/.cache/pypoetry/artifacts/78/6c/1c/efa6250f008a1e079eda9b4ea03c74050bbcedd7264d372fd05febc42f/psycopg2-2.8.6.tar.gzβ] errored with the following return code 1, and output:
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 in pip can be found at Release process - pip documentation v23.3.dev0 pip 21.0 will remove support for this functionality.
Processing /root/.cache/pypoetry/artifacts/78/6c/1c/efa6250f008a1e079eda9b4ea03c74050bbcedd7264d372fd05febc42f/psycopg2-2.8.6.tar.gz
ERROR: Command errored out with exit status 1:
command: /opt/rockstor/.venv/bin/python -c βimport sys, setuptools, tokenize; sys.argv[0] = β"β"β/tmp/pip-req-build-LL2NpJ/setup.pyββ'ββ; file=ββ'ββ/tmp/pip-req-build-LL2NpJ/setup.pyββ'ββ;f=getattr(tokenize, β"βββopenβββββ, open)(file);code=f.read().replace(βββ"β\r\nββ'ββ, β"β"β\nββ'ββ);f.close();exec(compile(code, file, β"βββexecβββ"β))β egg_info --egg-base /tmp/pip-pip-egg-info-Temqh3
cwd: /tmp/pip-req-build-LL2NpJ/
Complete output (23 lines):
running egg_info
creating /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/PKG-INFO
writing top-level names to /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/top_level.txt
writing dependency_links to /tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/dependency_links.txt
writing manifest file β/tmp/pip-pip-egg-info-Temqh3/psycopg2.egg-info/SOURCES.txtβ
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
at ~/.local/share/pypoetry/venv/lib64/python3.6/site-packages/poetry/utils/env.py:1195 in run
1191β output = subprocess.check_output(
1192β cmd, stderr=subprocess.STDOUT, **kwargs
1193β )
1194β except CalledProcessError as e:
β 1195β raise EnvCommandError(e, input=input)
1196β
1197β return decode(output)
1198β
1199β def execute(self, bin, *args, **kwargs):
RiversideNas:~ # update-alternatives --config postgresql
There are 3 choices for the alternative postgresql (providing /usr/lib/postgresql).
Selection Path Priority Status
- 0 /usr/lib/postgresql14 140 auto mode
1 /usr/lib/postgresql10 100 manual mode
2 /usr/lib/postgresql13 130 manual mode
3 /usr/lib/postgresql14 140 manual mode
Press to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/postgresql13 to provide /usr/lib/postgresql (postgresql) in manual mode