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

Installation failed on MacOS 14.4.1 with Python 3.12.2 #988

Open
TimGraf opened this issue Apr 30, 2024 · 3 comments
Open

Installation failed on MacOS 14.4.1 with Python 3.12.2 #988

TimGraf opened this issue Apr 30, 2024 · 3 comments
Assignees
Labels
type: bug Something isn't working

Comments

@TimGraf
Copy link

TimGraf commented Apr 30, 2024

ERROR: Failed building wheel for pyzmq
Failed to build levenshtein pyzmq
ERROR: Could not build wheels for levenshtein, pyzmq, which is required to install pyproject.toml-based projects

@TimGraf TimGraf added the type: bug Something isn't working label Apr 30, 2024
@abdullah-0
Copy link

Any update?
I am facing the same issue
` Levenshtein/_levenshtein.c:1082:21: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Py_UNICODE *s = PyUnicode_AS_UNICODE(arg1);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.
error: command '/usr/bin/clang' 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 levenshtein
Running setup.py clean for levenshtein
Building wheel for metaphone (setup.py) ... done
Created wheel for metaphone: filename=Metaphone-0.6-py3-none-any.whl size=13901 sha256=cea41186311740f0c2289731ed7a06da3df7fd439d42de461d5f17cc6f161b43
Stored in directory: /Users/abdullah.tahir/Library/Caches/pip/wheels/d0/fc/72/0c9e56e8c85dc1b2998f4c8f5e9075b8eb71b046b519aa1759
Building wheel for pandas (pyproject.toml) ... | `

@cfgerhard
Copy link

cfgerhard commented Aug 15, 2024

same here
My config:
sw_vers
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
➜ ~ /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 --version
Python 3.12.4
my error:
Using cached jupyter_server-2.13.0-py3-none-any.whl (383 kB)
Using cached testpath-0.6.0-py3-none-any.whl (83 kB)
Building wheels for collected packages: levenshtein
Building wheel for levenshtein (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for levenshtein (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [132 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-312
creating build/lib.macosx-10.9-universal2-cpython-312/Levenshtein
copying Levenshtein/StringMatcher.py -> build/lib.macosx-10.9-universal2-cpython-312/Levenshtein
copying Levenshtein/init.py -> build/lib.macosx-10.9-universal2-cpython-312/Levenshtein
running egg_info
writing levenshtein.egg-info/PKG-INFO
writing dependency_links to levenshtein.egg-info/dependency_links.txt
writing namespace_packages to levenshtein.egg-info/namespace_packages.txt
writing requirements to levenshtein.egg-info/requires.txt
writing top-level names to levenshtein.egg-info/top_level.txt
reading manifest file 'levenshtein.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
adding license file 'COPYING'
writing manifest file 'levenshtein.egg-info/SOURCES.txt'
copying Levenshtein/_levenshtein.c -> build/lib.macosx-10.9-universal2-cpython-312/Levenshtein
copying Levenshtein/_levenshtein.h -> build/lib.macosx-10.9-universal2-cpython-312/Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
creating build/temp.macosx-10.9-universal2-cpython-312
creating build/temp.macosx-10.9-universal2-cpython-312/Levenshtein
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c Levenshtein/_levenshtein.c -o build/temp.macosx-10.9-universal2-cpython-312/Levenshtein/_levenshtein.o
Levenshtein/_levenshtein.c:711:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:712:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:726:12: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
len1 = PyUnicode_GET_SIZE(arg1);
^
Levenshtein/_levenshtein.c:726:12: note: did you mean 'PyDict_GET_SIZE'?
/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:53:26: note: 'PyDict_GET_SIZE' declared here
static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
^
Levenshtein/_levenshtein.c:729:15: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
string1 = PyUnicode_AS_UNICODE(arg1);
^
Levenshtein/_levenshtein.c:729:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string1 = PyUnicode_AS_UNICODE(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:730:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string2 = PyUnicode_AS_UNICODE(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:796:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:797:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:805:12: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
len1 = PyUnicode_GET_SIZE(arg1);
^
Levenshtein/_levenshtein.c:812:15: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
string1 = PyUnicode_AS_UNICODE(arg1);
^
Levenshtein/_levenshtein.c:812:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string1 = PyUnicode_AS_UNICODE(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:813:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string2 = PyUnicode_AS_UNICODE(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:840:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:841:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:848:12: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
len1 = PyUnicode_GET_SIZE(arg1);
^
Levenshtein/_levenshtein.c:850:15: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
string1 = PyUnicode_AS_UNICODE(arg1);
^
Levenshtein/_levenshtein.c:850:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string1 = PyUnicode_AS_UNICODE(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:851:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string2 = PyUnicode_AS_UNICODE(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:890:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string1 = PyString_AS_STRING(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:891:13: warning: assigning to 'lev_byte *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
string2 = PyString_AS_STRING(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:900:12: error: call to undeclared function 'PyUnicode_GET_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
len1 = PyUnicode_GET_SIZE(arg1);
^
Levenshtein/_levenshtein.c:902:15: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
string1 = PyUnicode_AS_UNICODE(arg1);
^
Levenshtein/_levenshtein.c:902:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string1 = PyUnicode_AS_UNICODE(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:903:13: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
string2 = PyUnicode_AS_UNICODE(arg2);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:992:43: warning: passing 'lev_byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/bytesobject.h:34:62: note: passing argument to parameter here
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^
Levenshtein/_levenshtein.c:1001:16: error: call to undeclared function 'PyUnicode_FromUnicode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
result = PyUnicode_FromUnicode(medstr, len);
^
Levenshtein/_levenshtein.c:1001:14: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
result = PyUnicode_FromUnicode(medstr, len);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1071:15: warning: initializing 'lev_byte *' (aka 'unsigned char *') with an expression of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
lev_byte *s = PyString_AS_STRING(arg1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Levenshtein/_levenshtein.c:1077:43: warning: passing 'lev_byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
result = PyString_FromStringAndSize(medstr, len);
^~~~~~
/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/bytesobject.h:34:62: note: passing argument to parameter here
PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
^
Levenshtein/_levenshtein.c:1082:21: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Py_UNICODE *s = PyUnicode_AS_UNICODE(arg1);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.
error: command '/usr/bin/clang' 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 levenshtein
Failed to build levenshtein
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (levenshtein)

@pedromartinez3
Copy link

Have you tried an earlier version of Python? Dataprep is only supported from Python 3.8 to 3.10

https://pypi.org/project/dataprep/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants