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

ascii conversion stopping error #6

Open
hydrastarmaster opened this issue Aug 1, 2018 · 1 comment
Open

ascii conversion stopping error #6

hydrastarmaster opened this issue Aug 1, 2018 · 1 comment

Comments

@hydrastarmaster
Copy link

Traceback (most recent call last):
File "cicspwn/cicspwn.py", line 2604, in
connect_zOS(results.IP+":"+results.PORT)
File "cicspwn/cicspwn.py", line 283, in connect_zOS
if not em.is_connected():
File "/usr/local/lib/python2.7/dist-packages/py3270/init.py", line 336, in is_connected
self.exec_command(b'ignore')
File "/usr/local/lib/python2.7/dist-packages/py3270/init.py", line 299, in exec_command
c.execute()
File "/usr/local/lib/python2.7/dist-packages/py3270/init.py", line 77, in execute
return self.handle_result(result.decode('ascii'))
File "/usr/local/lib/python2.7/dist-packages/py3270/init.py", line 95, in handle_result
raise CommandError(msg.decode('ascii'))
py3270.CommandError: Unknown action: ignore

@psmet
Copy link

psmet commented Aug 14, 2018

Hi @hydrastarmaster,

This error is due to the ignore method note supported anymore. Instead, you need to modify the py3270/__init__.py line 336 and change the following:

[-]            self.exec_command(b'ignore')
[+]           self.exec_command(b'Query(ConnectionState)')

The pull request is here: py3270/py3270#13

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

2 participants