Danielaleite / Nextrout

MIT License
6 stars 1 forks source link

Problems importing dmk tools #3

Closed crhoff closed 1 year ago

crhoff commented 2 years ago

Hi there,

I'm having some issues importing the dmk tools. I ran setup.py and noticed that I had the folder nextrout_core but not otp_utilities. When I try to run test.py, I receive the following output:

ModuleNotFoundError: No module named 'dmk'

After manually installing dmk with pip, I receive:

ImportError: cannot import name 'Dmkcontrols' from 'dmk'

Any suggestions on how to resolve this would be appreciated, thank you kindly!

Danielaleite commented 2 years ago

Dear @crhoff ,

thanks for reporting the issue. I believe the problem is that you will have to manually install the dmk module (it doesn't work with pip). You can try doing:

os.system('mkdir ../dmk_utilities') repos_list = ['dmk_solver','globals', 'linear_algebra','p1galerkin','geometry'] for repo in repos_list: os.system('cd ../dmk_utilities && git clone https://gitlab.com/enrico_facca/'+repo+'.git')

at the same level as the nextrout_core folder. Let me know if that works.