Comments (5)
Already have python3-magic installed.
from filetranspiler.
Thanks for the report! I'm looking into this.
from filetranspiler.
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.
[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.
@niteshnarayanlal No worries! 😄
from filetranspiler.
Related Issues (13)
- missing "filesystem" in final ignition config HOT 1
- YAML module missing from image HOT 1
- filetranspile vs filetranspiler
- RPM package HOT 3
- SyntaxError line 135: f'link: {source_path} is not in the ' HOT 5
- Update README with dependencies HOT 2
- base64 encoded output HOT 7
- ModuleNotFoundError: No module named 'magic' HOT 5
- Release latest HOT 3
- File transpiler does not replace the file if it already exists in ignition.
- Add --dereference-symlinks
- Release 1.1.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filetranspiler.