When I run python3 -m pip install pyobjus, the following error occurs:
Collecting pyobjus
Using cached pyobjus-1.1.0.tar.gz (72 kB)
Building wheels for collected packages: pyobjus
Building wheel for pyobjus (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/Documents/works/kivy/kivy-ios/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"'; __file__='"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-wheel-qr35ssjy
cwd: /private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/
Complete output (74 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.6
copying setup.py -> build/lib.macosx-10.13-x86_64-3.6
creating build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/dylib_manager.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/protocols.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/__init__.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/objc_py_types.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
creating build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/__init__.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/corebluetooth.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
running build_ext
cythoning pyobjus/pyobjus.pyx to pyobjus/pyobjus.c
/Users/user/Documents/works/kivy/kivy-ios/venv/lib/python3.6/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/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/pyobjus/pyobjus.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pyobjus' extension
creating build/temp.macosx-10.13-x86_64-3.6
creating build/temp.macosx-10.13-x86_64-3.6/pyobjus
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/user/Documents/works/kivy/kivy-ios/venv/include -I/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c pyobjus/pyobjus.c -o build/temp.macosx-10.13-x86_64-3.6/pyobjus/pyobjus.o
In file included from pyobjus/pyobjus.c:608:
pyobjus/_runtime.h:33:23: error: too many arguments to function call, expected 0, have 2
return objc_msgSend(pool, sel_registerName("init"));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
In file included from pyobjus/pyobjus.c:608:
pyobjus/_runtime.h:37:22: error: too many arguments to function call, expected 0, have 2
(void)objc_msgSend(pool, sel_registerName("drain"));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
pyobjus/pyobjus.c:24591:25: error: too many arguments to function call, expected 0, have 2
(void)(objc_msgSend(__pyx_v_self->o_instance, sel_registerName(((char *)"release"))));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
pyobjus/pyobjus.c:24668:45: error: too many arguments to function call, expected 0, have 2
__pyx_v_self->o_instance = objc_msgSend(__pyx_v_self->o_instance, sel_registerName(((char *)"retain")));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
4 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pyobjus
Running setup.py clean for pyobjus
Failed to build pyobjus
Installing collected packages: pyobjus
Running setup.py install for pyobjus ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/Documents/works/kivy/kivy-ios/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"'; __file__='"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-record-ga83jl0h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/Documents/works/kivy/kivy-ios/venv/include/site/python3.6/pyobjus
cwd: /private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/
Complete output (72 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.6
copying setup.py -> build/lib.macosx-10.13-x86_64-3.6
creating build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/dylib_manager.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/protocols.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/__init__.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
copying pyobjus/objc_py_types.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus
creating build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/__init__.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/corebluetooth.py -> build/lib.macosx-10.13-x86_64-3.6/pyobjus/consts
running build_ext
skipping 'pyobjus/pyobjus.c' Cython extension (up-to-date)
building 'pyobjus' extension
creating build/temp.macosx-10.13-x86_64-3.6
creating build/temp.macosx-10.13-x86_64-3.6/pyobjus
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/user/Documents/works/kivy/kivy-ios/venv/include -I/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c pyobjus/pyobjus.c -o build/temp.macosx-10.13-x86_64-3.6/pyobjus/pyobjus.o
In file included from pyobjus/pyobjus.c:608:
pyobjus/_runtime.h:33:23: error: too many arguments to function call, expected 0, have 2
return objc_msgSend(pool, sel_registerName("init"));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
In file included from pyobjus/pyobjus.c:608:
pyobjus/_runtime.h:37:22: error: too many arguments to function call, expected 0, have 2
(void)objc_msgSend(pool, sel_registerName("drain"));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
pyobjus/pyobjus.c:24591:25: error: too many arguments to function call, expected 0, have 2
(void)(objc_msgSend(__pyx_v_self->o_instance, sel_registerName(((char *)"release"))));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
pyobjus/pyobjus.c:24668:45: error: too many arguments to function call, expected 0, have 2
__pyx_v_self->o_instance = objc_msgSend(__pyx_v_self->o_instance, sel_registerName(((char *)"retain")));
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:236:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:225:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
4 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/Documents/works/kivy/kivy-ios/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"'; __file__='"'"'/private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-install-ycnyuusu/pyobjus/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3q/7x5ghkb54cd_78y3rpf3zfhh0000gn/T/pip-record-ga83jl0h/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/Documents/works/kivy/kivy-ios/venv/include/site/python3.6/pyobjus Check the logs for full command output.
Can anyone please help? Thanks!