Instapy: No Module named instapy

Created on 9 Aug 2017  Â·  7Comments  Â·  Source: timgrossmann/InstaPy

Hello, I am running InstaPy on my raspberryPi 3 and everytime i try and run quickstart.py i get this error-
Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/docker_conf/all_in_one/quickstart.py", line 1, in
from instapy import InstaPy
ImportError: No module named 'instapy'

Not sure what I did wrong as i am new to python.... thanks.

help wanted

All 7 comments

Your script should be in the root folder of InstaPy, either way python
won't find it.
"/home/pi/Projects/InstaPy/" in your case.
Otherwise, I suppose you should change the import at the beginning of the
script.

On Wed, Aug 9, 2017, 12:38 AM amoffitt123 notifications@github.com wrote:

Hello, I am running InstaPy on my raspberryPi 3 and everytime i try and
run quickstart.py i get this error-
Traceback (most recent call last):
File "/home/pi/Projects/InstaPy/docker_conf/all_in_one/quickstart.py",
line 1, in
from instapy import InstaPy
ImportError: No module named 'instapy'

Not sure what I did wrong as i am new to python.... thanks.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/timgrossmann/InstaPy/issues/513, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACbbQQm9WPVFpRHVDJ4yA6Mx7Dr_YG3iks5sWON4gaJpZM4OxYWl
.

Thanks @iSimonWeb, that fixed that problem, but then when I tried running quickstart.py again in the terminal with

sudo xvfb-run python quickstart.py

I got these errors
Traceback (most recent call last):
File "quickstart.py", line 14, in
InstaPy() \
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 93, in __init__
self.set_selenium_local_session()
File "/home/pi/Projects/InstaPy/instapy/instapy.py", line 132, in set_selenium_local_session
self.browser = webdriver.Chrome(chromedriver_location, chrome_options=chrome_options)
File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/common/service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

Exception AttributeError: "'Service' object has no attribute 'process'" in > ignored

@amoffitt123 Did you put the chromedriver in /assets?

No... will try that.

Also, this may be a super silly question, but where do you enter your username and password?

@amoffitt123 Could you please take a look at the README file here on GitHub?
There is a Getting Started section 😉

hey I know this was a silly question but I read the readme and saved a different script not in the root folder and I was lost until I found this thread and your answers. So I appreciate y'all answering this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Spyd3r0us picture Spyd3r0us  Â·  3Comments

n0sw34r picture n0sw34r  Â·  3Comments

tibor picture tibor  Â·  3Comments

CharlesCCC picture CharlesCCC  Â·  3Comments

harrypython picture harrypython  Â·  3Comments