Importing from within package

Dieter Maurer dieter at handshake.de
Wed Sep 23 14:29:17 EDT 2020


Abdur-Rahmaan Janhangeer wrote at 2020-9-22 20:14 +0400:
>I have this main script:
>https://github.com/Abdur-rahmaanJ/shopyo/blob/dev/shopyo/__main__.py
>
>However, i get errors after package installation
>saying:
>ImportError: cannot import name 'shopyoapi' from 'shopyo'

It is right: `shopyyoapi` is not a module (no corresponding file in
`shopyo` and `shopyo:__init__.py` does not define a corresponding name.


More information about the Python-list mailing list