Seems the setuptools.installer is deprecated from the error message. Hence the installation keeps failing. Is this repo still maintained?
Below it the error:
SetuptoolsDepreca
tionWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[21 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 14, in <module>
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools__init.py", line 2, in
from setuptools.extension import Extension, Library
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\extension.py", line 5, in
from setuptools.dist import _get_unpatched
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages_virtualenv.py", line 89, in exec_m
odule
old(module)
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\dist.py", line 7, in
from setuptools.command.install import install
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\command\init__.py", line 8, in
from setuptools.command import install_scripts
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\command\install_scripts.py", line 3, in
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\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 "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\installer.py", line 82, in
fetch_build_egg
subprocess.check_call(cmd)
File "C:\Users\saopiyo\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
xe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\saopiyo\AppData\Local\
\Temp\tmpft2se_65', '--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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\saopiyo\AppData\Local\Temp\pip-install-acn95z_0\dotenv_62eeeb5132d74befbd3e94d5282d3fab\se
tup.py", line 13, in
setup(name='dotenv',
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools__init__.py", line 86, in
setup
_install_setup_requires(attrs)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools__init.py", line 80, in
_install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\dist.py", line 876, in fet
ch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init.py", line 789,
in resolve
dist = best[req.key] = env.best_match(
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init.py", line 1075
, in best_match
return self.obtain(req, installer)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init__.py", line 1087
, in obtain
return installer(requirement)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\dist.py", line 956, in fet
ch_build_egg
return fetch_build_egg(self, req)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\installer.py", line 84, in
fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['G:\codeprojects\virtual-AI-Salesperson\venv\Scripts\python
.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\saopiyo\AppData\Loca
l\Temp\tmpft2se_65', '--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.
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.1.2 -> 22.2
Seems the setuptools.installer is deprecated from the error message. Hence the installation keeps failing. Is this repo still maintained?
Below it the error:
SetuptoolsDepreca tionWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( error: subprocess-exited-with-error
6\setuptools__init.py", line 2, in
from setuptools.extension import Extension, Library
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\extension.py", line 5, in
from setuptools.dist import _get_unpatched
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages_virtualenv.py", line 89, in exec_m
odule
old(module)
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\dist.py", line 7, in
from setuptools.command.install import install
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\command\ init__.py", line 8, in
from setuptools.command import install_scripts
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\setuptools\command\install_scripts.py", line 3, in
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "C:\Users\saopiyo\AppData\Local\Temp\pip-wheel-bbck_tx8\distribute_38fc165667754416841c45a3c56dccd
6\pkg_resources.py", line 1518, in
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
[end of output]
fetch_build_egg subprocess.check_call(cmd) File "C:\Users\saopiyo\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
xe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\saopiyo\AppData\Local\ \Temp\tmpft2se_65', '--quiet', 'distribute']' returned non-zero exit status 1.
tup.py", line 13, in
setup(name='dotenv',
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools__init__.py", line 86, in
setup
_install_setup_requires(attrs)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools__init.py", line 80, in
_install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\dist.py", line 876, in fet
ch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init.py", line 789,
in resolve
dist = best[req.key] = env.best_match(
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init.py", line 1075
, in best_match
return self.obtain(req, installer)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\pkg_resources\init__.py", line 1087
, in obtain
return installer(requirement)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\dist.py", line 956, in fet
ch_build_egg
return fetch_build_egg(self, req)
File "G:\codeprojects\virtual-AI-Salesperson\venv\lib\site-packages\setuptools\installer.py", line 84, in
fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['G:\codeprojects\virtual-AI-Salesperson\venv\Scripts\python
.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\saopiyo\AppData\Loca
l\Temp\tmpft2se_65', '--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.
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.1.2 -> 22.2