hen-utils
hen-utils copied to clipboard
ModuleNotFoundError: No module named 'henUtils'
Working on another PR but I was hoping to resolve this first. Python doesn't seem to acknowledge the henUtils namespace. I've tried under python3.8, 3.7 and 2.7. A bit confused since I do see the __init__.py
file.
(base) D:\Code\hen-utils>cd python
(base) D:\Code\hen-utils\python>python henUtils\henStatistics.py
Traceback (most recent call last):
File "henUtils\henStatistics.py", line 2, in <module>
from henUtils.queryUtils import *
ModuleNotFoundError: No module named 'henUtils'
My workaround has been to remove the henUtils namespace from your import statements, but I'm not 100% clear why your namespace/package can't be found. Any thoughts?
-from henUtils.queryUtils import *
-from henUtils.plotUtils import *
+from queryUtils import *
+from plotUtils import *
Ups sorry. I just noticed this.
It's basically my fault. I normally cd into the python directory, start ipython and copy and paste the code from henStatistics.py and other demo files. That's why i'm not getting that error. I will have a look how can it make it work for your case.