Problems on ubuntu using 3.0.0-alpha.7

os
ubuntu server
18.04.2 LTS (Bionic Beaver)
using 3.0.0-alpha.7

hi
new user of libretime :smiley:

im testing the alpha7 on ubuntu server and get some error on file upload and conversion, the media analyzer its not working(starting) . . . . .the files upload , the conversion do not work.

installation was done via the Tar.gz i try the libretime_3.0.0~alpha.7-1ubuntu1_amd64.deb
just not work
the install via tar.gz was ok, no problem using only sudo ./install

this seem to be the problem

pkg_resources.DistributionNotFound: The 'urllib3<1.25,>=1.21.1' distribution was not found and is required by requests

media analyzer do not start

here the full error log
https://pastebin.com/raw/aeNZd4da or https://pastebin.com/aeNZd4da

i have already installed urllib3 using pip install urllib3
here the version

pip show urllib3
Name: urllib3
Version: 1.25

how i force the install of the 1.21.1 version?
i this the problem ?

:smiley:

Interesting thanks for the report. Let me see if urllib 1.25 will work. I’m not sure why it was pinned to 1.21.1 as that may not be necessary. I’ll post back with more details and a possible fix if I can find something easy to do.

so I suspect what happened is you installed the debian package for requests and then pip tried to install urllib3 - so basically a version management issue.

there are two possible solutions, update requests using pip (the python package manager) or remove urllib3 via pip and install the python-urllib3 debian package.

what is the output of pip freeze
in terms of packages
you could also try pip upgrade requests as well.

airtime-analyzer==0.1
airtime-celery==0.1
airtime-playout==1.0
amqp==1.4.9
amqplib==1.0.2
anyjson==0.3.3
api-clients==1.0
asn1crypto==0.24.0
billiard==3.3.0.23
celery==3.1.26.post2
certifi==2019.3.9
chardet==3.0.4
configobj==5.0.6
coverage==5.0a4
cryptography==2.1.4
daemon==1.2
defusedxml==0.6.0
docopt==0.6.2
enum34==1.1.6
file-magic==0.4.0
fudge==1.1.1
funcsigs==1.0.2
future==0.17.1
idna==2.8
ipaddress==1.0.17
keyring==10.6.0
keyrings.alt==3.0
kombu==3.0.37
lockfile==0.12.2
mock==2.0.0
mutagen==1.42.0
nose==1.3.7
pbr==5.1.3
pika==0.11.0
poster==0.8.1
pycrypto==2.6.1
PyDispatcher==2.0.5
pygobject==3.26.1
pyinotify==0.9.6
python-daemon==1.6
pytz==2019.1
pyxdg==0.25
requests==2.21.0
rgain==1.3.4
SecretStorage==2.3.1
simplejson==3.16.0
six==1.11.0
soundcloud==0.5.0
urllib3==1.25
vine==5.0.0a1
virtualenv==15.1.0

it was solve

pip remove urllib3 and use apt get install python-urllib3

and that put the correct version of urllib3 on the ubuntu :smiley:

1 Like