Skip to content

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

@mtelka

Description

@mtelka

While testing with Python 3.14.2 I do see these errors:

Exception ignored while calling deallocator <function IOBase.__del__ at 0x7fffaeb99bc0>:
Traceback (most recent call last):
  File "/usr/lib/python3.14/_pyio.py", line 411, in __del__
  File "/usr/lib/python3.14/_pyio.py", line 2701, in _dealloc_warn
  File "/usr/lib/python3.14/_pyio.py", line 861, in _dealloc_warn
  File "/usr/lib/python3.14/_pyio.py", line 1613, in _dealloc_warn
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored while calling deallocator <function IOBase.__del__ at 0x7fffaeb99bc0>:
Traceback (most recent call last):
  File "/usr/lib/python3.14/_pyio.py", line 411, in __del__
  File "/usr/lib/python3.14/_pyio.py", line 861, in _dealloc_warn
  File "/usr/lib/python3.14/_pyio.py", line 1613, in _dealloc_warn
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored while calling deallocator <function IOBase.__del__ at 0x7fffaeb99bc0>:
Traceback (most recent call last):
  File "/usr/lib/python3.14/_pyio.py", line 411, in __del__
  File "/usr/lib/python3.14/_pyio.py", line 1613, in _dealloc_warn
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored while calling deallocator <function IOBase.__del__ at 0x7fffaeb99bc0>:
Traceback (most recent call last):
  File "/usr/lib/python3.14/_pyio.py", line 411, in __del__
  File "/usr/lib/python3.14/_pyio.py", line 861, in _dealloc_warn
  File "/usr/lib/python3.14/_pyio.py", line 1613, in _dealloc_warn
ImportError: sys.meta_path is None, Python is likely shutting down

I do not see this when testing with Python 3.9.25.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions