Giter Club home page Giter Club logo

Comments (8)

Mindiell avatar Mindiell commented on July 17, 2024

Since I work with this.. "OS", I'll give it a try

from potodo.

Seluj78 avatar Seluj78 commented on July 17, 2024

@Mindiell you should only get this error if running potodo in interactive mode (-i)

from potodo.

Mindiell avatar Mindiell commented on July 17, 2024

Nope, got it from the import of simple_term_emu even if I'm not in interactive mode (or is this the default mode ?).
After some research, got it because simple_term_emu is based on termios which seems to be "only available for those Unix versions that support POSIX termios style tty I/O control configured during installation."...

EDIT: Moving the potodo.interactive imports under the "is_interactive" condition seems to resolve the problem. But imports in code are ugly I think.

from potodo.

Seluj78 avatar Seluj78 commented on July 17, 2024

Hmm ok I see the problem. I'll add a fix soon

from potodo.

JulienPalard avatar JulienPalard commented on July 17, 2024

But imports in code are ugly I think.

When they fix things, I feel it's acceptable.

It's probably less ugly when used in the right place, typically right after an if is_interactive may not be the best place, but as a first line of the only function needing it feels OK to me.

I typically enjoy having import argparse in the only function using it, to avoid importing it when it's not needed (when used as a library).

So, same here, if imported in the only function using it, when the program is called without -i it won't be imported. It's probably a few milliseconds faster not to import it, so it's not only a gain for Windows users, it becomes a gain for everyone.

from potodo.

Seluj78 avatar Seluj78 commented on July 17, 2024

@JulienPalard got time to issue a fix ?

from potodo.

JulienPalard avatar JulienPalard commented on July 17, 2024

Not today, gotta sleep, but I hope so.

from potodo.

Seluj78 avatar Seluj78 commented on July 17, 2024

@Mindiell can you try updating potodo with

pip install git+https://github.com/JulienPalard/potodo.git@windows-compatibility

from potodo.

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.