informalsystems / informalsystems/modelator-py

ImportError: sys.meta_path is None, Python is likely shutting down

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
27
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I am getting the following error on Python 3.10,
```
Exception ignored in:
Traceback (most recent call last):
File "/home/XXXX/.cache/pypoetry/virtualenvs/modelator-py-5E8ZuFvv-py3.10/lib/python3.10/site-packages/multiprocess/pool.py", line 268, in __del__
File "/home/XXXX/.cache/pypoetry/virtualenvs/modelator-py-5E8ZuFvv-py3.10/lib/python3.10/site-packages/multiprocess/queues.py", line 375, in put
File "/home/XXXX/.cache/pypoetry/virtualenvs/modelator-py-5E8ZuFvv-py3.10/lib/python3.10/site-packages/multiprocess/reduction.py", line 54, in dumps
File "/home/XXXX/.cache/pypoetry/virtualenvs/modelator-py-5E8ZuFvv-py3.10/lib/python3.10/site-packages/multiprocess/reduction.py", line 42, in __init__
File "/home/XXXX/.cache/pypoetry/virtualenvs/modelator-py-5E8ZuFvv-py3.10/lib/python3.10/site-packages/dill/_dill.py", line 573, in __init__
ImportError: sys.meta_path is None, Python is likely shutting down
```

the problem goes away when I switch from `pathos.multiprocessing` to in-built `multiprocessing` library.

@danwt is there any specific reason you were using `pathos`?

Contributor guide

Open the contributing guide

Research direction

Begin with the reported Python 3.10 traceback and compare the pathos.multiprocessing usage with Python's built-in multiprocessing. The issue names no repository file or test entry point, so first locate that usage and reproduce the shutdown behavior; done requires an agreed repository-level resolution and verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.