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

[BUG] io.UnsupportedOperation error on launch #46

Closed
x10102 opened this issue Apr 7, 2022 · 8 comments
Closed

[BUG] io.UnsupportedOperation error on launch #46

x10102 opened this issue Apr 7, 2022 · 8 comments
Labels
Bug Something isn't working

Comments

@x10102
Copy link

x10102 commented Apr 7, 2022

Launching PTG on Windows produces an "io.UnsupportedOperation" error.

PTG Version:
4.3.1

Python version:
3.10

Code:
Window using children as arguments example from README

Screenshot:

image

@x10102 x10102 added the Bug Something isn't working label Apr 7, 2022
@x10102
Copy link
Author

x10102 commented Apr 7, 2022

This seems to be exactly the same error as #45. However, both the 'error.errno' and 'error.winerror' attributes are None.
If the error number is always None on Windows, this could be fixed with a simple OS check:

...
except OSError as error:
            if error.errno != errno.EINVAL and os.name != 'nt':
                raise
...

@bczsalba
Copy link
Owner

bczsalba commented Apr 7, 2022

Yup, I figured it was. Kind of annoying that the error gives completely different errors between Linux and Windows, while working without an exception on MacOS. Could you try the fix you have above?

@x10102
Copy link
Author

x10102 commented Apr 7, 2022

Just tried, it works.

@bczsalba
Copy link
Owner

bczsalba commented Apr 7, 2022

Alright, will add it in the next release. It will either be a bugfix patch or come bundled with the next minor release, depending on how much time I have away from university over the weekend.

Thanks for the report!

@x10102
Copy link
Author

x10102 commented Apr 8, 2022

Nice.
Thanks for the project btw, I love it.

@bczsalba
Copy link
Owner

bczsalba commented Apr 8, 2022

Thank you! Btw, some very cool work is being done over at the compositor branch, which should massively improve drawing performance and general responsiveness.

Once that's done I'm planning on implementing a global color palette based on real life user testing. Exciting times!

@bczsalba
Copy link
Owner

bczsalba commented Apr 8, 2022

Actually, while we are here, how is PTG working on Windows, and what is your specific config? Haven't really been able to test it over there yet, so I'm very interested in how things are.

@x10102
Copy link
Author

x10102 commented Apr 9, 2022

I haven't really gotten started with the project yet, but I'll be sure to update you if there are any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants