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

parser script not working on Windows #53

Open
jerabaul29 opened this issue May 19, 2022 · 5 comments
Open

parser script not working on Windows #53

jerabaul29 opened this issue May 19, 2022 · 5 comments
Labels
wontfix This will not be worked on

Comments

@jerabaul29
Copy link
Owner

From user feedback:

"
AttributeError: module 'time' has no attribute 'tzset'.
"

This is a windows vs. linux compatibility issue:

https://stackoverflow.com/questions/1988182/why-my-time-class-has-not-tzset-attribute

See [the docs](http://docs.python.org/library/time.html?highlight=tzset#time.tzset) for tzset: they clearly say

    Availability: Unix.

so you would have it in, say, MacOSX, Solaris, or Linux, but not on Windows.

To run the decoder, use either a linux system, or run on windows through the WSL - windows subsystem for linux.

I do not have access to a Windows machine, and I will only provide support for linux myself (specifically, Ubuntu distros, 20.04 or newer).

@jerabaul29 jerabaul29 added the wontfix This will not be worked on label May 19, 2022
@jerabaul29
Copy link
Owner Author

For WSL, see for example https://pbpython.com/wsl-python.html and similar. Using Ubuntu OS in WSL you should be able to reproduce the exact same kind of environment I use, and things should work.

@jerabaul29
Copy link
Owner Author

Also possible to use an Ubuntu Virtualbox.

@jvoermans
Copy link

Bit late, but you can just remove 'tzset' in windows, then run script through Spyder or equivalent, works for me...

@jerabaul29
Copy link
Owner Author

Thanks for the update @jvoermans . Be careful / be aware though that, if you do not use the tzset, you may have bad surprises about which time zone python may choose for you / be using under the hood... That may result easily in some "corruption" of timestamps by shifting the time value by a few hours when converting stuff back and forth later in your scripts. I think a better option would be that you find how to set up the time zone to utc on windows and continue using tzset, but with a windows compatible backend :) .

@jvoermans
Copy link

Noted :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants