Open MatthewMishek opened 1 year ago
I am getting the same error while running pip install string-grouper
Has there been a resolution to this error?
We had the same error in Ubuntu and running the below did the trick.
sudo apt-get update
sudo apt-get install --reinstall build-essential
Cant install string_grouper. This seems to be happening now that Cython 3.0 was released yesterday, and sparse_dot_topn_for_blocks no longer builds/installs
I'm getting this massive error message when running
pip install string-grouper
:`Building wheel for sparse-dot-topn-for-blocks (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for sparse-dot-topn-for-blocks (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [133 lines of output] /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-build-env-408ba_r1/overlay/lib/python3.9/site-packages/setuptools/dist.py:547: UserWarning: Normalizing '0.3.1-3' to '0.3.1.post3' warnings.warn(tmpl.format(**locals())) running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-cpython-39 creating build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/init.py -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/awesome_cossim_topn.py -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks running egg_info writing sparse_dot_topn_for_blocks.egg-info/PKG-INFO writing dependency_links to sparse_dot_topn_for_blocks.egg-info/dependency_links.txt writing requirements to sparse_dot_topn_for_blocks.egg-info/requires.txt writing top-level names to sparse_dot_topn_for_blocks.egg-info/top_level.txt reading manifest file 'sparse_dot_topn_for_blocks.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'sparse_dot_topn_for_blocks.egg-info/SOURCES.txt' copying sparse_dot_topn_for_blocks/array_wrappers.pxd -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/array_wrappers.pyx -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn.pyx -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn_parallel.cpp -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn_parallel.h -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn_source.cpp -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn_source.h -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks copying sparse_dot_topn_for_blocks/sparse_dot_topn_threaded.pyx -> build/lib.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks running build_ext cythoning ./sparse_dot_topn_for_blocks/array_wrappers.pyx to ./sparse_dot_topn_for_blocks/array_wrappers.cpp /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-build-env-408ba_r1/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-install-ljp_ueq6/sparse-dot-topn-for-blocks_17bf336cf6834c48999acd7c7575534a/sparse_dot_topn_for_blocks/array_wrappers.pxd tree = Parsing.p_module(s, pxd, full_module_name) cythoning ./sparse_dot_topn_for_blocks/sparse_dot_topn.pyx to ./sparse_dot_topn_for_blocks/sparse_dot_topn.cpp /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-build-env-408ba_r1/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-install-ljp_ueq6/sparse-dot-topn-for-blocks_17bf336cf6834c48999acd7c7575534a/sparse_dot_topn_for_blocks/sparse_dot_topn.pyx tree = Parsing.p_module(s, pxd, full_module_name) cythoning ./sparse_dot_topn_for_blocks/sparse_dot_topn_threaded.pyx to ./sparse_dot_topn_for_blocks/sparse_dot_topn_threaded.cpp /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-build-env-408ba_r1/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-install-ljp_ueq6/sparse-dot-topn-for-blocks_17bf336cf6834c48999acd7c7575534a/sparse_dot_topn_for_blocks/sparse_dot_topn_threaded.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'sparse_dot_topn_for_blocks.array_wrappers' extension creating build/temp.macosx-10.9-x86_64-cpython-39 creating build/temp.macosx-10.9-x86_64-cpython-39/sparse_dot_topn_for_blocks x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -arch x86_64 -I/Users/matthewmishek/opt/anaconda3/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -arch x86_64 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/matthewmishek/opt/anaconda3/include -I/Users/matthewmishek/opt/anaconda3/include/python3.9 -I/private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-build-env-408ba_r1/normal/lib/python3.9/site-packages/numpy/core/include -c ./sparse_dot_topn_for_blocks/array_wrappers.cpp -o build/temp.macosx-10.9-x86_64-cpython-39/./sparse_dot_topn_for_blocks/array_wrappers.o -std=c++0x -pthread -O3 In file included from ./sparse_dot_topn_for_blocks/array_wrappers.cpp:6: /Users/matthewmishek/opt/anaconda3/include/python3.9/Python.h:14:2: error: "Something's broken. UCHAR_MAX should be defined in limits.h."
error "Something's broken. UCHAR_MAX should be defined in limits.h."
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for sparse-dot-topn-for-blocks Building wheel for topn (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [136 lines of output] /Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/setuptools/init.py:85: _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) /Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-cpython-39 creating build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/init.py -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/awesome_topn.py -> build/lib.macosx-10.9-x86_64-cpython-39/topn creating build/lib.macosx-10.9-x86_64-cpython-39/topn/test copying topn/test/init.py -> build/lib.macosx-10.9-x86_64-cpython-39/topn/test copying topn/test/test_topn.py -> build/lib.macosx-10.9-x86_64-cpython-39/topn/test running egg_info writing topn.egg-info/PKG-INFO writing dependency_links to topn.egg-info/dependency_links.txt writing requirements to topn.egg-info/requires.txt writing top-level names to topn.egg-info/top_level.txt reading manifest file 'topn.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.pxd' under directory 'topn' adding license file 'LICENSE' writing manifest file 'topn.egg-info/SOURCES.txt' copying topn/topn.pyx -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/topn_parallel.cpp -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/topn_parallel.h -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/topn_source.cpp -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/topn_source.h -> build/lib.macosx-10.9-x86_64-cpython-39/topn copying topn/topn_threaded.pyx -> build/lib.macosx-10.9-x86_64-cpython-39/topn running build_ext cythoning ./topn/topn.pyx to ./topn/topn.cpp /Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-install-ljp_ueq6/topn_737965a146fb4466a913c5fc8c91042f/topn/topn.pyx tree = Parsing.p_module(s, pxd, full_module_name) cythoning ./topn/topn_threaded.pyx to ./topn/topn_threaded.cpp /Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6t/52bwc8gd0zl22jrcsfw3_zf80000gn/T/pip-install-ljp_ueq6/topn_737965a146fb4466a913c5fc8c91042f/topn/topn_threaded.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'topn.topn' extension creating build/temp.macosx-10.9-x86_64-cpython-39 creating build/temp.macosx-10.9-x86_64-cpython-39/topn x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -arch x86_64 -I/Users/matthewmishek/opt/anaconda3/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -arch x86_64 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/matthewmishek/opt/anaconda3/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/matthewmishek/opt/anaconda3/include -I/Users/matthewmishek/opt/anaconda3/include/python3.9 -I/Users/matthewmishek/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include -c ./topn/topn.cpp -o build/temp.macosx-10.9-x86_64-cpython-39/./topn/topn.o -std=c++0x -pthread -O3 In file included from ./topn/topn.cpp:6: /Users/matthewmishek/opt/anaconda3/include/python3.9/Python.h:14:2: error: "Something's broken. UCHAR_MAX should be defined in limits.h."error "Something's broken. UCHAR_MAX should be defined in limits.h."
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for topn Running setup.py clean for topn Failed to build sparse-dot-topn-for-blocks topn ERROR: Could not build wheels for sparse-dot-topn-for-blocks, which is required to install pyproject.toml-based projects`
I've tried a few different things to resolve this, including updating Visual Studio, updating pip and reinstalling Python, but to no avail. Any thoughts?