`pint` caching fail leads to `FileNotFoundError` again. (`nwm_client_new`)
jarq6c opened this issue · 0 comments
jarq6c commented
Related to this: BAMresearch/FenicsXConcrete#39
and this: hgrecco/pint#1572
The problem is the pint
cache does not update or regenerate due to the existence of ~/.cache/pint
. The result is that if you install pint
in one environment, destroy that environment, then install pint
into another environment, pint
will continue to look for files in the old environment (non-existent). Attempting to import pint
from that moment forward will result in a very unhelpful FileNotFoundError
, which is extremely annoying. The solution is to either delete ~/.cache/pint
or set an explicit path for the relevant file.
I will update nwm_client_new
to set an explicit file, since this package generates a file cache anyway.