You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
App Id
d34baz6sf50mpj
AWS Region
us-east-1
Amplify Hosting feature
Backend builds
Frontend framework
React
Next.js version
N/A
Next.js router
N/A
Describe the bug
I'm using CodeCommit for CI/CD to an AWS Amplify application.
During the amplifyPush, this error would occur on previously working functions with no changes:
2023-06-27T09:27:41.100Z [INFO]: Installing dependencies from Pipfile.lock (2a8f7d)...
2023-06-27T09:27:41.144Z [WARNING]: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'egg_info'
2023-06-27T09:27:41.265Z [WARNING]: ✖ There was an error initializing your environment.
2023-06-27T09:27:41.266Z [INFO]: 🛑 Failed to install dependencies in /.../amplify/backend/function/...: Error: Command failed with exit code 1: pipenv install
Expected behavior
2023-06-25T10:19:52.488Z [INFO]: Installing dependencies from Pipfile.lock (fbf9bb)...
2023-06-25T10:19:57.153Z [INFO]: To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
2023-06-25T10:20:01.364Z [WARNING]: - Uploading files.
Reproduction steps
Build any previously working AWS Amplify application with a Python lambda function in the backend.
Hi @breencp 👋 , thanks for reaching out to us and for sharing the detailed insights on your Amplify environment.
While reviewing your backend build logs, I came across this particular error error: invalid command 'egg_info' which seems related to a breaking change with the latest pipenv release: pypa/pipenv#5753
Thank you for sharing the workaround which helped unblock your backend builds and this is going to be very useful for other developers in the community who run into something similar with their backend lambda functions.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Before opening, please confirm:
App Id
d34baz6sf50mpj
AWS Region
us-east-1
Amplify Hosting feature
Backend builds
Frontend framework
React
Next.js version
N/A
Next.js router
N/A
Describe the bug
I'm using CodeCommit for CI/CD to an AWS Amplify application.
During the amplifyPush, this error would occur on previously working functions with no changes:
2023-06-27T09:27:41.100Z [INFO]: Installing dependencies from Pipfile.lock (2a8f7d)...
2023-06-27T09:27:41.144Z [WARNING]: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'egg_info'
2023-06-27T09:27:41.265Z [WARNING]: ✖ There was an error initializing your environment.
2023-06-27T09:27:41.266Z [INFO]: 🛑 Failed to install dependencies in /.../amplify/backend/function/...: Error: Command failed with exit code 1: pipenv install
Expected behavior
2023-06-25T10:19:52.488Z [INFO]: Installing dependencies from Pipfile.lock (fbf9bb)...
2023-06-25T10:19:57.153Z [INFO]: To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
2023-06-25T10:20:01.364Z [WARNING]: - Uploading files.
Reproduction steps
Build any previously working AWS Amplify application with a Python lambda function in the backend.
Build Settings
Put your logs below this line
from distutils.core import setup
from setuptools import setup
setup(name='src', version='1.0')
The text was updated successfully, but these errors were encountered: