Closed Andrew-S-Rosen closed 1 year ago
magic
is needed to determine file types. It should be installed with parsing
as in
https://github.com/nomad-coe/nomad/blob/3e7d2cf5ac3a7fbf049b841510f69fb0650b433b/pyproject.toml#L50
Since you are running on a win machine, is libmagic
available such that pythoin-magic
is successfully installed? Just FYI, win is not officially supported/maintained, there could be more errors here and there.
This was actually on Ubuntu. I'll dig into what happened here and report back, but either way I think the logic is still broken regardless because _compressions
remains undefined if the try/except
block goes to except
.
I started using the main
branch instead of an older version and this issue no longer remains.
In
parsers.py
, the_compressions
variable remains undefined ifpython-magic
(and some other imports) are not imported. However,_compressions
is used on line 80 regardless and you get the following error until you installpython-magic
: