-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
aws_cdk python breaks import of jinja2 module on windows 10 64-bit #5094
Comments
This is a python specific issue |
Yes, but you support python in cdk so you should fix comptability issues introduced by aws provided python libraries |
Absolutely. The reason I noted that was related to our internal assignment. We should definitely look into this! |
Are you using the virtual environment created by the init template? |
For the actual project where we discovered the issue I have created the virtual env using "python -m venv .env" but I think for this minimal example for the bug ticket I think I used the one from the init template but I can't say for sure anymore. But I think it happens in both cases. But we must be able to re-create the .env anyhow if me move the folder or use it in linux etc. therefore we don't even save the .env for our project in our gitlab repository. If anyone needs to work with it he/she checks out the cdk code and quickly runs "python -m venv .env", activates the venv and then does "pip install -r requirements.txt" and he should be ready to go. |
Would you be able to run your reproduction with the |
I seem to have hit the same problem when testing with
Running the snippet (as an administrator under Windows Enterprise 10.0.18363, Build 18363) results in following stack trace (
Virtual environment created by the init
|
Any news? |
I'm getting this issue without importing jinja2 module. After upgrading to v1.71.0 in windows OS with python 3.8 |
Yeah, according to my research in #11314, this appears to be related to yet another instance of |
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. |
when loading aws_cdk core it breaks the jinja2 templating module on Windows 10 64-bit
Reproduction Steps
here'a sample
Error Log
Environment
Other
Interestingly when I just run python cli and do:
"import jinja2 or "from jinja2 import Environment" it works perfectly fine. It's just inside cdk where it breaks miserably and only on windows 10 64-bit. It works perfectly fine on a linux machine of my colleague.
I tried everything like cleaning up and reinstalling python, cleaning up and reinstalling nodejs. Deleting npm and pip caches, re-created .env numerous times, nothing fixes this issue, it's really the aws_cdk core that breaks jinja2.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: