Ошибки развертывания Heroku. Python setup.py egg_info не был запущен успешно.Python

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Ошибки развертывания Heroku. Python setup.py egg_info не был запущен успешно.

Сообщение Anonymous »

У меня есть несколько проблем и ошибок при развертывании веб-сайта Heroku.
Я использовал django для создания веб-сайта и хочу развернуть уже полученный веб-сайт.
Все необходимые пакеты установлены как в моей локальной, так и в виртуальной среде.
Однако, когда я пытаюсь развернуть веб-сайт, я получаю следующее ошибки:

Код: Выделить всё

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [83 lines of output]
/app/.heroku/python/lib/python3.11/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.

!!
dist.fetch_build_eggs(dist.setup_requires)
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "", line 2, in 
File "", line 14, in 
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/setuptools/__init__.py", line 2, in 
from setuptools.extension import Extension, Library
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/setuptools/extension.py", line 5, in 
from setuptools.dist import _get_unpatched
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/setuptools/dist.py", line 7, in 
from setuptools.command.install import install
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/setuptools/command/__init__.py", line 8, in 
from setuptools.command import install_scripts
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/setuptools/command/install_scripts.py", line 3, in 
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/tmp/pip-wheel-2xd7j5kf/distribute_1efc1e9757504aed986ff8beb549bcab/pkg_resources.py", line 1518, in 
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
[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.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warn
subprocess.check_call(cmd)
File "/app/.heroku/python/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/app/.heroku/python/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpaaqkndf4', '--quiet', 'distribute']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 2, in 
File "", line 34, in 
File "/tmp/pip-install-3p1f5saj/dotenv_646ba309b67d4732bcfce4160ecc8efb/setup.py", line 13, in 
setup(name='dotenv',
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/__init__.py", line 106, in setup
_install_setup_requires(attrs)
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/__init__.py", line 79, in _install_setup_requires
_fetch_build_eggs(dist)
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/__init__.py", line 84, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/dist.py", line 907, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/pkg_resources/__init__.py", line 865, in _resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1135, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1147, in obtain
return installer(requirement)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warn
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/app/.heroku/python/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpaaqkndf4', '--quiet', 'distribute']' 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.
Я понятия не имею, что означают эти ошибки, и попробовал pep517, но он не сработал.
Буду очень признателен, если проблема будет решена.
Я буду очень признателен, если проблема будет решена.
п>

Подробнее здесь: https://stackoverflow.com/questions/770 ... ccessfully
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»