Coder Social home page Coder Social logo

Comments (4)

raczben avatar raczben commented on August 19, 2024

Hi,

I cannot reproduce the bug, with

  • wexpect==v2.3.5
  • python 3.7.3
  • Win 10 Pro (1903) (18362.295)
  • 8th Gen Core i7
D:\bt\wexpect-issue08>c:\Python373\python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wexpect
>>> child = wexpect.spawn('cmd.exe')
>>> child.expect('>')
0
>>> child.before
'Microsoft Windows [Version 10.0.18362.295]\r\n(c) 2019 Microsoft Corporation. All rights reserved.\r\n\r\nD:\\bt\\wexpect-issue08'
>>> exit()

D:\bt\wexpect-issue08>git status
HEAD detached at v2.3.5
nothing to commit, working tree clean

I had seen the referenced exception earlier in the past, but I cannot remember the solution.

from wexpect.

raczben avatar raczben commented on August 19, 2024

I have investigate a bit on this issue. The __consout variable is assigned in the switchTo() function.
If you get this error the error must be originated in this, switchTo() function.
The only case, which can result this issue is in the 2072 line
Please try to remove, this "exception handling", and raise the original exception after re AttachConsole(), and send me the exception.

from wexpect.

raczben avatar raczben commented on August 19, 2024

This error happens, when the child has died / not started.
See #3 , which describes this issue.

from wexpect.

raczben avatar raczben commented on August 19, 2024

Non reproducible

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.