Comments (8)
Since I work with this.. "OS", I'll give it a try
from potodo.
@Mindiell you should only get this error if running potodo in interactive mode (-i
)
from potodo.
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.
Hmm ok I see the problem. I'll add a fix soon
from potodo.
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.
@JulienPalard got time to issue a fix ?
from potodo.
Not today, gotta sleep, but I hope so.
from potodo.
@Mindiell can you try updating potodo with
pip install git+https://github.com/JulienPalard/potodo.git@windows-compatibility
from potodo.
Related Issues (20)
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Adding contributors HOT 6
- Add default values ? HOT 2
- LC_MESSAGES from venv should not be here
- Handle arguments passed in the cache to invalidate it if arguments changed
- Cache: If only a file has changed, only refresh this one
- Github reservations: Support PR titles and multiple files per PR
- What is cache_args? HOT 6
- Move from travis to github actions HOT 1
- potodo fails on divide by 0 HOT 5
- Setup action to publish on twine when released on GH HOT 1
- Exclude has to be given full path if not in current directory
- Option to only display file that are done but only have fuzzies
- --no--cache doesn't work HOT 4
- potodo doesn't work on windows 10 HOT 4
- potodo still doesn't work on windows 10 HOT 2
- TypeError: string indices must be integers HOT 1
- Move to an open-source forge HOT 1
- Base progress calculations on external file structure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from potodo.