Comments (3)
Do you get this error when you run PolyFile from the command line, or only when you try and invoke it programmatically?
from polyfile.
I have only attempted to run it programmatically; this is also my use case.
from polyfile.
This is related to an unimplemented feature of libmagic that PolyFile has not yet implemented. PolyFile internally circumvents this by disabling the one test related to it, but if you access the MagicMatcher via the API then it does not disable the test. We have started implementing this feature and it will be included in the next release. In the mean time, you can circumvent it using this workaround:
Line 56 in 1718dbb
from polyfile.
Related Issues (20)
- Cannot unpack non-iterable NoneType
- UnboundLocalError: local variable 'is_dct_decode' referenced before assignment HOT 1
- in unget, assert isinstance(byte, PDFByte), AssertionError] HOT 1
- Option to only match magic
- Some PDF streams not detected
- Difficulty handling some key-value pairs
- Misinterpreting %comment as a key in a dictionary
- Two crashes when parsing PDFs HOT 2
- Create handler for SIGTERM to exit cleanly HOT 1
- Support sys.stderr that does not have a buffer
- Support for the undocumented libmagic ternary operator
- Build of 0.3.3 fails with `TypeError: '>' not supported between instances of 'NoneType' and 'float'` HOT 1
- Feature request: improved search w/ stream support
- Fails to identify some ZIP files HOT 1
- Readline missing from setup.py? HOT 2
- Incompatible with latest version of chardet HOT 1
- [Feature Request/Improvement] Alternate JSON Output w/o b64contents
- Revisit support for sys.stderr that does not have a buffer
- Example files that cause an unexpected delay iterating (infinite?) matches
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 polyfile.