py3270

547 views
Skip to first unread message

pedro

unread,
Nov 24, 2016, 7:07:07 AM11/24/16
to BlazeLibs
Hello, Im trying to run the example here https://pypi.python.org/pypi/py3270/0.1.5 , Why the python compiler is giving me this error? Sorry for the newbie question but i cant find any help online.

C:\Python27\python.exe C:/Users/xtr1usr/Desktop/3270.py
Exception NameError: "global name 'BrokenPipeError' is not defined" in <bound method Emulator.__del__ of <py3270.Emulator object at 0x0179D370>> ignored

Process finished with exit code 0

Randy Syring

unread,
Nov 24, 2016, 9:58:18 AM11/24/16
to blaz...@googlegroups.com

It looks like you've found a bug in py3270.  In Python 2, BrokenPipeError is not defined.  Can you run the example with Python 3.5 instead?

Randy Syring
Husband | Father | Redeemed Sinner

"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)


--
You received this message because you are subscribed to the Google Groups "BlazeLibs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blazelibs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pedro

unread,
Nov 25, 2016, 9:18:13 PM11/25/16
to BlazeLibs
The library works perfectly, but at the end of the execution it shows this annoying bug.

I tested on my personal computer with 3.5 and the bug did not appear. I will confirm once again Monday at work if its fine.
But i have too many libraries dependent on python 2.7... but anyway i want to contribute to this project as much as i can.


Can you confirm that wait_for_field() delays a script when network is slow and avoids the error message "keyboard locked"?
To unsubscribe from this group and stop receiving emails from it, send an email to blazelibs+...@googlegroups.com.

Randy Syring

unread,
Nov 26, 2016, 7:30:36 AM11/26/16
to blaz...@googlegroups.com
The bug is being tracked here: https://github.com/level12/py3270/issues/4

Can you confirm that wait_for_field() delays a script when network is slow and avoids the error message "keyboard locked"?

No.  Please read the notes in the source:

https://github.com/level12/py3270/blob/master/py3270/__init__.py#L351

It has nothing to do with the network being slow but rather working to detect when input is acceptable to the 3270 server.



Randy Syring
Husband | Father | Redeemed Sinner

"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)


Reply all
Reply to author
Forward
0 new messages