pip dependencies errors (environ module)
Steps to reproduce
Following steps for Debian from docs.funkwhale.audio/installation/debian.html
sudo apt-get update
sudo apt-get install curl python3-pip python3-venv git unzip libldap2-dev libsasl2-dev gettext-base zlib1g-dev libffi-dev libssl-dev
sudo apt install build-essential ffmpeg libjpeg-dev libmagic-dev libpq-dev postgresql-client python3-dev make
sudo useradd -r -s /usr/sbin/nologin -d /srv/funkwhale -m funkwhale
cd /srv/funkwhale
sudo -u funkwhale -H bash
mkdir -p config api data/static data/media data/music front
LatestVersion=1.0.1
curl -L -o "api-${LatestVersion}.zip" "https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/${LatestVersion}/download?job=build_api"
unzip -q "api-${LatestVersion}.zip" -d extracted
mv extracted/api/* api/
rm -rf extracted
curl -L -o "front-${LatestVersion}.zip" "https://dev.funkwhale.audio/funkwhale/funkwhale/-/jobs/artifacts/${LatestVersion}/download?job=build_front"
unzip "front-${LatestVersion}.zip" -d extracted
mv extracted/front .
rm -rf extracted
cd /srv/funkwhale
python3 -m venv /srv/funkwhale/virtualenv
source /srv/funkwhale/virtualenv/bin/activate
**Here I had to add "django" and "environ" to avoid ModuleNotFoundError**
pip install wheel django environ
pip install -r api/requirements.txt
curl -L -o config/.env "https://dev.funkwhale.audio/funkwhale/funkwhale/raw/master/deploy/env.prod.sample"
openssl rand -base64 45
chmod 600 /srv/funkwhale/config/.env
python api/manage.py migrate
What happens?
Traceback (most recent call last):
File "api/manage.py", line 16, in <module>
django.setup()
File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/django/__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/funkwhale/api/config/settings/production.py", line 14, in <module>
from .common import * # noqa
File "/srv/funkwhale/api/config/settings/common.py", line 11, in <module>
import environ
File "/srv/funkwhale/virtualenv/lib/python3.7/site-packages/environ.py", line 114
raise ValueError, "No frame marked with %s." % fname
^
SyntaxError: invalid syntax
What is expected?
No error messages
Context
Dedicated installation with Debian GNU/Linux 10 (buster-stable)
Funkwhale version(s) affected: 1.0.1