-
-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Cygwin] IS_WINDOWS returns False with Windows 10
#1169
Comments
Thank you for reporting this. Under Some rationale can be found here https://github.com/abhinavsingh/proxy.py#threads-vs-threadless . Find below link to that function. Can you check if this function returns True or False for your environment. Likely, https://github.com/abhinavsingh/proxy.py/blob/develop/proxy/common/constants.py#L25-L31 |
cygwin |
There you go, so looks like we need to get this fixed. I'll push this out this week sometime and cut a new release. Thank you for reporting this again. |
Meanwhile, can you locally make this function return |
Windows 10
I rewrote the function, the errors did not change def _env_threadless_compliant() -> bool:
"""Returns true for Python 3.8+ across all platforms
except Windows."""
return False #not IS_WINDOWS and sys.version_info >= (3, 8)
|
@cat-policlot Thank you for the update. Looks like even though I'll leave this open. And try to revisit it sometime next week. Need to check if we can modify core to remove need of |
ok, but what about the error on windows 10, where I use powershell with python 3.10.4? |
@cat-policlot WINERROR 10022 indicates an invalid argument was supplied. This could happen for a variety of reasons, sometimes outside of One thing you could try is to run |
* Add a context manager test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * `IS_WINDOWS` must also be True for cygwin environments. Addresses #1169 * Give an acceptor join timeout of 10 seconds instead of None * Reduce timeout to just 1 sec * Install necessary types (requests is translative dep) * Remove conflicting types * Give precommit the necessary type Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@cat-policlot jFYI, Also were you able to figure out Today, I tried I'll also give a try to Best |
@cat-policlot Closing this since |
When I try to use proxy.py, it gives an error
Tested on:
cygwin python 3.9.10;
windows 10 home edition python 3.10.4
Error in the screenshots
The text was updated successfully, but these errors were encountered: