Coder Social home page Coder Social logo

Comments (3)

peterbrittain avatar peterbrittain commented on May 22, 2024

From the line numbers, you are running the latest development version of the code... That error indicates that Windows thinks there is an invalid handle, but you should be using a process with an active console and so the following applies...

The CreateFile function can create a handle to console input (CONIN$). If the process has an open handle to it as a result of inheritance or duplication, it can also create a handle to the active screen buffer (CONOUT$). The calling process must be attached to an inherited console or one allocated by the AllocConsole function. For console handles, set the CreateFile parameters as follows.

Are you running inside a command prompt, or from some other program - e.g. an IDE or editor?

from asciimatics.

xzenon12 avatar xzenon12 commented on May 22, 2024

The errors appers in the python ide it seems to work fine in the command prompt.

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

Well, that's expected then. Most IDEs don't actually provide a real console session.

I've just updated the troubleshooting guide to cover more than PyCharm and so believe this issue is closed. Please shout if you think there's more required here.

from asciimatics.

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.