AWS Elastic beanstalk python install error in latest Amazon Linux 2/3.3.12

0

I have received this error in eb-engine.log. All builds on Amazon linux 3.3.11 are succeeding but fails on 3.3.12

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-xbf1ckar/django-allauth_04096779adeb4c8baaa08029f24a925a/setup.py", line 9, in <module>
          from setuptools import convert_path, find_packages, setup
      ImportError: cannot import name 'convert_path' from 'setuptools' (/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/setuptools/__init__.py)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
nova
已提问 2 年前841 查看次数
1 回答
0

Hello there! I understand that you are encountering errors when installing packages from the “requirements” file to deploy python applications using EBS. I tried to find a solution that best fits your problem in regards to the Linux2 v3.3.12 and v3.3.11 running Python 3.8. It seems that the issue is with the with the “django-allauth==0.45” file because the error originates from a subprocess. With that in mind it would be more suitable to change the package version from “django-allauth==0.45” to version “django-allauth==0.50” by generating a new “requirements.txt” file [1]. As version “0.45.0” is an older package version, It is highly likely that it’s not available wit the newer Beanstalk platform.

  • To verify the installed package in Beanstalk instance after deployment, you can ssh to the instance and then change directory into virtual environment and execute following command. >pip list

Please note that the platform version Python that AWS offers now have changed and been updated [2][3]. Refer to documentation for use cases.

Reference : 1 2 3

Antonio
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则