OSError: [Errno 2] No such file or directory

2

Good afternoon,

I'm trying to emulate an IBM 3270 using lib py3270, however I'm taking error while statipling the class Emulator of this lib. Anyone know 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   OSError: [Errno 2] No such file or directory

    
asked by anonymous 14.12.2015 / 20:57

1 answer

0

Problem solved. The error occurred because within 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 you just have to install the 2 emulators.

sudo apt-get install x3270
sudo apt-get install s3270
    
14.12.2015 / 22:43