Coder Social home page Coder Social logo

Comments (16)

sureshkotapydev avatar sureshkotapydev commented on August 19, 2024 1
    def readConsole(self, startCo, endCo):
        """Reads the console area from startCo to endCo and returns it
        as a string."""

        buff = []
        self.lastRead = 0

        startX = startCo.X
        startY = startCo.Y
        endX = endCo.X
        endY = endCo.Y

        while True:
            startOff = self.getOffset(startX, startY)
            logger.info("startOff %s" % startOff)
            endOff = self.getOffset(endX, endY)
            logger.info("endOff %s" % endOff)
            readlen = endOff - startOff
            logger.info("readlen %s" % readlen)

            if readlen > 4000:
                readlen = 4000
                endPoint = self.getPoint(startOff + 4000)
                logger.info("endPoint {}".format(endPoint))
            else:
                endPoint = self.getPoint(endOff)
                logger.info("endPoint {}".format(endPoint))

            s = self.__consout.ReadConsoleOutputCharacter(readlen, startCo)
            ln = len(s)
            self.lastRead += ln
            self.totalRead += ln
            buff.append(s)

            startX, startY = endPoint[0], endPoint[1]
            logger.info("startX %s startY %s" % (startX, startY))
            logger.info("endX %s endY %s" % (endX, endY))
            if readlen <= 0 or (startX >= endX and startY >= endY):
                break

        return ''.join(buff)

from wexpect.

nmz787 avatar nmz787 commented on August 19, 2024

I'm also seeing lots of zombie-looking processes, including python and something called Console Window Host

from wexpect.

raczben avatar raczben commented on August 19, 2024

Thank you for improve wexpect by reporting this issue.

I have several question for clarification:

  1. wexpect version
    [wexpect version] latest from PyPi source-download:
    What does it mean? I guess: you just downloaded the source and you placed the wexpect.py beside your source. Am I right?

  2. Can you give coherent code and stack trace? (The example code does not contains the c.before line... )

  3. MCVE
    Can you attach a minimal-reproducible-example?
    Can you replace this line c.sendline('some_command_that_might_do_svn_checkout repo_URL') with a real example?

from wexpect.

sureshkotapydev avatar sureshkotapydev commented on August 19, 2024

Same issue here. This is working with Python 2.7.x but got broken with Python3.x conversion it seems.

from wexpect.

sureshkotapydev avatar sureshkotapydev commented on August 19, 2024

@raczben,

