-
Notifications
You must be signed in to change notification settings - Fork 27
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
[WIP] Named pipe cleanup #85
Conversation
@SimonBiggs @dalito, do you mind trying out the snippet below with these changes? You can make the changes by overwriting the from winpty import PtyProcess
proc = PtyProcess.spawn('python')
proc.write('print("hello, world!")\r\n')
proc.write('exit()\r\n')
while proc.isalive():
print(proc.readline()) |
I won't get a chance till I'm back on my work computer on Monday. (It's Friday evening here now). |
If it's not resolved by then though I shall give it a go :) |
(All Linux at home) |
I still get the same two errors (the order is random). Here is the result:
Do you have an idea why there are two different errors seen randomly? What can cause a timing problem? Thanks for looking at this. I can continue to test possible fixes over the weekend. |
The port error is most likely due to an antivirus software or system policy limiting access to ports. The default port is 20128. Can you please try changing that line locally to default to |
@dalito, I've updated the file in the PR with more debug info, and an attempt to read a second time if the first fails, can you please try that as well? |
Here is the result
|
Unfortunately I am no closer to understanding what is going on here. |
@blink1073 let me know if there is anything I can do. It might be possible to do a remote session if you wanted to do more hands on troubleshooting. |
Just for reference here is me running the results of this pull request on my machine.
|
As an extra step our IT administrator temporarily disabled my antivirus. This didn't stop the OSError from occuring. |
To add to @SimonBiggs tests: Also when run as admin the error stays. |
@dalito, so this is not fixed by your PR? |
AFAIK, this is a problem related to the Python distribution itself. The strange fact is that it should be resolved |
My process of installing python was to install a recent Miniconda and then
run something like 'conda install python=3.5' to downgrade from 3.6 back to
3.5.
(Some of my dependencies were struggling with 3.6 on conda for some reason)
If you like I can uninstall Python and reinstall it with clear reproducible
steps to see if it is then reproducible on other machines.
…On Fri., 26 Jan. 2018, 9:22 am Edgar Andrés Margffoy Tuay, < ***@***.***> wrote:
AFAIK, this is a problem related to the Python distribution itself. The
strange fact is that it should be resolved
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGQVe8Bnsnx2mRmU9_0m5VBHsFB5hMvUks5tOP6TgaJpZM4RkVDG>
.
|
@SimonBiggs, could you see what happens in Python 3.6? |
I did make a python 3.6 environment `conda create --name py36 python=3.6`
it still didn't work under that.
…On Sun., 28 Jan. 2018, 3:52 am Carlos Cordoba, ***@***.***> wrote:
@SimonBiggs <https://github.com/simonbiggs>, could you see what happens
in Python 3.6?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGQVe7BgNRdzTv7q91zvhils85JBPO94ks5tO1RcgaJpZM4RkVDG>
.
|
@blink1073, what to do about this PR? Do you want to close or merge it? |
Closing, not sure what else to try here. |
Potential fix for #59.