Instapy: cannot import 'InstaPy' (incorrect installation?)

Created on 12 Aug 2017  路  5Comments  路  Source: timgrossmann/InstaPy

Excuse my new-ness, but trying to run InstaPy in a DigitalOcean droplet. I went through the install procedure and all seems well-- I then cd'd into InstaPy/examples and changed example.py with the correct username and password.

I then tried to run it with:
python3 example.py
to which I get the error
Import Error: cannot import name 'InstaPy'

so I assume something went wrong when I was installing. So I went back and ran
python setup.py install
which gives the error:
The program 'python' can be found in the following packages:
*Python-minimal
*python3
Try: apt get install <selected package>

So I'm assuming this is where the error is coming from, so I ran
python3 setup.py install
which filled the console with all kinds of promising looking stuff that ended with
Finished processing dependencies for instagram-py==0.0.1

Which looked good so I navigated back to my python and tried to run it with
python3 example.py
but still got
Import Error: cannot import name 'InstaPy'

Suggestions?

help wanted

Most helpful comment

Solved!

For future people in the same situation, be sure to set nogui=True.

All 5 comments

the instapy module exists in the root folder of InstaPy.
copy the example.py to root folder and try running from there.

https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path

@sojan-official I moved example.py into the InstaPy/ folder and ran it, which looks like it made it further then last time, however it ended with error
selenium.commom.exceptions.WebDriverException: Message unknown error: Chrome Failed to start: excited abnormally
so now I have an error in my chrome installation? I went through and did the installation steps for chrome again with no error messages-- I am now running example.py from InstaPy/

do you have the chrome webdriver in assets folder ?

https://github.com/timgrossmann/InstaPy/blob/master/docs/How_To_DO_Ubuntu.md

@sojan-official chromedriver is in ~/InstaPy/assets alongside unicodes.md

Solved!

For future people in the same situation, be sure to set nogui=True.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wyvers picture wyvers  路  3Comments

tibor picture tibor  路  3Comments

seuraltimez picture seuraltimez  路  3Comments

Spyd3r0us picture Spyd3r0us  路  3Comments

converge picture converge  路  3Comments