Skip to content

ModuleNotFoundError: No module named 'imp' #719

@learnerwyn

Description

@learnerwyn

I was trying to implement the following demo codes on my Mac, in a conda environment with tdw installed by "pip3 install tdw"
python: 3.9.6
Mac OS: Sonoma 14.7

from tdw.controller import Controller

c = Controller()
print("Hello world")
c.communicate({"$type": "terminate"})

but the terminal returns the following error:

 File "/opt/miniconda3/envs/mumatom/lib/python3.12/site-packages/tdw/flatbuffers/compat.py", line 19, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

where mumatom is the name of my conda environment.

Has this to do with the conda environment I am using? or I need to download/update some packages

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