instapy-docker icon indicating copy to clipboard operation
instapy-docker copied to clipboard

RuntimeError: generator didn't yield

Open juergencer opened this issue 5 years ago • 23 comments

Hi we are trying to run instapy in docker with following command: docker run --name instapy -v /Users/jurgenceramique/InstaPy/zwei.py:/code/docker_quickstart.py -v /Users/jurgenceramique/InstaWork:/code/InstaPy -d instapy/instapy:latest

zwei.py has following entries

imports

from instapy import InstaPy from instapy import smart_run

login credentials

insta_username = '' insta_password = '**'

get an InstaPy bot!

set headless_browser=True to run InstaPy in the background

bot = InstaPy(username=insta_username, password=insta_password, headless_browser=True)

with smart_run(bot): """ Activity flow """ # general settings bot.set_relationship_bounds(enabled=True, delimit_by_numbers=True, max_followers=4590, min_followers=40, min_following=100)

bot.set_dont_include(["friend1", "friend2", "friend3"])
bot.set_dont_like(["pizza", "#store"])

# activities

""" Massive Follow of users followers (I suggest to follow not less than
3500/4000 users for better results)...
"""
bot.follow_user_followers(['helge_schneider_official', 'chailatte_roche', 'evimstore'], amount=4,
                              randomize=False, interact=False)

""" First step of Unfollow action - Unfollow not follower users...
"""
#bot.unfollow_users(amount=100, InstapyFollowed=(True, "nonfollowers"),
 #                      style="FIFO",
  #                     unfollow_after=1 * 60 * 60, sleep_delay=601)

we get following output from docker logs 2445kb [00:03, 698.04kb/s] ****** INFO [2020-10-22 19:22:55] [] Session started! INFO [2020-10-22 19:22:55] [] -- Connection Checklist [1/2] (Internet Connection Status) INFO [2020-10-22 19:22:55] [] - Internet Connection Status: ok INFO [2020-10-22 19:22:55] [] - Current IP is "92.75.213.99" and it's from "Germany/DE" INFO [2020-10-22 19:22:55] [] -- Connection Checklist [2/2] (Hide Selenium Extension) INFO [2020-10-22 19:22:55] [] - window.navigator.webdriver response: None INFO [2020-10-22 19:22:55] [] - Hide Selenium Extension: ok INFO [2020-10-22 19:23:39] [] Timed out with failure while explicitly waiting until title contains 'Login' string!

INFO [2020-10-22 19:24:17] [******] Timed out with failure while explicitly waiting until visibility of element located!

INFO [2020-10-22 19:24:23] [******] Sessional Live Report: |> No any statistics to show

[Session lasted 1.63 minutes] INFO [2020-10-22 19:24:23] [******] Session ended! InstaPy Version: 0.6.11 .. .. .. .. .. .. ._. Workspace in use: "/root/InstaPy" OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO oooooooooooooooooooooooooooooooooooooooooooooooooooooo Cookie file not found, creating cookie...


If raising an issue, please also upload the file located at: /tmp/20201022-192422.html


OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Traceback (most recent call last): File "docker_quickstart.py", line 32, in with smart_run(bot): File "/usr/local/lib/python3.7/contextlib.py", line 114, in enter raise RuntimeError("generator didn't yield") from None RuntimeError: generator didn't yield

juergencer avatar Oct 22 '20 19:10 juergencer

Hi same

Gabyheavy avatar Oct 28 '20 17:10 Gabyheavy

Same here

ntelo007 avatar Oct 29 '20 12:10 ntelo007

Same..

walayd avatar Nov 07 '20 20:11 walayd

Same Problem

AndreMorgenstern avatar Nov 11 '20 08:11 AndreMorgenstern

Did you find any solution for this issue?

frizurd avatar Dec 21 '20 13:12 frizurd

Hi all ! Same here. How to fix it please ? thx

juanpa669 avatar Dec 30 '20 14:12 juanpa669

Same

andreazagoit avatar Jan 12 '21 03:01 andreazagoit

same here.

tmhu7 avatar Jan 12 '21 05:01 tmhu7

same here...

cchriso avatar Jan 12 '21 21:01 cchriso

Same.

m7142yosuke avatar Jan 12 '21 23:01 m7142yosuke

same here

Freakaa avatar Jan 20 '21 20:01 Freakaa

same here

Aassifh avatar Jan 21 '21 13:01 Aassifh

same here. image

Venus713 avatar Feb 10 '21 08:02 Venus713

same here

JustDhan avatar Feb 19 '21 00:02 JustDhan

still no fix yet?

t0bse avatar Mar 13 '21 13:03 t0bse

no - still not working on 0.6.13... :(

Traceback (most recent call last): stdout File "docker_quickstart.py", line 20, in <module> stdout with smart_run(bot): stdout File "/usr/local/lib/python3.7/contextlib.py", line 114, in __enter__ stdout raise RuntimeError("generator didn't yield") from None stdout RuntimeError: generator didn't yield

Freakaa avatar Mar 14 '21 09:03 Freakaa

same

dermatz avatar May 11 '21 19:05 dermatz

Same same

marcosvrs avatar Jul 06 '21 16:07 marcosvrs

same over here

zecaclasher avatar Dec 27 '21 08:12 zecaclasher

Hi same error. Help please.

maksoltane avatar Dec 31 '21 08:12 maksoltane

Same here

Pierre-Bouquet avatar Feb 20 '22 22:02 Pierre-Bouquet

Run this command in root instapy installed folder:

pip install .

burakbuylu avatar Aug 09 '22 17:08 burakbuylu