_is_builtin_module
is wrong for environments managed by Spack
#566
Labels
Milestone
_is_builtin_module
is wrong for environments managed by Spack
#566
When I invoke Parsl (even the simplest possible case), Parsl uses dill to serialize the function and arguments, which fails. Serializing the function and arguments somehow leads to serializing
collections.abc
, which leads to serializingbytes_iterator
according to the Dill trace. This fails to serialize with the following stderr:(full stderr)
bytes_iterator
is indeed a member of collections.abc), but the bigger problem is why is Dill trying to serialize builtin modules?. In fact,dill._dill._is_builtin_module(collections)
returnsFalse
instead ofTrue
when Python and Dill are installed by Spack.While
collections.__file__
is withinsys.prefix
, the realpath is not. This is because Spack manages Python environments by symlinking packages into a "view".Here is a minimum working example:
The text was updated successfully, but these errors were encountered: