Can’t install ccxt package with pip /u/Martinculo Python Education

Can’t install ccxt package with pip /u/Martinculo Python Education

Pip version is pip 24.3.1, Python version is 3.11.9.

Any help?

I tried install cffi via pip with similar results, I tried installing
cffi via wheel, with no success, same trying to install cryptography.
pip install ccxt –upgrade has no results too, same error. I installed
rust. Tried to use the command in a virtual environment, but I can’t
access the environment. I also have the latest Visual Studio installed,
with “c++ desktop application” pack installed.
Got suggested to try
pip install –only-binary :all: cffi
and
pip install –no-cache-dir ccxt
Sadly none of the solution worked, for pip install –only-binary :all: cffi the response was: ERROR: Could not find a version that satisfies the requirement cffi (from versions: none) ERROR: No matching distribution found for cffi And for pip install –no-cache-dir ccxt the error was the same coming up by just writing pip install ccxt.

I tried to install it via pip install ccxt on Windows 11, but I got the following error:

Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error "not MSVC" 2 | #error "not MSVC" | ^~~~~ Note: will not use '__thread' in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building '_cffi_backend' extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function 'b_do_dlopen': src/c/_cffi_backend.c:4568:40: error: passing argument 1 of 'PyUnicode_AsWideChar' from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'PyUnicodeObject *' 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command 'C:\msys64\mingw64\bin\gcc.EXE' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error "not MSVC" 2 | #error "not MSVC" | ^~~~~ Note: will not use '__thread' in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building '_cffi_backend' extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function 'b_do_dlopen': src/c/_cffi_backend.c:4568:40: error: passing argument 1 of 'PyUnicode_AsWideChar' from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'PyUnicodeObject *' 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command 'C:\msys64\mingw64\bin\gcc.EXE' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. 

submitted by /u/Martinculo
[link] [comments]

​r/learnpython Pip version is pip 24.3.1, Python version is 3.11.9. Any help? I tried install cffi via pip with similar results, I tried installing cffi via wheel, with no success, same trying to install cryptography. pip install ccxt –upgrade has no results too, same error. I installed rust. Tried to use the command in a virtual environment, but I can’t access the environment. I also have the latest Visual Studio installed, with “c++ desktop application” pack installed. Got suggested to try pip install –only-binary :all: cffi and pip install –no-cache-dir ccxt Sadly none of the solution worked, for pip install –only-binary :all: cffi the response was: ERROR: Could not find a version that satisfies the requirement cffi (from versions: none) ERROR: No matching distribution found for cffi And for pip install –no-cache-dir ccxt the error was the same coming up by just writing pip install ccxt. I tried to install it via pip install ccxt on Windows 11, but I got the following error: Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies … error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status ‘done’ Getting requirements to build wheel: started Getting requirements to build wheel: finished with status ‘done’ Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status ‘done’ Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status ‘error’ error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error “not MSVC” 2 | #error “not MSVC” | ^~~~~ Note: will not use ‘__thread’ in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building ‘_cffi_backend’ extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function ‘b_do_dlopen’: src/c/_cffi_backend.c:4568:40: error: passing argument 1 of ‘PyUnicode_AsWideChar’ from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyUnicodeObject *’ 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command ‘C:\msys64\mingw64\bin\gcc.EXE’ failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies … error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status ‘done’ Getting requirements to build wheel: started Getting requirements to build wheel: finished with status ‘done’ Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status ‘done’ Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status ‘error’ error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error “not MSVC” 2 | #error “not MSVC” | ^~~~~ Note: will not use ‘__thread’ in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building ‘_cffi_backend’ extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function ‘b_do_dlopen’: src/c/_cffi_backend.c:4568:40: error: passing argument 1 of ‘PyUnicode_AsWideChar’ from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyUnicodeObject *’ 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command ‘C:\msys64\mingw64\bin\gcc.EXE’ failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. submitted by /u/Martinculo [link] [comments] 

Pip version is pip 24.3.1, Python version is 3.11.9.

Any help?

I tried install cffi via pip with similar results, I tried installing
cffi via wheel, with no success, same trying to install cryptography.
pip install ccxt –upgrade has no results too, same error. I installed
rust. Tried to use the command in a virtual environment, but I can’t
access the environment. I also have the latest Visual Studio installed,
with “c++ desktop application” pack installed.
Got suggested to try
pip install –only-binary :all: cffi
and
pip install –no-cache-dir ccxt
Sadly none of the solution worked, for pip install –only-binary :all: cffi the response was: ERROR: Could not find a version that satisfies the requirement cffi (from versions: none) ERROR: No matching distribution found for cffi And for pip install –no-cache-dir ccxt the error was the same coming up by just writing pip install ccxt.

I tried to install it via pip install ccxt on Windows 11, but I got the following error:

Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error "not MSVC" 2 | #error "not MSVC" | ^~~~~ Note: will not use '__thread' in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building '_cffi_backend' extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function 'b_do_dlopen': src/c/_cffi_backend.c:4568:40: error: passing argument 1 of 'PyUnicode_AsWideChar' from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'PyUnicodeObject *' 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command 'C:\msys64\mingw64\bin\gcc.EXE' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error "not MSVC" 2 | #error "not MSVC" | ^~~~~ Note: will not use '__thread' in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building '_cffi_backend' extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function 'b_do_dlopen': src/c/_cffi_backend.c:4568:40: error: passing argument 1 of 'PyUnicode_AsWideChar' from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'PyUnicodeObject *' 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command 'C:\msys64\mingw64\bin\gcc.EXE' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. 

submitted by /u/Martinculo
[link] [comments]  Pip version is pip 24.3.1, Python version is 3.11.9. Any help? I tried install cffi via pip with similar results, I tried installing cffi via wheel, with no success, same trying to install cryptography. pip install ccxt –upgrade has no results too, same error. I installed rust. Tried to use the command in a virtual environment, but I can’t access the environment. I also have the latest Visual Studio installed, with “c++ desktop application” pack installed. Got suggested to try pip install –only-binary :all: cffi and pip install –no-cache-dir ccxt Sadly none of the solution worked, for pip install –only-binary :all: cffi the response was: ERROR: Could not find a version that satisfies the requirement cffi (from versions: none) ERROR: No matching distribution found for cffi And for pip install –no-cache-dir ccxt the error was the same coming up by just writing pip install ccxt. I tried to install it via pip install ccxt on Windows 11, but I got the following error: Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies … error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status ‘done’ Getting requirements to build wheel: started Getting requirements to build wheel: finished with status ‘done’ Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status ‘done’ Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status ‘error’ error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error “not MSVC” 2 | #error “not MSVC” | ^~~~~ Note: will not use ‘__thread’ in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building ‘_cffi_backend’ extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function ‘b_do_dlopen’: src/c/_cffi_backend.c:4568:40: error: passing argument 1 of ‘PyUnicode_AsWideChar’ from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyUnicodeObject *’ 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command ‘C:\msys64\mingw64\bin\gcc.EXE’ failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.Collecting ccxt Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB) Requirement already satisfied: setuptools>=60.9.0 in c:msys64mingw64libpython3.11site-packages (from ccxt) (75.6.0) Requirement already satisfied: certifi>=2018.1.18 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2024.8.30) Requirement already satisfied: requests>=2.18.4 in c:msys64mingw64libpython3.11site-packages (from ccxt) (2.32.3) Collecting cryptography>=2.6.1 (from ccxt) Using cached cryptography-44.0.0.tar.gz (710 kB) Installing build dependencies … error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [79 lines of output] Collecting maturin<2,>=1 Using cached maturin-1.7.8-cp311-cp311-mingw_x86_64.whl Collecting cffi>=1.12 Using cached cffi-1.17.1.tar.gz (516 kB) Installing build dependencies: started Installing build dependencies: finished with status ‘done’ Getting requirements to build wheel: started Getting requirements to build wheel: finished with status ‘done’ Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status ‘done’ Collecting setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2 Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting pycparser (from cffi>=1.12) Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes) Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB) Using cached pycparser-2.22-py3-none-any.whl (117 kB) Building wheels for collected packages: cffi Building wheel for cffi (pyproject.toml): started Building wheel for cffi (pyproject.toml): finished with status ‘error’ error: subprocess-exited-with-error Building wheel for cffi (pyproject.toml) did not run successfully. exit code: 1 [48 lines of output] _configtest.c:2:2: error: #error “not MSVC” 2 | #error “not MSVC” | ^~~~~ Note: will not use ‘__thread’ in the C code ***** The above error message can be safely ignored. running bdist_wheel running build running build_py creating buildlib.mingw_x86_64-cpython-311cffi copying srccffiapi.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffibackend_ctypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficffi_opcode.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficommontypes.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccfficparser.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffierror.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiffiplatform.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffilock.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffimodel.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffipkgconfig.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffirecompiler.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffisetuptools_ext.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_cpy.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffivengine_gen.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiverifier.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_imp_emulation.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_shimmed_dist_utils.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi__init__.py -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_include.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffiparse_c_type.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_embedding.h -> buildlib.mingw_x86_64-cpython-311cffi copying srccffi_cffi_errors.h -> buildlib.mingw_x86_64-cpython-311cffi running build_ext building ‘_cffi_backend’ extension creating buildtemp.mingw_x86_64-cpython-311srcc gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3 -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -IC:msys64mingw64/include/python3.11 -c src/c/_cffi_backend.c -o buildtemp.mingw_x86_64-cpython-311srcc_cffi_backend.o src/c/_cffi_backend.c: In function ‘b_do_dlopen’: src/c/_cffi_backend.c:4568:40: error: passing argument 1 of ‘PyUnicode_AsWideChar’ from incompatible pointer type [-Wincompatible-pointer-types] 4568 | sz1 = PyUnicode_AsWideChar((PyUnicodeObject *)filename_unicode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | PyUnicodeObject * In file included from C:msys64mingw64/include/python3.11/Python.h:51, from src/c/_cffi_backend.c:2: C:msys64mingw64/include/python3.11/unicodeobject.h:299:15: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘PyUnicodeObject *’ 299 | PyObject *unicode, /* Unicode object */ | ~~~~~~~~~~^~~~~~~ error: command ‘C:\msys64\mingw64\bin\gcc.EXE’ failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cffi Failed to build cffi ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. submitted by /u/Martinculo [link] [comments]

Read more

Really need some advice /u/Heyall1478 Python Education

Really need some advice /u/Heyall1478 Python Education

Hey everyone . Almost 2 month ago I started pt penetrating online course .

First , network fundamentals went great got 96 in the test. Then , Linux fundamentals again went great 98 in the test.

Now Python..I feel like a stupid who can’t think properly . Learned about if, else, elife, list, and set . I understand the logic of everything I really do. And The basic behind it and what everything does.

But when it comes to combine those things ? Like when I need to solve some exercise? I’m stupid as hell I swear it’s like my mind is going blank and I don’t even know where to start. Like I put the first input and then BOOM . Don’t know where to go and what to write . Keep forgetting things , even the small ones who can help me with exercises

I can sit hours on reading the same things, I can practice and practice but still nothing when it comes to combining . I had up until now like 5 exercises, one I managed to solve alone , the rest i got frustrated and watch the teacher solve it . Something’s i say “yep we learned it why I didn’t think about it “ Sometimes “how the hell i should have known ?” And then after some times I’m like “yep I should have known” and you get the point.

What can I do ? I don’t want to give up but also I don’t want to keep study and get too deep in the course when I can’t solve exercises and when I keep forgetting those things .

Thanks and sorry for the long rant I’m frustrated as hell

submitted by /u/Heyall1478
[link] [comments]

​r/learnpython Hey everyone . Almost 2 month ago I started pt penetrating online course . First , network fundamentals went great got 96 in the test. Then , Linux fundamentals again went great 98 in the test. Now Python..I feel like a stupid who can’t think properly . Learned about if, else, elife, list, and set . I understand the logic of everything I really do. And The basic behind it and what everything does. But when it comes to combine those things ? Like when I need to solve some exercise? I’m stupid as hell I swear it’s like my mind is going blank and I don’t even know where to start. Like I put the first input and then BOOM . Don’t know where to go and what to write . Keep forgetting things , even the small ones who can help me with exercises I can sit hours on reading the same things, I can practice and practice but still nothing when it comes to combining . I had up until now like 5 exercises, one I managed to solve alone , the rest i got frustrated and watch the teacher solve it . Something’s i say “yep we learned it why I didn’t think about it “ Sometimes “how the hell i should have known ?” And then after some times I’m like “yep I should have known” and you get the point. What can I do ? I don’t want to give up but also I don’t want to keep study and get too deep in the course when I can’t solve exercises and when I keep forgetting those things . Thanks and sorry for the long rant I’m frustrated as hell submitted by /u/Heyall1478 [link] [comments] 

Hey everyone . Almost 2 month ago I started pt penetrating online course .

First , network fundamentals went great got 96 in the test. Then , Linux fundamentals again went great 98 in the test.

Now Python..I feel like a stupid who can’t think properly . Learned about if, else, elife, list, and set . I understand the logic of everything I really do. And The basic behind it and what everything does.

But when it comes to combine those things ? Like when I need to solve some exercise? I’m stupid as hell I swear it’s like my mind is going blank and I don’t even know where to start. Like I put the first input and then BOOM . Don’t know where to go and what to write . Keep forgetting things , even the small ones who can help me with exercises

I can sit hours on reading the same things, I can practice and practice but still nothing when it comes to combining . I had up until now like 5 exercises, one I managed to solve alone , the rest i got frustrated and watch the teacher solve it . Something’s i say “yep we learned it why I didn’t think about it “ Sometimes “how the hell i should have known ?” And then after some times I’m like “yep I should have known” and you get the point.

What can I do ? I don’t want to give up but also I don’t want to keep study and get too deep in the course when I can’t solve exercises and when I keep forgetting those things .

Thanks and sorry for the long rant I’m frustrated as hell

submitted by /u/Heyall1478
[link] [comments]  Hey everyone . Almost 2 month ago I started pt penetrating online course . First , network fundamentals went great got 96 in the test. Then , Linux fundamentals again went great 98 in the test. Now Python..I feel like a stupid who can’t think properly . Learned about if, else, elife, list, and set . I understand the logic of everything I really do. And The basic behind it and what everything does. But when it comes to combine those things ? Like when I need to solve some exercise? I’m stupid as hell I swear it’s like my mind is going blank and I don’t even know where to start. Like I put the first input and then BOOM . Don’t know where to go and what to write . Keep forgetting things , even the small ones who can help me with exercises I can sit hours on reading the same things, I can practice and practice but still nothing when it comes to combining . I had up until now like 5 exercises, one I managed to solve alone , the rest i got frustrated and watch the teacher solve it . Something’s i say “yep we learned it why I didn’t think about it “ Sometimes “how the hell i should have known ?” And then after some times I’m like “yep I should have known” and you get the point. What can I do ? I don’t want to give up but also I don’t want to keep study and get too deep in the course when I can’t solve exercises and when I keep forgetting those things . Thanks and sorry for the long rant I’m frustrated as hell submitted by /u/Heyall1478 [link] [comments]

Read more

how to record a video from a webcam, with sound, from within python? /u/avsfjan Python Education

how to record a video from a webcam, with sound, from within python? /u/avsfjan Python Education

I am writing a python program for windows in which I want the user be able to quickly take a video from within the python app using the internal camera and microphone and then save the resulting video as an mp4, or similar.

The software needs to run on windows (specifically a surface tablet).

Obviously i googled first and found many, many tutorials on how to record video, but most of them without sound. Also all of them had the problem that the resulting video was badly synched and was timewarping around.

So far I tried CV2 and ffmpeg.

The latter via commandline and a separate ffmpeg.exe binary. This works in general, but has the same problem as all the CV2 solutions: audio and video are hardly in sync and the video speed is janky all over the video.

is there a better solution? Is this really this hard, or am i missing something here?

So far my code is this: (selecting cameras[1] and audio[0] is only specific to my test machine right now, this would later be dynamic…)

import subprocess import re import time list_devices = ['../ffmpeg.exe', '-list_devices', 'true', '-f', 'dshow', '-i', 'dummy'] result = subprocess.run( list_devices, # Arguments capture_output = True, # Python >= 3.7 only text = True # Python >= 3.7 only ) cameras = re.findall(""(.*)" (video)", result.stderr) audios = re.findall(""(.*)" (audio)", result.stderr) cam = cameras[1] audio = audios[0] record = ['../ffmpeg.exe', '-f', 'dshow', '-i', f"video={cam}:audio={audio}", '-vf', 'format=yuv420p', 'output.mp4'] recorder = subprocess.Popen(record, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, stdin=subprocess.PIPE) time.sleep(30) recorder.stdin.write('q') # Simulate user pressing q key recorder.communicate() recorder.wait() print('done') 

submitted by /u/avsfjan
[link] [comments]

​r/learnpython I am writing a python program for windows in which I want the user be able to quickly take a video from within the python app using the internal camera and microphone and then save the resulting video as an mp4, or similar. The software needs to run on windows (specifically a surface tablet). Obviously i googled first and found many, many tutorials on how to record video, but most of them without sound. Also all of them had the problem that the resulting video was badly synched and was timewarping around. So far I tried CV2 and ffmpeg. The latter via commandline and a separate ffmpeg.exe binary. This works in general, but has the same problem as all the CV2 solutions: audio and video are hardly in sync and the video speed is janky all over the video. is there a better solution? Is this really this hard, or am i missing something here? So far my code is this: (selecting cameras[1] and audio[0] is only specific to my test machine right now, this would later be dynamic…) import subprocess import re import time list_devices = [‘../ffmpeg.exe’, ‘-list_devices’, ‘true’, ‘-f’, ‘dshow’, ‘-i’, ‘dummy’] result = subprocess.run( list_devices, # Arguments capture_output = True, # Python >= 3.7 only text = True # Python >= 3.7 only ) cameras = re.findall(“”(.*)” (video)”, result.stderr) audios = re.findall(“”(.*)” (audio)”, result.stderr) cam = cameras[1] audio = audios[0] record = [‘../ffmpeg.exe’, ‘-f’, ‘dshow’, ‘-i’, f”video={cam}:audio={audio}”, ‘-vf’, ‘format=yuv420p’, ‘output.mp4’] recorder = subprocess.Popen(record, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, stdin=subprocess.PIPE) time.sleep(30) recorder.stdin.write(‘q’) # Simulate user pressing q key recorder.communicate() recorder.wait() print(‘done’) submitted by /u/avsfjan [link] [comments] 

I am writing a python program for windows in which I want the user be able to quickly take a video from within the python app using the internal camera and microphone and then save the resulting video as an mp4, or similar.

The software needs to run on windows (specifically a surface tablet).

Obviously i googled first and found many, many tutorials on how to record video, but most of them without sound. Also all of them had the problem that the resulting video was badly synched and was timewarping around.

So far I tried CV2 and ffmpeg.

The latter via commandline and a separate ffmpeg.exe binary. This works in general, but has the same problem as all the CV2 solutions: audio and video are hardly in sync and the video speed is janky all over the video.

is there a better solution? Is this really this hard, or am i missing something here?

So far my code is this: (selecting cameras[1] and audio[0] is only specific to my test machine right now, this would later be dynamic…)

import subprocess import re import time list_devices = ['../ffmpeg.exe', '-list_devices', 'true', '-f', 'dshow', '-i', 'dummy'] result = subprocess.run( list_devices, # Arguments capture_output = True, # Python >= 3.7 only text = True # Python >= 3.7 only ) cameras = re.findall(""(.*)" (video)", result.stderr) audios = re.findall(""(.*)" (audio)", result.stderr) cam = cameras[1] audio = audios[0] record = ['../ffmpeg.exe', '-f', 'dshow', '-i', f"video={cam}:audio={audio}", '-vf', 'format=yuv420p', 'output.mp4'] recorder = subprocess.Popen(record, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, stdin=subprocess.PIPE) time.sleep(30) recorder.stdin.write('q') # Simulate user pressing q key recorder.communicate() recorder.wait() print('done') 

submitted by /u/avsfjan
[link] [comments]  I am writing a python program for windows in which I want the user be able to quickly take a video from within the python app using the internal camera and microphone and then save the resulting video as an mp4, or similar. The software needs to run on windows (specifically a surface tablet). Obviously i googled first and found many, many tutorials on how to record video, but most of them without sound. Also all of them had the problem that the resulting video was badly synched and was timewarping around. So far I tried CV2 and ffmpeg. The latter via commandline and a separate ffmpeg.exe binary. This works in general, but has the same problem as all the CV2 solutions: audio and video are hardly in sync and the video speed is janky all over the video. is there a better solution? Is this really this hard, or am i missing something here? So far my code is this: (selecting cameras[1] and audio[0] is only specific to my test machine right now, this would later be dynamic…) import subprocess import re import time list_devices = [‘../ffmpeg.exe’, ‘-list_devices’, ‘true’, ‘-f’, ‘dshow’, ‘-i’, ‘dummy’] result = subprocess.run( list_devices, # Arguments capture_output = True, # Python >= 3.7 only text = True # Python >= 3.7 only ) cameras = re.findall(“”(.*)” (video)”, result.stderr) audios = re.findall(“”(.*)” (audio)”, result.stderr) cam = cameras[1] audio = audios[0] record = [‘../ffmpeg.exe’, ‘-f’, ‘dshow’, ‘-i’, f”video={cam}:audio={audio}”, ‘-vf’, ‘format=yuv420p’, ‘output.mp4’] recorder = subprocess.Popen(record, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, stdin=subprocess.PIPE) time.sleep(30) recorder.stdin.write(‘q’) # Simulate user pressing q key recorder.communicate() recorder.wait() print(‘done’) submitted by /u/avsfjan [link] [comments]

Read more

unittest word diff on strings /u/Informal-Addendum435 Python Education

unittest word diff on strings /u/Informal-Addendum435 Python Education

from unittest import TestCase class TestSomething(TestCase): def test_something(self): self.assertMultiLineEqual('one two three', 'one three three') 

produces the error message

AssertionError: 'one two three' != 'one three three' - one two three ? ^^ + one three three ? ^^^^ 

But I would find it more useful to see mismatches inline, like git --word-diff=color shows.

How can I use unittest and other libraries to do something like that?

submitted by /u/Informal-Addendum435
[link] [comments]

​r/learnpython from unittest import TestCase class TestSomething(TestCase): def test_something(self): self.assertMultiLineEqual(‘one two three’, ‘one three three’) produces the error message AssertionError: ‘one two three’ != ‘one three three’ – one two three ? ^^ + one three three ? ^^^^ But I would find it more useful to see mismatches inline, like git –word-diff=color shows. How can I use unittest and other libraries to do something like that? submitted by /u/Informal-Addendum435 [link] [comments] 

from unittest import TestCase class TestSomething(TestCase): def test_something(self): self.assertMultiLineEqual('one two three', 'one three three') 

produces the error message

AssertionError: 'one two three' != 'one three three' - one two three ? ^^ + one three three ? ^^^^ 

But I would find it more useful to see mismatches inline, like git --word-diff=color shows.

How can I use unittest and other libraries to do something like that?

submitted by /u/Informal-Addendum435
[link] [comments]  from unittest import TestCase class TestSomething(TestCase): def test_something(self): self.assertMultiLineEqual(‘one two three’, ‘one three three’) produces the error message AssertionError: ‘one two three’ != ‘one three three’ – one two three ? ^^ + one three three ? ^^^^ But I would find it more useful to see mismatches inline, like git –word-diff=color shows. How can I use unittest and other libraries to do something like that? submitted by /u/Informal-Addendum435 [link] [comments]

Read more

Struggling with parsing a list. /u/tuxon64 Python Education

Struggling with parsing a list. /u/tuxon64 Python Education

I’m accessing a smart energy monitoring plug for monthly usage. The output I get is a single element list like this.

json_str is [‘”== Emeter ==\n== For year 2024 ==\nMonth, usage (kWh)\n11, 11.72\n12, 21.292\n”‘]

I just need to extract the number after nXX, where XX will be 01 through 12 for the different months. In this case I need the 11.72 and the 21.292, so I can add them and get my total usage.

submitted by /u/tuxon64
[link] [comments]

​r/learnpython I’m accessing a smart energy monitoring plug for monthly usage. The output I get is a single element list like this. json_str is [‘”== Emeter ==\n== For year 2024 ==\nMonth, usage (kWh)\n11, 11.72\n12, 21.292\n”‘] I just need to extract the number after nXX, where XX will be 01 through 12 for the different months. In this case I need the 11.72 and the 21.292, so I can add them and get my total usage. submitted by /u/tuxon64 [link] [comments] 

I’m accessing a smart energy monitoring plug for monthly usage. The output I get is a single element list like this.

json_str is [‘”== Emeter ==\n== For year 2024 ==\nMonth, usage (kWh)\n11, 11.72\n12, 21.292\n”‘]

I just need to extract the number after nXX, where XX will be 01 through 12 for the different months. In this case I need the 11.72 and the 21.292, so I can add them and get my total usage.

submitted by /u/tuxon64
[link] [comments]  I’m accessing a smart energy monitoring plug for monthly usage. The output I get is a single element list like this. json_str is [‘”== Emeter ==\n== For year 2024 ==\nMonth, usage (kWh)\n11, 11.72\n12, 21.292\n”‘] I just need to extract the number after nXX, where XX will be 01 through 12 for the different months. In this case I need the 11.72 and the 21.292, so I can add them and get my total usage. submitted by /u/tuxon64 [link] [comments]

Read more