Issues with running ./utils/init
Running ./utils/init
is currently partially broken and creates some warnings of unknown significance. To make it easier to contribute to website code those should likely be fixed:
-
utils/init checks for the command virtualenv
and automatically installs "python3-virtualenv" if not available.
Unfortunately "python3-virtualenv" does not havevirtualenv
, I think we should install [https://packages.ubuntu.com/bionic/virtualenv] instead? -
utils/init calls python-bedeveled
(apparently to see if "python3-dev" is installed?) but this fails every time, so the init script tries to install "python3-dev" over and over again (despite being available). -
utils/python-bedeveled Seems to check for the default python (which is 2.7.15 on Ubuntu 18.04, at least the one I got)
Consequently I always get the error ""Wrong version of python!" despite everything making the impression to work properly. This check should be fixed, or it needs to be properly explained what to do (and why). -
utils/init calls utils/refresh-geoip, which currently fails, see #440 - I see an additional errors I can't place:
Using cached https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip ERROR: Command errored out with exit status 1: command: /home/osboxes/Downloads/inkscape-web.git/pythonenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-twtnyylr/distribute/setup.py'"'"'; __file__='"'"'/tmp/pip-install-twtnyylr/distribute/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-install-twtnyylr/distribute/pip-egg-info cwd: /tmp/pip-install-twtnyylr/distribute/ Complete output (15 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-twtnyylr/distribute/setuptools/__init__.py", line 2, in <module> from setuptools.extension import Extension, Library File "/tmp/pip-install-twtnyylr/distribute/setuptools/extension.py", line 5, in <module> from setuptools.dist import _get_unpatched File "/tmp/pip-install-twtnyylr/distribute/setuptools/dist.py", line 7, in <module> from setuptools.command.install import install File "/tmp/pip-install-twtnyylr/distribute/setuptools/command/__init__.py", line 8, in <module> from setuptools.command import install_scripts File "/tmp/pip-install-twtnyylr/distribute/setuptools/command/install_scripts.py", line 3, in <module> from pkg_resources import Distribution, PathMetadata, ensure_directory File "/tmp/pip-install-twtnyylr/distribute/pkg_resources.py", line 1518, in <module> register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
- Plus some additional warnings about migrations and missing files, which don't seem to be fatal, though.
(The above were observed on Ubuntu 18.04, fully updated AFAIKT)