You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 223, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 128, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 361, in compile
self.initialize()
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 234, in initialize
raise DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[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.
F:\OnlineVoting-Django\OnlineVoting-Django>
Expected behavior
No response
pip version
22.1.2
Python version
3.9.6
OS
windows
How to Reproduce
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 223, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 128, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 361, in compile
self.initialize()
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 234, in initialize
raise DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[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.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
In this case, the problem is with setuptools, and you're running on mingw64 or msys64. I believe mingw64 have their own patches (Python and setuptools don't support mingw64 by default) so you raise the issue with them in the first instance.
Description
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 223, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 128, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 361, in compile
self.initialize()
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 234, in initialize
raise DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[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.
F:\OnlineVoting-Django\OnlineVoting-Django>
Expected behavior
No response
pip version
22.1.2
Python version
3.9.6
OS
windows
How to Reproduce
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
File "C:\Users\Hi\AppData\Local\Temp\pip-install-4fgmxe40\cffi_0a2fa14dc9824f2e9822e204c8511258\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 223, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils\command\config.py", line 128, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 361, in compile
self.initialize()
File "C:\msys64\mingw64\lib\python3.9\site-packages\setuptools_distutils_msvccompiler.py", line 234, in initialize
raise DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[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.
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: