-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Getting "Error: EOF: end of file, read" on Windows #11314
Comments
I am unable to reproduce this problem on macOS/UNIX. Have to prepare a windows environment to attempt reproduction there; which might take a little while. |
Good news - I was able to reproduce it now (on Windows)! I'll try to figure out what's happening here... |
Alright - so the This isn't quite the first oddity we have faced that mostly affects Windows users (as you've noted the hack we already have in place for Interestingly, this error happens as the app has correctly finished (the Python process then closes the If we're not finding a better solution fast enough, we'll have to actually identify this |
Alright I have been able to come up with a simple repro, which actually demonstrates the reason I could not "easily" reproduce previously is because of the difference in nature of the |
Filed a bug to NodeJS (nodejs/node#35997). |
Merci! Thank you for your help! This tells me to focus on node.js. I will try using some previous version of node.js as a remedy. If that works, I will post the nodejs version here. |
I seem unable to reproduce this issue on GitHub Actions where I'd run node |
@RomainMuller Workaround: replace jsii 1.14.x distro in site-packages with 1.12 or 1.13 distro. After swap, errors stop. TL;DR Rolling back node.js or cdk to earlier versions had no effect because pip install - r requirements.txt always installed the 1.14.x distro. Longer term fix: move dev platform from Windows to linux. |
still see this in cdk version 1.73.0 and python 3.8 |
Same issue Python 3.9.0 and CDK 1.74.0 (build e86602f)
|
how should i install this jsii1.12 version in windows |
RE: "how should I install this jsii1.12 version in windows" The 2nd answer in the stackoverflow question below expands on the 2 workarounds given. |
@nulli2nd should be enough to execute: |
@ot-jim-elphick thanks for the deep dive, and sorry for not having gotten back there earlier... I'm going to investigate this further to try and understand what changed between |
Is this still happening with |
I confirm that the issue is solved. Thanks!
|
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
description of the bug:
returns JSII error on empty stack. May be related to #5187.
stack trace references SyncStdio.readLine (myfolder\jsii_embedded\jsii\jsii-runtime.js:13278:33)
Comment in code at 'throw e':
Reproduction Steps
(using powershell) This follows example from https://docs.aws.amazon.com/cdk/latest/guide/ecs_example.htmlWhat did you expect to happen?
return an empty stack with no error
What actually happened?
Environment
Other
Error is persistent and easily reproduced on my machine.
I re-installed/upgraded aws cli to 2.0.61
I re-installed node.js
I re-installed cdk
Note: As noted in the section above, this 'hello world' level error still creates a stack. However, when more code is added, more jsii errors occur and the stack fails. Also, code that errors on my machine runs normally on other machines.
The text was updated successfully, but these errors were encountered: