Giter Site home page Giter Site logo

Comments (5)

niteshnarayanlal avatar niteshnarayanlal commented on August 22, 2024

Already have python3-magic installed.

from filetranspiler.

ashcrow avatar ashcrow commented on August 22, 2024

Thanks for the report! I'm looking into this.

from filetranspiler.

ashcrow avatar ashcrow commented on August 22, 2024

AttributeError: module 'magic' has no attribute 'open'

Can you provide the version of python3-magic you are seeing this with.

$ python3 -c 'import magic; print(magic.__file__); print(magic.open.__doc__)'
/usr/lib/python3.7/site-packages/magic.py

    Returns a magic object on success and None on failure.
    Flags argument as for setflags.
$  rpm -q --qf "%{VERSION}\n" python3-magic
5.37
$

Could it possibly be module naming collision like this?

from filetranspiler.

niteshnarayanlal avatar niteshnarayanlal commented on August 22, 2024

[root@virtlab1003 filetranspiler]# python3 -c 'import magic; print(magic.file); print(magic.open.doc)'
/usr/local/lib/python3.6/site-packages/magic.py
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'magic' has no attribute 'open'

[root@lab filetranspiler]# rpm -q --qf "%{VERSION}\n" python3-magic
5.33

Somehow I didn't have the file-magic package installed. Installing that solved the issue, thanks for looking into it.

from filetranspiler.

ashcrow avatar ashcrow commented on August 22, 2024

@niteshnarayanlal No worries! 😄

from filetranspiler.

Related Issues (13)

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.