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

Intalls cx_Logging in MacOS xxxxx #2

Open
frendon opened this issue Jun 18, 2019 · 2 comments
Open

Intalls cx_Logging in MacOS xxxxx #2

frendon opened this issue Jun 18, 2019 · 2 comments

Comments

@frendon
Copy link

frendon commented Jun 18, 2019

['Collecting cx-logging==2.2 (from -r /var/folders/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pipenv-d271sfne-requirements/pipenv-bvct1dn7-requirement.txt (line 1))', ' Using cached https://files.pythonhosted.org/packages/b6/f9/ac698220a040ba4790c041d1468a8372520df59799c67f9e40d846a83cb2/cx_Logging-2.2.tar.gz', 'Building wheels for collected packages: cx-logging', ' Building wheel for cx-logging (setup.py): started', " Building wheel for cx-logging (setup.py): finished with status 'error'", ' Running setup.py clean for cx-logging', 'Failed to build cx-logging', 'Installing collected packages: cx-logging', ' Running setup.py install for cx-logging: started', " Running setup.py install for cx-logging: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Complete output from command /Users/xxxxxxx/.local/share/virtualenvs/factoria-G4sP4ZQi/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-install-mk4oy_k2/cx-logging/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/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-wheel-cfuqmg_h --python-tag cp37:', ' ERROR: running bdist_wheel', ' running build', ' running build_ext', " building 'cx_Logging' extension", ' creating build', ' creating build/temp.macosx-10.13-x86_64-3.7', ' creating build/temp.macosx-10.13-x86_64-3.7/src', ' clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -arch x86_64 -DCX_LOGGING_CORE -DBUILD_VERSION=2.2 -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cx_Logging.c -o build/temp.macosx-10.13-x86_64-3.7/src/cx_Logging.o', " src/cx_Logging.c:6:10: fatal error: 'cx_Logging.h' file not found", ' #include "cx_Logging.h"', ' ^~~~~~~~~~~~~~', ' 1 error generated.', " error: command 'clang' failed with exit status 1", ' ----------------------------------------', ' ERROR: Failed building wheel for cx-logging', ' ERROR: Complete output from command /Users/xxxxxxx/.local/share/virtualenvs/factoria-G4sP4ZQi/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-install-mk4oy_k2/cx-logging/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/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-record-nqj_nxky/install-record.txt --single-version-externally-managed --compile --install-headers /Users/xxxxxxx/.local/share/virtualenvs/factoria-G4sP4ZQi/bin/../include/site/python3.7/cx-logging:', ' ERROR: running install', ' running build', ' running build_ext', " building 'cx_Logging' extension", ' creating build', ' creating build/temp.macosx-10.13-x86_64-3.7', ' creating build/temp.macosx-10.13-x86_64-3.7/src', ' clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -arch x86_64 -DCX_LOGGING_CORE -DBUILD_VERSION=2.2 -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cx_Logging.c -o build/temp.macosx-10.13-x86_64-3.7/src/cx_Logging.o', " src/cx_Logging.c:6:10: fatal error: 'cx_Logging.h' file not found", ' #include "cx_Logging.h"', ' ^~~~~~~~~~~~~~', ' 1 error generated.', " error: command 'clang' failed with exit status 1", ' ----------------------------------------', 'ERROR: Command "/Users/xxxxxxx/.local/share/virtualenvs/factoria-G4sP4ZQi/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-install-mk4oy_k2/cx-logging/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/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-record-nqj_nxky/install-record.txt --single-version-externally-managed --compile --install-headers /Users/xxxxxxx/.local/share/virtualenvs/factoria-G4sP4ZQi/bin/../include/site/python3.7/cx-logging" failed with error code 1 in /private/var/folders/0z/0wkvp0792gg18hszzcjtkby00000gn/T/pip-install-mk4oy_k2/cx-logging/'

@anthony-tuininga
Copy link
Owner

I don't have access to macOS so don't know if I can be of much help. Can you try the latest code and see if it works better for you? It has been modernized somewhat!

@anthony-tuininga
Copy link
Owner

I now have access to macOS and discovered that macOS does not support unnamed semaphores -- which is what cx_Logging is using. Named semaphores are supported on macOS, but making use of them would require some fairly significant rework. Is this still of interest?

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

No branches or pull requests

2 participants