GWU-CFD / FlashKit

A library to assist researchers in using the FLASH code
MIT License
1 stars 1 forks source link

Error: ModuleNotFoundError: No module named 'cmdkit.contrib' #71

Open asarmakeeva opened 2 years ago

asarmakeeva commented 2 years ago

When running flashkit create xdmf —auto command in the case directory I getting ModuleNotFoundError: No module named 'cmdkit.contrib'

I am using python3.8 and FlashX

akashdhruv commented 2 years ago

Can you try installing CmdKit from this SHA

https://github.com/alentner/CmdKit/tree/1805df2bc174059ba4aced06eab8e92d8e5391d6

And try again?

I would remove existing installs of CmdKit and FlashKit, reinstall CmdKit it from this SHA using python3 setup.py install and then install FlashKit from here https://github.com/akashdhruv/FlashKit

akashdhruv commented 2 years ago

I think you maybe get an error from importlib saying NoneType object as no attribute startswith but I would still give it a try

asarmakeeva commented 2 years ago

I followed your instructions and run from the SHA, but it didn't help, I got same error

glentner commented 2 years ago

How do you have flashkit installed? In a virtual environment or just locally? You could be picking up an old copy of cmdkit from a different site despite the one you just installed.

If you run a Python console, and import cmdkit, what is the location it gives you if you just type "cmdkit" into the console?

asarmakeeva commented 2 years ago

yeah, i installed flashkit locally, i piking up cmdkit from '/home/username/CmdKit/cmdkit/__init__.py'>

akashdhruv commented 2 years ago

This line needs to be removed to resolve the error

https://github.com/GWU-CFD/FlashKit/blob/97cb15f1aaaebb21ba9044e2197f85baba5b2f44/src/flashkit/core/configure.py#L17