[Bug 1749008] [NEW] import eyed3 mime error under docker

mair 1749008 at bugs.launchpad.net
Mon Feb 12 21:12:41 UTC 2018


Public bug reported:

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"]

** Affects: eyed3 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eyed3 in Ubuntu.
https://bugs.launchpad.net/bugs/1749008

Title:
  import eyed3 mime error under docker

Status in eyed3 package in Ubuntu:
  New

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"]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eyed3/+bug/1749008/+subscriptions



More information about the foundations-bugs mailing list