Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Importing imp fails in an environment with Python 3.12+ #481

@befeleme

Description

@befeleme

In a venv with Python 3.12 and bluepyopt installed from PyPI:

>>> from bluepyopt.ephys import simulators
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/tmp/blue/venv/lib64/python3.12/site-packages/bluepyopt/ephys/__init__.py", line 25, in <module>
    from . import simulators  # NOQA
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tmp/blue/venv/lib64/python3.12/site-packages/bluepyopt/ephys/simulators.py", line 7, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Module imp has been removed from Python 3.12.

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