Author Brian Kurt
Recipients Brian Kurt
Date 2017-08-21.12:29:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi, i am experiencing an issue while trying shipping my python script to jython. The script work perfect running with python . however, i get the below running in Jython standalone jar 2.7.* 

logs =,[],[])   File "filepath/jython-standalone-2.7.0.jar/Lib/", line 1468, in select   File "/filepath/jython-standalone-2.7.0.jar/Lib/", line 410, in __call__   File "/home/A230754/Documents/DevOps/liquibase-client/jython-standalone-2.7.0.jar/Lib/", line 17, in __enter__   File "/home/A230754/Documents/DevOps/liquibase-client/jython-standalone-2.7.0.jar/Lib/", line 17, in __enter__   File "/home/A230754/Documents/DevOps/liquibase-client/jython-standalone-2.7.0.jar/Lib/", line 402, in _register_sockets   File "/home/A230754/Documents/DevOps/liquibase-client/jython-standalone-2.7.0.jar/Lib/", line 390, in _normalize_sockets _socket.error: [Errno 9] Bad file descriptor:

tried various methods and still not succeeding. to a point i thought this is a bug.

my code

  myfile =open('file_path.log','w',0)
            stdout= []
            stderr= []
        while True:
            #reading the output and standard error output from subprocess and background process(liquibase_logs)
            reads = [p.stdout.fileno()]
            #The select system call to wait until ready for reading,wait until ready for writing,wait for an exceptional condition
            logs =,[],[])
            #iterate through logs
            for fd in logs[0]:
                if fd == p.stdout.fileno():
                    read = p.stdout.readline()
                    sys.stdout.write('stdout: ' + read)
                #if fd == p.stderr.fileno():
                  #  read = p.stderr.readline()
                  #  sys.stderr.write('stderr: ' + read)
                   # stderr.append(read)
            if p.poll() != None:
Date User Action Args
2017-08-21 12:29:59Brian Kurtsetrecipients: + Brian Kurt
2017-08-21 12:29:59Brian Kurtsetmessageid: <>
2017-08-21 12:29:59Brian Kurtlinkissue2615 messages
2017-08-21 12:29:57Brian Kurtcreate