Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection actively refused. #6775

Open
Jiffmeister opened this issue Nov 14, 2023 · 0 comments
Open

Connection actively refused. #6775

Jiffmeister opened this issue Nov 14, 2023 · 0 comments

Comments

@Jiffmeister
Copy link

Jiffmeister commented Nov 14, 2023

Expected Behavior

i am trying to kick of an Instapy test by starting quickstart.py

Code is as follows:

imports
from instapy import InstaPy
from instapy import smart_run

login credentials
insta_username = 'xxx'
insta_password = 'xxx'

get an InstaPy session!
set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)

with smart_run(session):
""" Activity flow """
general settings
session.set_dont_include(["friend1", "friend2", "friend3"])

activity
session.like_by_tags(["natgeo"], amount=10)

Joining Engagement Pods
session.set_do_comment(enabled=True, percentage=35)
session.set_comments(comments)
session.join_pods(topic='sports', engagement_mode='no_comments')

##Current Behavior
Code is throwing errorcode:
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppDataLocal\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=56424): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

'<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'

I think it has something to do with the geckodriver, but this is installed in the right folder. I have also tried adding firefox manually to PATH but still no luck.

I used the installation folder to install Instapy, and using Python 3. It bugs me that it clearly states it actively refused it. I have tried turning my firewall off to see if it was blocking the connection but that didnt do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant