Error: [Errno 2] No such file or directory

Asked

Viewed 1,003 times

4

Good afternoon,

I’m trying to emulate an IBM 3270 using the py3270 lib, but I’m making a mistake by staging the Emulator class of this lib. Anyone have any idea what it might be?

from py3270 import Emulator
def connnect():
    em = Emulator(visible=False)

Error:

File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite)

File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception Error: [Errno 2] No such file or directory

1 answer

0

Problem solved. The error occurred because inside the class Emulator had a if True e False, where one called the emulator x3270 and the other called the emulator s3270. So to solve the problem just install the 2 emulators.

sudo apt-get install x3270
sudo apt-get install s3270
  • In fact it seems that its problem was exclusively of incorrect version installed, no?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.