I am using Spyder.
I have just started building a project. Its architecture is currently as shown.
As shown, I have 2 packages, one of which has a module called trajectorygeneration
now.
Both the __init__.py
files are automatically generated. I am trying to import the module into the main.py
, but I ended up with such error messages:
>>> from generation import trajectorygeneration
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named generation
How may I fix this problem?