Python importing hierarchy failing

24 Views Asked by At
server
├── rhino
│   ├── __init__.py
│   ├── app.py
├── web
│   ├── main.py

That is my structure, there are other files but they should not intervene.

In main.py I have the following import:

from ..rhino import Rhino

That should work, given there is a Rhino class in the app.py file.

Yet for some reason I get this error? attempted relative import with no known parent package

I'm utterly confused.

0

There are 0 best solutions below