Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError with Plotext Event Plot on Windows10 #189

Open
ADevAJ opened this issue Oct 26, 2023 · 3 comments
Open

OSError with Plotext Event Plot on Windows10 #189

ADevAJ opened this issue Oct 26, 2023 · 3 comments

Comments

@ADevAJ
Copy link

ADevAJ commented Oct 26, 2023

Following plotext's example for Event Plot code throws OSError in Windows10, in both terminal and script mode.

See also

Textualize/textual-plotext#7

@ADevAJ
Copy link
Author

ADevAJ commented Nov 6, 2023

TL;dr the problem seems to be related to passing a negative posix timestamp to Windows _date module, which creates an OSError in Python311/Lib/datetime.py, line 1787. Passing the absolute value of time0 fixes the error. However, I am unsure how to check if times are still accurate? May require a different timekeeping mechanism for Windows.

davep added a commit to Textualize/textual-plotext that referenced this issue Nov 6, 2023
See #7 and piccolomo/plotext#189 -- this seems to
be an issue somewhere between Plotext itself and Python on Windows; while we
could dive into this and try and solve it, for the purposes of a quick demo
it makes more sense to remove the problematic plot for now.
@piccolomo
Copy link
Owner

Just to update and apologise: I have been quite busy rewriting the package from ground up and will update.

@ADevAJ
Copy link
Author

ADevAJ commented Sep 19, 2024

Thanks for update! It's gotten quite popular with textual-plotext , I have a number of apps depending on it hope you can keep as much non breaking as possible :) thank you 4 ur hard work and amazing library !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants