У меня есть несколько проблем и ошибок при развертывании веб-сайта 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, но он не сработал.
Буду очень признателен, если проблема будет решена.
Я буду очень признателен, если проблема будет решена.
п>
У меня есть несколько проблем и ошибок при развертывании веб-сайта Heroku. Я использовал django для создания веб-сайта и хочу развернуть уже полученный веб-сайт. Все необходимые пакеты установлены как в моей локальной, так и в виртуальной среде. Однако, когда я пытаюсь развернуть веб-сайт, я получаю следующее ошибки: [code]× 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`.
× 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. [/code] Я понятия не имею, что означают эти ошибки, и попробовал pep517, но он не сработал. Буду очень признателен, если проблема будет решена. Я буду очень признателен, если проблема будет решена. п>
Я следую руководству для локального запуска моделей Llama 3, однако при настройке я получаю следующую ошибку: среде и запустив команду pip install -v . .
Traceback (most recent call last):
File , line 2, in
File
, line 34, in
File...
Я устанавливаю локальный пакет Python в редактируемом режиме, используя для его настройки файл pyproject.toml. pyproject.toml выглядит следующим образом:
Всякий раз, когда я записываю это в свой Linux-терминал, я получаю следующее сообщение об ошибке. Я пытался поискать, была ли у людей подобная проблема, но не нашел. В нем говорится, что при создании «src/jaxfluids.egg-info» было отказано в...
Я пытаюсь установить пакет Python pyCGNS в PyCharm, но он выдает вывод команды:
Collecting pyCGNS==6.2.2
Using cached pyCGNS-6.2.2.tar.gz (11.6 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'...