aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

After upgrade to 1.47 - ERROR: File "setup.py" not found. Directory cannot be installed in editable mode

Open mateja82 opened this issue 6 years ago • 1 comments

Once I upgrader to 1.47, once I 'freeze" into the requirements.txt, I get the following error:

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: along with the folder name.

This happens both in my existing stacks, as well as in the new stacks I create.

Reproduction Steps

pip install -r requirements.txt All OK

pip install aws-cdk.aws-s3 aws-cdk.aws-cloudformation All OK

pip freeze > requirements.txt All OK, requirements gets the last installed packages

pip install -r requirements.txt

Error Log

ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /Users/mjovanovic/unicornstartup/unicornstartup

Environment

  • **CLI Version : 1.47.0
  • **Framework Version:
  • Node.js Version: v14.3.0
  • **OS : MacOS Catalina
  • Language (Version): Python

This is :bug: Bug Report

mateja82 avatar Jun 26 '20 13:06 mateja82

Not sure if this is a bug or not, but it seems that when there's a git install with no remote, this line is added to requirements.txt:

Editable Git install with no remote (unicornstartup==0.0.1)

-e /Users/mjovanovic/unicornstartup/unicornstartup

This is what causes an error. Im closing the issue

mateja82 avatar Jun 26 '20 13:06 mateja82