Machine actively refused connection

170 views
Skip to first unread message

gawalima...@gmail.com

unread,
Jan 24, 2019, 1:10:12 PM1/24/19
to BlazeLibs
Hi Team,

I am getting below error, trying to connect IBM PC from pycharm IDE, 


C:\Python36\python.exe C:/Users/vsriram1/PycharmProjects/IBM_PC_Connection/connectivity.py

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

[WinError 10061] No connection could be made because the target machine actively refused it

Traceback (most recent call last):

  File "C:/Users/vsriram1/PycharmProjects/IBM_PC_Connection/connectivity.py", line 13, in <module>

    em.fill_field(10, 26, 'rauihq5', 7)

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 493, in fill_field

    self.move_to(ypos, xpos)

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 397, in move_to

    self.exec_command("MoveCursor({0}, {1})".format(ypos, xpos).encode("ascii"))

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 308, in exec_command

    c.execute()

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 68, in execute

    self.app.write(self.cmdstr + b"\n")

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 239, in write

    self.socket_fh.flush()

  File "C:\Python36\lib\socket.py", line 604, in write

    return self._sock.send(b)

OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied

Exception ignored in: <bound method Emulator.__del__ of <py3270.Emulator object at 0x006715F0>>

Traceback (most recent call last):

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 285, in __del__

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 323, in terminate

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 308, in exec_command

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 68, in execute

  File "C:\Python36\lib\site-packages\py3270-0.3.5-py3.6.egg\py3270\__init__.py", line 239, in write

  File "C:\Python36\lib\socket.py", line 604, in write

OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied

 

Process finished with exit code 1




Thanks in advance.

Aravind Raghavan

unread,
May 28, 2019, 12:09:06 PM5/28/19
to BlazeLibs
# add path where wc3270.exe file.
os.environ['PATH'] += os.environ['PATH'] + 'C:\\Users\\aragk\\Downloads\\wc3270-3.6ga5-noinstall-32;

Sankararao ambati

unread,
Jan 9, 2020, 7:01:15 AM1/9/20
to BlazeLibs
Hello,

Could you please help me with the same issue. I was trying to connect to IBM personal comm and geeting the same issue. It would be more helpful if you can provide the 'working code.

Thank you very much in advance!

Niveditha Ramayanam

unread,
Mar 23, 2020, 10:44:49 AM3/23/20
to BlazeLibs
Hi , Please help me with the same issue. 
I tried adding environment path variable. It is still showing me the same error. Unable to connect. I am using Rocket Passport as IBM terminal. 
The windows first prompts saying Windows can not find wc3270. Make sure you typed the name correctly, and try again.

I am stuck with this error since many days. I badly need some help. Please guide. 

Exception ignored in: <function Emulator.__del__ at 0x06326270> Traceback (most recent call last): File "C:\Users\NRAMAYA\Anaconda3\lib\site-packages\py3270\__init__.py", line 285, in __del__ self.terminate() File "C:\Users\NRAMAYA\Anaconda3\lib\site-packages\py3270\__init__.py", line 323, in terminate self.exec_command(b"Quit") File "C:\Users\NRAMAYA\Anaconda3\lib\site-packages\py3270\__init__.py", line 308, in exec_command c.execute() File "C:\Users\NRAMAYA\Anaconda3\lib\site-packages\py3270\__init__.py", line 68, in execute self.app.write(self.cmdstr + b"\n") File "C:\Users\NRAMAYA\Anaconda3\lib\site-packages\py3270\__init__.py", line 239, in write self.socket_fh.flush() File "C:\Users\NRAMAYA\Anaconda3\lib\socket.py", line 607, in write return self._sock.send(b) OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it [WinError 10061] No connection could be made because the target machine actively refused it
Reply all
Reply to author
Forward
0 new messages