Closed wfscheper closed 5 years ago
+1
What would be the solution to this error? installing ijson or is it not possible to use sourmash on a RHEL6?
Solved in ICRAR/ijson, will be published in the next PyPI release.
@rtobar, awesome!
Note that in CentOS 6 you will still get an error trying to import the yajl2-related backends, as the yajl version installed in those systems (unless you installed one yourself) is 1.0.9.
Attemping to import either the yajl2_cffi or yajl2 backends on RHEL6 throws an AttributeError instead of ImportError.
Quick reproduction case:
Instead of importing the pure-python backend, this results in the following stacktraces depending on whether cffi is installed or not:
With cffi:
Without cffi:
Fix is to wrap
require_version(yajl.yajl_version(), required)
at lines 29 and 41 with a try/except to catch the AttributeError and raise an ImportError. I can open a pull request if you'd like.Edit: clean up stacktrace formatting.