I did some debugging on this issue, here are my observations.

  1. First getPoint() returning y as float in Python3.6.7 as division operator (/) returning float. I changed it to floor division (//) in Python3.6.7.

Current code:

    def getPoint(self, offset):
        """Converts an offset to a point represented as a tuple."""

        x = offset % self.__consSize[0]
        y = offset / self.__consSize[0] # This gives me float in Python3.6.7
        return (x, y)

Changed this to,

    def getPoint(self, offset):
        """Converts an offset to a point represented as a tuple."""

        x = offset % self.__consSize[0]
        y = offset // self.__consSize[0] # This solves my `TypeError`
        return (x, y)

This could solve my TypeError: integer argument expected, got float error.

  1. Second, there is a problem in readConsole(). The output is perfect in Python2.7.13 but the output got clipped and overwritten in Python3.6.7 when I launched my tool. I have logged both Python2.7.13 and 3.6.7 behavior on the same machine.

Here are my observations:
Python2.x log:

2019-09-29 11:51:43,051 - wexpect - INFO - startOff 0
2019-09-29 11:51:43,051 - wexpect - INFO - endOff 7450
2019-09-29 11:51:43,051 - wexpect - INFO - readlen 7450
2019-09-29 11:51:43,051 - wexpect - INFO - endPoint (0, 50)
2019-09-29 11:51:43,051 - wexpect - INFO - startX 0 startY 50
2019-09-29 11:51:43,051 - wexpect - INFO - endX 10 endY 93
2019-09-29 11:51:43,051 - wexpect - INFO - startOff 4000
2019-09-29 11:51:43,051 - wexpect - INFO - endOff 7450
2019-09-29 11:51:43,051 - wexpect - INFO - readlen 3450
2019-09-29 11:51:43,051 - wexpect - INFO - endPoint (10, 93)
2019-09-29 11:51:43,051 - wexpect - INFO - startX 10 startY 93
2019-09-29 11:51:43,051 - wexpect - INFO - endX 10 endY 93

Python3.x log:

2019-09-29 13:02:21,883 - wexpect - INFO - startOff 0
2019-09-29 13:02:21,883 - wexpect - INFO - endOff 7450
2019-09-29 13:02:21,883 - wexpect - INFO - readlen 7450
2019-09-29 13:02:21,883 - wexpect - INFO - endPoint (0, 50)
2019-09-29 13:02:21,898 - wexpect - INFO - startX 0 startY 50
2019-09-29 13:02:21,898 - wexpect - INFO - endX 10 endY 93
2019-09-29 13:02:21,898 - wexpect - INFO - startOff 4000
2019-09-29 13:02:21,898 - wexpect - INFO - endOff 7450
2019-09-29 13:02:21,898 - wexpect - INFO - readlen 3450
2019-09-29 13:02:21,898 - wexpect - INFO - endPoint (10, 93)
2019-09-29 13:02:21,898 - wexpect - INFO - startX 10 startY 93
2019-09-29 13:02:21,898 - wexpect - INFO - endX 10 endY 93
2019-09-29 13:02:21,914 - wexpect - INFO - startOff 7440 # This is an extra iteration on Python3.6.7
2019-09-29 13:02:21,914 - wexpect - INFO - endOff 7450
2019-09-29 13:02:21,914 - wexpect - INFO - readlen 10
2019-09-29 13:02:21,914 - wexpect - INFO - endPoint (10, 93)
2019-09-29 13:02:21,914 - wexpect - INFO - startX 10 startY 93
2019-09-29 13:02:21,914 - wexpect - INFO - endX 10 endY 93

So there is an extra iteration to readConsole() with Python3.x that might be causing the output to get overwritten with old buffer.

As I am working with a specific interactive tool which cannot be shared, I am not able to share a real world example to reproduce the issue. Following is my sample code:

import wexpect
wp = wexpect.spawn("interactive-tool.exe")
wp.expect(PROMPT)
print(wp.before)

I hope this will give you an insight of the issue. I am trying to fix this problem from my end but any help would be greatly appreciated. Thanks.

from wexpect.

raczben avatar raczben commented on August 19, 2024

@sureshkotapydev

Thanks for your investigation. Note, that Python 2, and 3 don't use the same code.
v2.3.2 supports python 2.x
v2.3.3 and above supports python 3.x

from wexpect.

raczben avatar raczben commented on August 19, 2024

Maybe #9 is the same issue...

from wexpect.

sureshkotapydev avatar sureshkotapydev commented on August 19, 2024

I understood that Python 2, and 3 don't use the same code. I have tested latest code with Python3.6.7 and had this problem. Same problem with v2.3.3 as well. My aim is to get this problem resolved for Python3.6.7.

from wexpect.

raczben avatar raczben commented on August 19, 2024

Can you share your logging code? (Which lines do you have inserted the logging commands.)

from wexpect.

raczben avatar raczben commented on August 19, 2024

I have a preliminary fix of #9 which is a similar issue.
Can you check your case with this code?
pip install wexpect==2.3.7.dev6
OR source:
https://github.com/raczben/wexpect/tree/0e359036ab37c77e0b17be242453234f908ba875

There is a repeated read at line 2229, which seems unwanted.

from wexpect.

sureshkotapydev avatar sureshkotapydev commented on August 19, 2024

Thanks for your help on this issue.

I have tested this code pip install wexpect==2.3.7.dev6.

  1. First, I got this error:
C:\Users\Administrator\AppData\Local\Programs\Python\Python36>python.exe
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wexpect
>>> wp = wexpect.spawn("interactivetool.exe")
>>> wp.expect(prompt)
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 2309, in read_nonblocking
    s = self.readConsoleToCursor()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 2239, in readConsoleToCursor
    raw = self.readConsole(self.__currentReadCo, cursorPos)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 2183, in readConsole
    s = self.__consout.ReadConsoleOutputCharacter(readlen, startCo)
TypeError: integer argument expected, got float

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1436, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1779, in read_nonblocking
    s = self.wtty.read_nonblocking(timeout, size)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 2330, in read_nonblocking
    raise EOF('End Of File (EOF) in Wtty.read_nonblocking().')
wexpect.EOF: End Of File (EOF) in Wtty.read_nonblocking().

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1369, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1383, in expect_list
    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1454, in expect_loop
    raise EOF (str(e) + '\n' + str(self))
wexpect.EOF: End Of File (EOF) in Wtty.read_nonblocking().
<wexpect.spawn_windows object at 0x00000126F9797470>
version: 2.3.7.dev6 ($Revision: 399 $)
command: interactivetool.exe
args: ['interactivetool.exe']
searcher: searcher_re:
    0: re.compile(prompt)
buffer (last 100 chars):
before (last 100 chars):
after: <class 'wexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 7800
child_fd: None
closed: False
timeout: 30
delimiter: <class 'wexpect.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1

I have fixed this by changing line 2149 to this:
y = offset // self.__consSize[0]

  1. Second, expect(prompt) waited for timeout to match prompt and gave the following error:
C:\Users\Administrator\AppData\Local\Programs\Python\Python36>python.exe
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wexpect
>>> wp = wexpect.spawn("interactivetool.exe")
>>> wp.expect(prompt)
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1436, in expect_loop
    c = self.read_nonblocking(self.maxread, timeout)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1790, in read_nonblocking
    raise TIMEOUT ('Timeout exceeded in read_nonblocking().')
wexpect.TIMEOUT: Timeout exceeded in read_nonblocking().

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1369, in expect
    return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1383, in expect_list
    return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\wexpect.py", line 1467, in expect_loop
    raise TIMEOUT (str(e) + '\n' + str(self))
wexpect.TIMEOUT: Timeout exceeded in read_nonblocking().
<wexpect.spawn_windows object at 0x000001F8AE507470>
version: 2.3.7.dev6 ($Revision: 399 $)
command: interactivetool.exe
args: ['interactivetool.exe']
searcher: searcher_re:
    0: re.compile(prompt)
buffer (last 100 chars):  Key Pair

        Symmetric Keys:
   genPBEKey              Generates a PBE DES3 key
   genSymK
before (last 100 chars):  Key Pair

        Symmetric Keys:
   genPBEKey              Generates a PBE DES3 key
   genSymK
after: <class 'wexpect.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 4540
child_fd: None
closed: False
timeout: 30
delimiter: <class 'wexpect.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1

And here is the wexpect.log content:

2019-10-02 08:42:44,412 - wexpect.py::<module> - INFO - wexpect imported; logger working
2019-10-02 08:42:46,589 - wexpect.py::<module> - INFO - wexpect imported; logger working
2019-10-02 08:42:47,996 - wexpect.py::readConsoleToCursor - DEBUG - Read the current slice again
2019-10-02 08:42:47,997 - wexpect.py::readConsole - DEBUG - startX: 0  startY 0  --  endX: 10  endY: 93
2019-10-02 08:42:47,997 - wexpect.py::readConsole - DEBUG - startOff: 0  endOff 7450  readlen: 7450
2019-10-02 08:42:47,997 - wexpect.py::readConsole - DEBUG - endPoint: (0, 50)
2019-10-02 08:42:47,998 - wexpect.py::readConsole - DEBUG - ReadConsoleOutputCharacter: 'Daemon version received: 2.06, SDK version: 2.06\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Cfm3Initialize() returned app id : 01008000 \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        session_handle 1008002 \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Current FIPS mode is: 00000002\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04Help Commands Available:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04Syntax: <command> -h                                     \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   Command               Description\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   =======               ===========\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   exit                   Exits this application\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   help                   Displays this information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Configuration and Admin Commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getHSMInfo             Gets the HSM Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getPartitionInfo       Gets the Partition Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   listUsers              Lists all users of a partition   \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   loginStatus            Gets the Login Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   loginHSM               Login to the HSM\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   logoutHSM              Logout from the HSM\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        M of N commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getToken               Initiate an MxN service and get Token\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   delToken               delete Token(s)\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   approveToken           Approves an MxN service\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   listTokens             List all Tokens in the current partition\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Key Generation Commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Asymmetric Keys:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genRSAKeyPair          Generates an RSA Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genDSAKeyPair          Generates a DSA Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genECCKeyPair          Generates an ECC Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Symmetric Keys:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genPBEKey              Generates a PBE DES3 key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genSymKey              Generates a Symmetric keys\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Key Import/Export Commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   createPublicKey        Creates an RSA public key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   importPubKey           Imports RSA/DSA/EC Public key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   exportPubKey           Exports RSA/DSA/EC Public key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   importPrivateKey       Imports RSA/DSA/EC private key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04'
2019-10-02 08:42:47,999 - wexpect.py::readConsole - DEBUG - startOff: 4000  endOff 7450  readlen: 3450
2019-10-02 08:42:47,999 - wexpect.py::readConsole - DEBUG - endPoint: (10, 93)
2019-10-02 08:42:48,000 - wexpect.py::readConsole - DEBUG - ReadConsoleOutputCharacter: 'Daemon version received: 2.06, SDK version: 2.06\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Cfm3Initialize() returned app id : 01008000 \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        session_handle 1008002 \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Current FIPS mode is: 00000002\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04Help Commands Available:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04Syntax: <command> -h                                     \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   Command               Description\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   =======               ===========\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   exit                   Exits this application\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   help                   Displays this information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Configuration and Admin Commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getHSMInfo             Gets the HSM Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getPartitionInfo       Gets the Partition Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   listUsers              Lists all users of a partition   \x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   loginStatus            Gets the Login Information\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   loginHSM               Login to the HSM\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   logoutHSM              Logout from the HSM\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        M of N commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   getToken               Initiate an MxN service and get Token\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   delToken               delete Token(s)\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   approveToken           Approves an MxN service\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   listTokens             List all Tokens in the current partition\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Key Generation Commands\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Asymmetric Keys:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genRSAKeyPair          Generates an RSA Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genDSAKeyPair          Generates a DSA Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genECCKeyPair          Generates an ECC Key Pair\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04        Symmetric Keys:\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genPBEKey              Generates a PBE DES3 key\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04   genSymK'
2019-10-02 08:42:48,009 - wexpect.py::readConsoleToCursor - DEBUG - Read the current slice again
2019-10-02 08:42:48,009 - wexpect.py::readConsole - DEBUG - startX: 10  startY 93  --  endX: 10  endY: 93
2019-10-02 08:42:48,009 - wexpect.py::readConsole - DEBUG - startOff: 7450  endOff 7450  readlen: 0
2019-10-02 08:42:48,009 - wexpect.py::readConsole - DEBUG - endPoint: (10, 93)
2019-10-02 08:42:48,009 - wexpect.py::readConsole - DEBUG - ReadConsoleOutputCharacter: ''
---------------------------------------------------------------------------------------------------------
----------- This repeats untill timeout (in this case 30 seconds) -------------------------------------
----------------------------------------------------------------------------------------------------------
2019-10-02 08:43:17,997 - wexpect.py::readConsoleToCursor - DEBUG - Read the current slice again
2019-10-02 08:43:17,997 - wexpect.py::readConsole - DEBUG - startX: 10  startY 93  --  endX: 10  endY: 93
2019-10-02 08:43:17,997 - wexpect.py::readConsole - DEBUG - startOff: 7450  endOff 7450  readlen: 0
2019-10-02 08:43:17,997 - wexpect.py::readConsole - DEBUG - endPoint: (10, 93)
2019-10-02 08:43:17,997 - wexpect.py::readConsole - DEBUG - ReadConsoleOutputCharacter: ''

from wexpect.

raczben avatar raczben commented on August 19, 2024

I have understood that this is two different issues.
Sorry for the slow understanding.
Now I can reproduce the original issue! (The float crashes) See i10 branch
This issue has been solved by @sureshkotapydev fix by changing line 2149 to this:
y = offset // self.__consSize[0]
This happens when the output of the child is longer than 4000 characters, which is a constant in the wexpect code. In this case, the read_nonblocking do more than one loop, which can cause this issue.

Now I will try to fix the other issue.

Comment:
Line 2326 seems completely wring, I suggest to remove this.

from wexpect.

nmz787 avatar nmz787 commented on August 19, 2024

I got this error again tonight, after applying the fix for #11 (#11 (comment)) onto the last commit mentioned here, I was able to get past these issues!
Thanks!

from wexpect.

raczben avatar raczben commented on August 19, 2024

Hi @nmz787 ,

I'm a bit confused...
You mention the applying #11, while this is the #10 issue. Can you clarify?
Can you test the same script, what have crashed (when you have opened this issue) with 3484a98 ?

from wexpect.

nmz787 avatar nmz787 commented on August 19, 2024

That is what I already did. I was encountering #11 then after that encountered #10. I got the "#10 merged to test" file and applied the #11 fix to it.

from wexpect.

raczben avatar raczben commented on August 19, 2024

2.3.9 fixes

Install: pip install wexpect==2.3.9

Pypi: https://pypi.org/project/wexpect/2.3.9/

Source: https://github.com/raczben/wexpect/tree/c1e81b3a69d4d3821cb01b61bd5297b51a24539f

from wexpect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.