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

cdk is not recognized inside PyCharm virtual env terminal (Win 10)? #4956

Closed
scheung38 opened this issue Nov 11, 2019 · 7 comments
Closed

cdk is not recognized inside PyCharm virtual env terminal (Win 10)? #4956

scheung38 opened this issue Nov 11, 2019 · 7 comments
Assignees
Labels
closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. language/python Related to Python bindings management/devenv Related to CDK development/build environment package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@scheung38
Copy link

scheung38 commented Nov 11, 2019

❓ General Issue

Powershell

(.env)> cdk --version
1.15.0 (build bdbe3aa)

(.env)> cdk ls
The term 'cdk' is not recognized

Pycharm terminal

(.env)> cdk --version
'cdk' is not recognized

the following is a fix but for TypeScript project, what is the change for a Python project?

#2657

The Question

Environment

  • CDK CLI Version: 1.15.0 (build bdbe3aa)
  • Module Version:
  • OS: Windows 10
  • Language: Python

Other information

@scheung38 scheung38 added the needs-triage This issue or PR still needs to be triaged. label Nov 11, 2019
@scheung38 scheung38 changed the title cdk is not recognized inside bash virtual env terminal (Win 10)? cdk is not recognized inside PyCharm virtual env terminal (Win 10)? Nov 11, 2019
@SomayaB SomayaB added bug This issue is a bug. language/python Related to Python bindings management/devenv Related to CDK development/build environment package/tools Related to AWS CDK Tools or CLI labels Nov 11, 2019
@shivlaks shivlaks added the p2 label Nov 12, 2019
@SomayaB
Copy link
Contributor

SomayaB commented Jan 15, 2020

Hi @scheung38, thanks for reporting this. We will update this issue when there is movement.

@SomayaB SomayaB removed the needs-triage This issue or PR still needs to be triaged. label Jan 15, 2020
@davidfsmith
Copy link

I have a similar issue on OSX, outside of a Python virtual env the command cdk works just fine but inside a python virtual environment the command cdk is not recognised, I have to use the full path /usr/local/bin/cdk

@davidfsmith
Copy link

Just to update on this, investigated a bit further and resolved by removing cdk from my pyenv shim

rm ~/.pyenv/shims/cdk

Possibly a hang up from an earlier cdk install a while back.

@shivlaks
Copy link
Contributor

shivlaks commented May 6, 2020

@davidfsmith thanks for reporting that workaround. does that apply to both Windows and OS X?

Haven't had a chance to look at the Windows issue at all, but it might be helpful for other folks who run into the same issue nonetheless

@davidfsmith
Copy link

Sorry @shivlaks - I should've noted this only tested on OSX (all I have access to) but hopefully will help someone

@shivlaks
Copy link
Contributor

I'm attempting to reproduce this issue on my windows machine and am not able to. Is this still an issue @scheung38
It might just be staleness, but I'm testing with CLI version1.59.0.

I don't believe there is an actionable bug to take on here so dropping the bug label for now.

@shivlaks shivlaks added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed bug This issue is a bug. p2 labels Aug 21, 2020
@github-actions
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Aug 29, 2020
@github-actions github-actions bot closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. language/python Related to Python bindings management/devenv Related to CDK development/build environment package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants