Scweet icon indicating copy to clipboard operation
Scweet copied to clipboard

ImportError: attempted relative import with no known parent package

Open omegaresearchfoundation opened this issue 4 years ago • 2 comments

Hi

Wondering if you could help with the following. When executing the script I get the following Import Error:

File "scweet.py", line 9, in from .utils import init_driver ImportError: attempted relative import with no known parent package

Thanks

omegaresearchfoundation avatar Feb 24 '21 15:02 omegaresearchfoundation

Can you use the notebook instead ? I'm working on the library right now so I'm trying to fixe this issue. Thank.

Altimis avatar Feb 24 '21 15:02 Altimis

If you really want to work with the CLI, I recommend you go to scweet.py and change the line 9 from from .utils import init_driver to from utils import init_driver. There could be aother changes to do similar to this in the other files

Altimis avatar Feb 24 '21 15:02 Altimis