Forums

ModuleNotFoundError: No module named 'base'

Hi first i would like to thank you for your service it very useful for the beginner like me to improve them capability. my issue come install Django-reporting and try to use it here

https://www.pythonanywhere.com/user/Hisafi/shares/0e943c14596045608fcbc27c15b2c8c7/

Blockquote

but this error come Traceback (most recent call last): File "/home/Hisafi/workManager/task/reports.py", line 2, in <module> import reporting File "/home/Hisafi/.local/lib/python3.6/site-packages/reporting/__init__.py", line 2, in <module> from base import Report ModuleNotFoundError: No module named 'base'

Blockquote

Does this help?

Also make sure you are running from the correct working directory.

Traceback (most recent call last): File "/home/Hisafi/workManager/task/reports.py", line 2, in <module> import reporting File "/home/Hisafi/.local/lib/python3.6/site-packages/reporting/init.py", line 2, in <module> from base import Report ModuleNotFoundError: No module named 'base'

it mention here /home/Hisafi/.local/lib/python3.6/site-packages/reporting/init.py no module name base but the module there

/home/Hisafi/.local/lib/python3.6/site-packages/reporting/base.py the same folder why it come like that?

![ https://photos.google.com/u/1/photo/AF1QipNpt1lJzzyB3_ZYUiBN8JRH_YQetZ5mBhD22K14[1]

after add django- reporting ![ [1]: https://photos.google.com/u/1/photo/AF1QipN07qHAF8w4FFMDS1WPNWBOf4XGwzaYIKVMbAUr[1]

by run the reporting code itself could you help to solve it by step by step thank you

That seems like a really strange error to get for a module you've installed. Are you sure it is a module that is compatible with Python 3.6?

it's django-reporting they mention it's compatible with python3.6 if the problem is package or modules which I install how can i remove it which package you recommend me to use to get reports from modules thank you

That depends on how you had installed your packages in the first place. The simple answer would be you can just pip uninstall the package. (using the --user flag or from within your virtualenv)