import eyed3 mime error under docker

Bug #1749008 reported by mair
6
This bug affects 1 person
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/lib/python3.5/site-packages/eyed3/__init__.py", line 35, in <module>
        from .utils.log import log # noqa
      File "/usr/local/lib/python3.5/site-packages/eyed3/utils/__init__.py", line 53, in <module>
        _mime_types = MagicTypes()
      File "/usr/local/lib/python3.5/site-packages/eyed3/utils/__init__.py", line 41, in __init__
        keep_going=False)
    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"]

Revision history for this message
mair (hosssssdlj) wrote :

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.

Revision history for this message
Pander (pander) wrote :

Why don't you install with sudo apt-get install python-eyed3 or sudo apt-get install python3-eyed3 ? And does that still result in the same error?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.