Giter Club home page Giter Club logo

Comments (7)

nvbn avatar nvbn commented on July 21, 2024

You have python-magic installed from repository?

from everpad.

brabadu avatar brabadu commented on July 21, 2024

Yes

$ apt-cache showpkg python-magic
Package: python-magic
Versions: 
5.09-2 (/var/lib/apt/lists/ua.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/ua.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages
                  MD5: 37a8fb9ea793ad19a0727c04e12d8d60
 Description Language: en
                 File: /var/lib/apt/lists/ua.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en
                  MD5: 37a8fb9ea793ad19a0727c04e12d8d60


Reverse Depends: 
  everpad,python-magic
  devscripts,python-magic
  syslog-summary,python-magic
  dff,python-magic
  python-magic-dbg,python-magic 5.09-2
  devscripts,python-magic
Dependencies: 
5.09-2 - python2.7 (0 (null)) python (2 2.7.1-0ubuntu2) python (3 2.8) libmagic1 (5 5.09-2) python-magic-dbg (0 (null)) 
Provides: 
5.09-2 - python2.7-magic 
Reverse Provides: 

from everpad.

nvbn avatar nvbn commented on July 21, 2024

What output of python -c 'import magic; print magic.MIME' ?

from everpad.

brabadu avatar brabadu commented on July 21, 2024

$ python -c 'import magic; print magic.MIME'
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'MIME'

from everpad.

nvbn avatar nvbn commented on July 21, 2024

Maybe you have python-magic installed from other source?

from everpad.

hdave avatar hdave commented on July 21, 2024

FWIW - I have the exact same python-magic package installed on Ubuntu 12.04 x64, but I get a different result on mime:

$ python -c 'import magic; print magic.MIME' 
1040

...and I have not encountered the OP's issue. Wierd. Certainly seems like the python installation is messed up.

from everpad.

brabadu avatar brabadu commented on July 21, 2024

I've tried to reinstall python-magic from repo and from pypi. Can't say the exact way, but now it's working.

Thanks!

from everpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.