Beanstalk bdist_wheel error Django
Hello,
I am trying to deploying Django application on AWS Beanstalk but running into issue with bdist_wheel. I have looked for answers on multiple platforms but none of them have been able to resolve the issue.
Any guidance is highly appreciated.
Following is the log (last 100 lines)
/var/log/eb-engine.log
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for setuptools-git-version
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/lib64/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/var/app/venv/staging-LQM1lest/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjluqcb6x', '--quiet', 'setuptools-git-version']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-dwvha7f4/django-excel-tools_0587d7b898b1464cb6ca9d12a7743c68/setup.py", line 14, in <module>
setup(
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/__init__.py", line 86, in setup
_install_setup_requires(attrs)
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/dist.py", line 875, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/pkg_resources/__init__.py", line 789, in resolve
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/pkg_resources/__init__.py", line 1075, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/pkg_resources/__init__.py", line 1087, in obtain
return installer(requirement)
^^^^^^^^^^^^^^^^^^^^^^
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/dist.py", line 945, in fetch_build_egg
return fetch_build_egg(self, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/app/venv/staging-LQM1lest/lib64/python3.11/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/var/app/venv/staging-LQM1lest/bin/python3.11', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpjluqcb6x', '--quiet', 'setuptools-git-version']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
[notice] A new release of pip available: 22.3.1 -> 24.0 [notice] To update, run: python3.11 -m pip install --upgrade pip
2024/05/10 12:35:29.233650 [INFO] Executing cleanup logic 2024/05/10 12:35:29.233797 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install application dependencies. The deployment failed.","timestamp":1715344529233,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1715344529233,"severity":"ERROR"}]}]}
2024/05/10 12:35:29.233973 [INFO] Platform Engine finished execution on command: app-deploy
2024/05/10 12:37:22.856945 [INFO] Starting... 2024/05/10 12:37:22.856992 [INFO] Starting EBPlatform-PlatformEngine 2024/05/10 12:37:22.857012 [INFO] reading event message file 2024/05/10 12:37:22.857240 [INFO] Engine received EB command cfn-hup-exec
2024/05/10 12:37:22.943097 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:662955613008:stack/awseb-e-pjswbtdkne-stack/89236bb0-0ec9-11ef-89b9-0eb9fe41cc6b -r AWSEBAutoScalingGroup --region us-east-1 2024/05/10 12:37:23.317025 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:662955613008:stack/awseb-e-pjswbtdkne-stack/89236bb0-0ec9-11ef-89b9-0eb9fe41cc6b -r AWSEBBeanstalkMetadata --region us-east-1 2024/05/10 12:37:23.688419 [INFO] checking whether command tail-log is applicable to this instance... 2024/05/10 12:37:23.688434 [INFO] this command is applicable to the instance, thus instance should execute command 2024/05/10 12:37:23.688438 [INFO] Engine command: (tail-log)
2024/05/10 12:37:23.688489 [INFO] Executing instruction: GetTailLogs 2024/05/10 12:37:23.688493 [INFO] Tail Logs... 2024/05/10 12:37:23.688991 [INFO] Running command /bin/sh -c tail -n 100 /var/log/eb-hooks.log 2024/05/10 12:37:23.691861 [INFO] Running command /bin/sh -c tail -n 100 /var/log/eb-engine.log 2024/05/10 12:37:23.754492 [INFO] Executing cleanup logic 2024/05/10 12:37:23.754738 [INFO] CommandService Response: {"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"Engine execution has succeeded.","returncode":0,"events":[{"msg":"Instance deployment completed successfully.","timestamp":1715344643754,"severity":"INFO"}]}]}
2024/05/10 12:37:23.754759 [INFO] Platform Engine finished execution on command: tail-log
2024/05/10 13:25:43.062958 [INFO] Starting... 2024/05/10 13:25:43.063006 [INFO] Starting EBPlatform-PlatformEngine 2024/05/10 13:25:43.063025 [INFO] reading event message file 2024/05/10 13:25:43.063223 [INFO] Engine received EB command cfn-hup-exec
2024/05/10 13:25:43.139495 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:662955613008:stack/awseb-e-pjswbtdkne-stack/89236bb0-0ec9-11ef-89b9-0eb9fe41cc6b -r AWSEBAutoScalingGroup --region us-east-1 2024/05/10 13:25:43.490318 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:662955613008:stack/awseb-e-pjswbtdkne-stack/89236bb0-0ec9-11ef-89b9-0eb9fe41cc6b -r AWSEBBeanstalkMetadata --region us-east-1 2024/05/10 13:25:43.846942 [INFO] checking whether command tail-log is applicable to this instance... 2024/05/10 13:25:43.846956 [INFO] this command is applicable to the instance, thus instance should execute command 2024/05/10 13:25:43.846966 [INFO] Engine command: (tail-log)
2024/05/10 13:25:43.847038 [INFO] Executing instruction: GetTailLogs 2024/05/10 13:25:43.847047 [INFO] Tail Logs... 2024/05/10 13:25:43.847674 [INFO] Running command /bin/sh -c tail -n 100 /var/log/eb-engine.log
/var/log/eb-hooks.log
Following is the requirements.txt file
annotated-types==0.6.0 anyio==4.3.0 asgiref==3.8.1 attrs==23.2.0 awsebcli==3.20.10 blessed==1.20.0 botocore==1.31.85 cement==2.8.2 certifi==2024.2.2 charset-normalizer==3.3.2 colorama==0.4.3 distro==1.9.0 Django==5.0.6 django-cors-headers==4.3.1 django_excel_tools==1.1.0 djangorestframework==3.15.1 et-xmlfile==1.1.0 h11==0.14.0 httpcore==1.0.5 httpx==0.27.0 idna==3.7 inflection==0.5.1 jmespath==1.0.1 jsonschema==4.22.0 jsonschema-specifications==2023.12.1 openai==1.28.0 openpyxl==3.1.2 pathspec==0.10.1 pydantic==2.7.1 pydantic_core==2.18.2 PyPDF2==3.0.1 python-dateutil==2.9.0.post0 PyYAML==6.0.1 referencing==0.35.1 requests==2.31.0 rpds-py==0.18.1 semantic-version==2.8.5 setuptools==69.5.1 six==1.16.0 sniffio==1.3.1 sqlparse==0.5.0 termcolor==1.1.0 tqdm==4.66.4 typing_extensions==4.11.0 urllib3==1.26.18 wcwidth==0.1.9 wheel==0.43.0
- Newest
- Most votes
- Most comments
Relevant content
- asked 6 months agolg...
- asked a year agolg...
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago