Parisson / Telemeta

Collaborative content management system for musicology
http://telemeta.org
GNU Affero General Public License v3.0
118 stars 38 forks source link

Errors on new installation: llvmlite, cython, setuptools, markdown #230

Closed rjl20 closed 3 years ago

rjl20 commented 3 years ago

I've just set up a fresh Ubuntu 18.04 installation with the appropriate docker tools. I had previously tried Ubuntu 20.04 and gotten these same errors, so I was trying just now with 18.04 to see if there was a difference. When I follow the "get it" and "start it up" instructions of cloning the repo and running docker-compose, I get a number of errors and a site running at localhost:8000 which I can not log into because all the jquery, bootstrap, and soundmanager2 files which should be in static are missing.

I'm pretty new to docker, so this could be user error, but the startup instructions were only three lines and it's pretty hard to screw up copy and paste that badly. These appear to be relevant errors:

app_1     |   Building wheel for llvmlite (setup.py): started
app_1     |   Building wheel for llvmlite (setup.py): finished with status 'error'
app_1     |   ERROR: Command errored out with exit status 1:
app_1     |    command: /opt/miniconda/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-OuAI1Z/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-OuAI1Z/llvmlite/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-S2S1FU --python-tag cp27
app_1     |        cwd: /tmp/pip-install-OuAI1Z/llvmlite/
app_1     |   Complete output (7 lines):
app_1     |   running bdist_wheel
app_1     |   /opt/miniconda/bin/python /tmp/pip-install-OuAI1Z/llvmlite/ffi/build.py
app_1     |     File "/tmp/pip-install-OuAI1Z/llvmlite/ffi/build.py", line 122
app_1     |       raise ValueError(msg.format(_ver_check_skip)) from e
app_1     |                                                        ^
app_1     |   SyntaxError: invalid syntax
app_1     |   error: command '/opt/miniconda/bin/python' failed with exit status 1
app_1     |   ----------------------------------------
app_1     |   ERROR: Failed building wheel for llvmlite
app_1     |   Running setup.py clean for llvmlite
app_1     | Successfully built librosa resampy
app_1     | Failed to build llvmlite
app_1     | ERROR: mkl-random 1.0.1 requires cython, which is not installed.
app_1     | ERROR: mkl-fft 1.0.4 requires cython, which is not installed.
app_1     | ERROR: tensorflow 1.9.0 has requirement setuptools<=39.1.0, but you'll have setuptools 39.2.0 which is incompatible.
app_1     | ERROR: tensorboard 1.9.0 has requirement markdown>=2.6.8, but you'll have markdown 2.4.1 which is incompatible.
app_1     | Installing collected packages: youtube-dl, numpy, llvmlite, numba, resampy, soundfile, librosa, funcy, django-cacheops
app_1     |   Found existing installation: youtube-dl 2019.2.8
app_1     |     Uninstalling youtube-dl-2019.2.8:
app_1     |       Successfully uninstalled youtube-dl-2019.2.8
app_1     |   Found existing installation: numpy 1.14.2
app_1     |     Uninstalling numpy-1.14.2:
app_1     |       Successfully uninstalled numpy-1.14.2
app_1     |   Found existing installation: llvmlite 0.24.0
app_1     | ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
app_1     | WARNING: You are using pip version 19.2.3, however version 20.2.4 is available.
app_1     | You should consider upgrading via the 'pip install --upgrade pip' command.

What am I doing wrong?

rjl20 commented 3 years ago

Full log files:

app.log broker.log data.log db.log search.log worker.log

rjl20 commented 3 years ago

Happy new year! Is this project still active? @yomguy , any advice? Thanks!

yomguy commented 3 years ago

Hi @rjl20, best wishes too! Yes, the project is still alive and sorry for my late reply. I have just pushed an updated version 1.7.5 which should fix the current bug. Just do:

git pull
git submodule update