Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are still problems with compiling cffi packages #601

Open
1 task
muh-ramadhan opened this issue Nov 17, 2023 · 1 comment
Open
1 task

There are still problems with compiling cffi packages #601

muh-ramadhan opened this issue Nov 17, 2023 · 1 comment

Comments

@muh-ramadhan
Copy link

muh-ramadhan commented Nov 17, 2023

I'm submitting a ...

  • bug report

Description

pip install -r requirements.txt
Collecting async-generator==1.10 (from -r requirements.txt (line 1))
Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting attrs==21.4.0 (from -r requirements.txt (line 2))
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting beautifulsoup4==4.11.1 (from -r requirements.txt (line 3))
Using cached beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
Collecting bs4==0.0.1 (from -r requirements.txt (line 4))
Using cached bs4-0.0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... done
Collecting certifi==2021.10.8 (from -r requirements.txt (line 5))
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting cffi==1.15.0 (from -r requirements.txt (line 6))
Using cached cffi-1.15.0.tar.gz (484 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-ltqgdesz\cffi_26d658ac38374a76b1db7c6b86a3405c\setup.py", line 126, in
if sys.platform == "win32" and uses_msvc():
^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-ltqgdesz\cffi_26d658ac38374a76b1db7c6b86a3405c\setup.py", line 105, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\distutils\command\config.py", line 225, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\distutils\command\config.py", line 132, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\distutils_msvccompiler.py", line 323, in compile
self.initialize()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\distutils_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C 14.0 or greater is required. Get it with "Microsoft C Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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.

Environment

- OS : Windows 10 Pro 64-bit (10.0, Build 19045)
- Python : 3.11.6
- Git : 2.41.0.windows.3
- Script version : 1.8.0

config.json

{
  "packages": [
    "async-generator==1.10",
    "attrs==21.4.0",
    "beautifulsoup4==4.11.1",
    "bs4==0.0.1",
    "certifi==2021.10.8",
    "cffi==1.15.0",
    "charset-normalizer==2.0.12",
    "click==8.1.3",
    "colorama==0.4.4",
    "cryptography==38.0.1",
    "exceptiongroup==1.1.0",
    "fake-headers==1.0.2",
    "Faker==16.6.1",
    "Flask==2.0.2",
    "h11==0.13.0",
    "html5lib==1.1",
    "idna==3.3",
    "itsdangerous==2.1.2",
    "Jinja2==3.1.2",
    "MarkupSafe==2.1.1",
    "outcome==1.1.0",
    "psutil==5.9.4",
    "pycparser==2.21",
    "pyOpenSSL==23.0.0",
    "PySocks==1.7.1",
    "python-dateutil==2.8.2",
    "pywin32==305; platform_system == \"Windows\"",
    "requests==2.28.2",
    "selenium==4.8.0",
    "six==1.16.0",
    "sniffio==1.2.0",
    "sortedcontainers==2.4.0",
    "soupsieve==2.3.2.post1",
    "tabulate==0.9.0",
    "trio==0.20.0",
    "trio-websocket==0.9.2",
    "undetected-chromedriver==3.2.1",
    "urllib3==1.26.9",
    "webencodings==0.5.1",
    "websockets==10.3",
    "Werkzeug==2.0.2",
    "WMI==1.5.1; platform_system == \"Windows\"",
    "wsproto==1.1.0"
  ]
}
muh-ramadhan added a commit to muh-ramadhan/YouTube-Viewer that referenced this issue Nov 17, 2023
@oneox
Copy link

oneox commented Nov 17, 2023

I'm getting the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants