import eyed3 mime error under docker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eyed3 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This is the error I get when I run `import eyed3` in python3:
File "./tagger.py", line 2, in <module>
import eyed3
File "/usr/local/
from .utils.log import log # noqa
File "/usr/local/
_mime_types = MagicTypes()
File "/usr/local/
TypeError: __init__() got an unexpected keyword argument 'mime'
This is my Dockerfile
FROM python:3.5
COPY ./requirements.txt /
RUN apt-get -y update \
&& apt-get -y install build-essential python-dev python-eyed3 eyed3 \
&& cd / \
&& yes | pip3 install python-libmagic python-magic \
&& yes | pip3 install -r requirements.txt
RUN apt-get install libmagic-dev
VOLUME ["/app"]
WORKDIR /app
ENTRYPOINT ["sh", "entrypoint.sh"]
I have found that (the version I have installed was eyeD3-0.8.4) If I just install eyed3 0.8 using:
pip3 install eyed3==0.8
It does not give me this error anymore.
So this is a problem of versions > 0.8
Also the docker container runs ubuntu and linux kernel 4.4.0. `cat /proc/version` leads to:
Linux version 4.4.0-104-generic (buildd@ lgw01-amd64- 022) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~ 16.04.5) ) #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017
Hope this helps.