So, I'd like to compile py2exe using mingw & I got an error. Does anybody know how to fix that?
D:\devel\py2exe-0.6.9>python setup.py build -cmingw32
running build
running build_py
creating build
creating build\lib.win32-2.7
copying zipextimporter.py -> build\lib.win32-2.7
creating build\lib.win32-2.7\py2exe
copying py2exe\boot_common.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_com_servers.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_ctypes_com_server.py -> build\lib.win32-2.7\py2exe
copying py2exe\boot_service.py -> build\lib.win32-2.7\py2exe
copying py2exe\build_exe.py -> build\lib.win32-2.7\py2exe
copying py2exe\mf.py -> build\lib.win32-2.7\py2exe
copying py2exe\__init__.py -> build\lib.win32-2.7\py2exe
creating build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\StringTables.py -> build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\VersionInfo.py -> build\lib.win32-2.7\py2exe\resources
copying py2exe\resources\__init__.py -> build\lib.win32-2.7\py2exe\resources
running build_ext
building '_memimporter' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\source
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHONDLL=\"PYTHON27.DLL\" -DPYTHONCOM=\"pythoncom27.dll\" -IC:\Python27\include -IC:\Python27\PC -c source/MemoryModule.c -o build\temp.win32-2.7\Release\source\memorymodule.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
How to remove -mno-cygwin from build options?
This is a known problem due to unmaintenance by the Python devs to follow MinGW GCC development:
http://bugs.python.org/issue12641
Since 2010-something GCC removed that option due to confusing the people who used the switch. The bug report contains a fix to one of Python's distutils configuration files that you can apply without rebuilding Python or anything.
UPDATE: the error is clear, the code you are compiling is redefining a type that is defined in a Python header:
source/Python-version.h:13:18: error: redefinition of typedef 'Py_ssize_t'
C:\Python27\include/pyport.h:172:25: note: previous declaration of 'Py_ssize_t'
Remove the typedef of Py_ssize_t in your code. There might be some configury stuff going wrong. Be sure to do a clean rebuild after fixing the -mno-cygwin problem.
Related
Using pip version 20.2.4, Python 3.8.2 and Big Sur 11.0.1.
When I run pip install cryptography, I get this error:
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/xxx/projects/xxx/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g8/nj6ghjhgj11j84rsjmqqb00000gn/T/pip-install-aufpkz3c/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/g8/nj6ghjhgj11j84rsjmqqb00000gn/T/pip-install-aufpkz3c/cffi/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/g8/nj6ghjhgj11j84rsjmqqb00000gn/T/pip-wheel-asotxqfl
cwd: /private/var/folders/g8/nj6ghjhgj11j84rsjmqqb00000gn/T/pip-install-aufpkz3c/cffi/
Complete output (42 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/error.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/pkgconfig.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/model.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/api.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/lock.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/recompiler.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cparser.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/verifier.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_embedding.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/c
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/local/Cellar/libffi/3.3/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi -I/Users/xxxx/projects/xxxx/venv/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.14.6-x86_64-3.8/c/_cffi_backend.o
c/_cffi_backend.c:5854:2: error: Apple Arm64 ABI requires ffi_prep_cif_var
#error Apple Arm64 ABI requires ffi_prep_cif_var
^
c/_cffi_backend.c:6304:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
if (ffi_prep_closure(closure, &cif_descr->cif,
^
/usr/local/Cellar/libffi/3.3/include/ffi.h:341:18: note: 'ffi_prep_closure' has been explicitly marked deprecated here
__attribute__((deprecated))
^
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cffi
I didn't ever encounter this before I upgraded MacOS. Any idea what I can try?
First install openssl
brew install openssl
Then export compiler options:
export CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1"
export LDFLAGS="-L/usr/local/opt/openssl#1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl#1.1/include"
and now you can use pip install
pip3 install cryptography==2.8
env LDFLAGS="-L$(brew --prefix openssl#1.1)/lib" CFLAGS="-I$(brew --prefix openssl#1.1)/include" pip install cryptography
The answer from #serge-g above worked well on M1 Mac / ARM64 with Homebrew and Big Sur 11.6.
I had to make the following changes:
brew install openssl
export CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS="1"
export LDFLAGS="-L/opt/homebrew/opt/openssl#1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl#1.1/include"
At that point installing cryptography worked for me via
pip3 install cryptography==2.8
FYI, in my case cryptography was a dependency of the Azure CLI Python package (pip3 install azure-cli). Thanks to #serge-g for pointing me in the right direction!
According to this issue on cryptography's GitHub, as of November 2020, simply upgrading pip to the latest version allows this to work correctly. I was running into this error myself on pip 19 and upgrading to pip 21.0.1 fixed the issue for me.
You should try poetry shell and pip install cryptography
tldr: Cannot install python-docx and lxml on my Synology DiskStation via pip3 or python 3 -m pip install.
Long version:
I already had some problem installing pip3 and django, but I got it working. Now I wanted to create doc files within django. So, python-docx was recommended. However I cannot just say "pip3 install python-docx".
[Here I have erased the old output, because it was not valid anymore.]
I do not know what to do next. I also tried to install libxml2:
python3 -m pip install libxml2
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement libxml2 (from versions: none)
ERROR: No matching distribution found for libxml2
I googled, but many sites just recommend how to install certain dev packages on debian, which is not helping me.
Can you please tell me how to proceed?
Edit
After reading for hours and trying different things, including an install of entware, I have now a slightly different output.
python3 -m pip install python-docx
Defaulting to user installation because normal site-packages is not writeable
Processing /volume1/homes/admin/.cache/pip/wheels/5c/b3/f7/0b2150abcd02387566859213e86c490e38070d0aad388c1105/python_docx-0.8.10-py3-none-any.whl
Collecting lxml>=2.3.2
Using cached lxml-4.5.0.tar.gz (4.5 MB)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/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 /tmp/pip-wheel-h4ugg_2s
cwd: /tmp/pip-install-9_1bbtke/lxml/
Complete output (91 lines):
Building lxml version 4.5.0.
Building without Cython.
ERROR: b'/bin/sh: xslt-config: command not found\n'
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/cssselect.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/__init__.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/builder.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/sax.py -> build/lib.linux-armv7l-3.5/lxml
creating build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-armv7l-3.5/lxml/html
creating build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.5
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/lxml
/opt/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -mhard-float -mfpu=vfpv3-d16 -march=armv7-a -mcpu=marvell-pj4 -mtune=marvell-pj4 -DSYNOPLAT_F_ARMV7 -O2 -fno-diagnostics-show-caret -Wno-unused-local-typedefs -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/volume1/#appstore/py3k/usr/local/include/python3.5m -c src/lxml/etree.c -o build/temp.linux-armv7l-3.5/src/lxml/etree.o -w
gcc: error trying to exec 'as': execvp: No such file or directory
cc1: fatal error: /usr/syno/include/platformconfig.h: No such file or directory
compilation terminated.
Compile failed: command '/opt/bin/gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit_wqm9l9k.c -o tmp/xmlXPathInit_wqm9l9k.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command '/opt/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, python-docx
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_uhfue_j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /var/services/homes/admin/.local/include/python3.5m/lxml
cwd: /tmp/pip-install-9_1bbtke/lxml/
Complete output (90 lines):
Building lxml version 4.5.0.
Building without Cython.
ERROR: b'/bin/sh: xslt-config: command not found\n'
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/cssselect.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/__init__.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/builder.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/sax.py -> build/lib.linux-armv7l-3.5/lxml
creating build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-armv7l-3.5/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-armv7l-3.5/lxml/html
creating build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-armv7l-3.5/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-armv7l-3.5/lxml
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-armv7l-3.5/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-armv7l-3.5/lxml/includes
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/rng
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl
creating build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-armv7l-3.5/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.5
creating build/temp.linux-armv7l-3.5/src
creating build/temp.linux-armv7l-3.5/src/lxml
/opt/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -mhard-float -mfpu=vfpv3-d16 -march=armv7-a -mcpu=marvell-pj4 -mtune=marvell-pj4 -DSYNOPLAT_F_ARMV7 -O2 -fno-diagnostics-show-caret -Wno-unused-local-typedefs -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/volume1/#appstore/py3k/usr/local/include/python3.5m -c src/lxml/etree.c -o build/temp.linux-armv7l-3.5/src/lxml/etree.o -w
gcc: error trying to exec 'as': execvp: No such file or directory
cc1: fatal error: /usr/syno/include/platformconfig.h: No such file or directory
compilation terminated.
Compile failed: command '/opt/bin/gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit31sc0ump.c -o tmp/xmlXPathInit31sc0ump.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command '/opt/bin/gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9_1bbtke/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_uhfue_j/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /var/services/homes/admin/.local/include/python3.5m/lxml Check the logs for full command output.
If I see this correct, there is something wrong about something called "CC". But I still do not know what to do.
I may have found a solution. But I still have to test it. In the meantime you do not have to answer.
Via opkg I could install some of the packages and I also got a new install of python3. Somewhat confusing for me. So now I have a 2.7 that I never wanted from Synology and a 3.5 from the Synology package center and obviously a newer one from opkg.
However, I could install some packages, but others not. For example, I tried to install reportlab as a way to produce PDFs if python-docx would not run. But I could not install reportlab either, because it seems to miss something like libjpeg-dev or so. And I could also not find this in the opkg repo. However, suddenly python-docx could be installed and I am working with that now.
I am sorry that I cannot provide a better description for others who might have the same problem, but at least I tried to make my steps comprehensible.
Best regards
I'm running NetBSD 7.1 and I'm trying to install Python's lxml package, using pip.
However I get this compilation error:
# pip install lxml
Collecting lxml
Using cached lxml-3.8.0.tar.gz
Installing collected packages: lxml
Running setup.py install for lxml ... error
Complete output from command /usr/pkg/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Xb5RT3/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-N6HUOc-record/install-record.txt --single-version-externally-managed --compile:
Building lxml version 3.8.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in one of the following directories:
/usr/pkg/lib
/usr/lib
running install
running build
running build_py
creating build
creating build/lib.netbsd-7.1-amd64-2.7
creating build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/sax.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.netbsd-7.1-amd64-2.7/lxml
creating build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
creating build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/html
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.netbsd-7.1-amd64-2.7/lxml
copying src/lxml/includes/etreepublic.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.netbsd-7.1-amd64-2.7/lxml/includes
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/rng
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl
creating build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.netbsd-7.1-amd64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.netbsd-7.1-amd64-2.7
creating build/temp.netbsd-7.1-amd64-2.7/src
creating build/temp.netbsd-7.1-amd64-2.7/src/lxml
gcc -fno-strict-aliasing -O2 -pthread -I/usr/include -I/usr/pkg/include -DNDEBUG -O2 -pthread -I/usr/include -I/usr/pkg/include -fPIC -I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/include -Isrc/lxml/includes -I/usr/pkg/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.netbsd-7.1-amd64-2.7/src/lxml/lxml.etree.o -w
In file included from /usr/pkg/include/libxml2/limits.h:168:0,
from /usr/pkg/include/libxml2/syslimits.h:7,
from /usr/pkg/include/libxml2/limits.h:34,
from /usr/pkg/include/python2.7/Python.h:19,
from src/lxml/lxml.etree.c:84:
/usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
creating tmp
cc -I/usr/pkg/include -I/usr/pkg/include/libxml2 -I/usr/include -I/usr/include/libxml2 -c /tmp/xmlXPathInit_nXifU.c -o tmp/xmlXPathInit_nXifU.o
unable to execute 'cc': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/pkg/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Xb5RT3/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-N6HUOc-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Xb5RT3/lxml/
I'm on a clean NetBSD 7.1 minimal installation, but have added the following using pkgsrc:
# pkg_info
xmlcatmgr-2.2nb1 XML and SGML catalog manager
libxml2-2.9.4nb3 XML parser library from the GNOME project
libgpg-error-1.27 Definitions of common error values for all GnuPG components
libgcrypt-1.7.6 GNU cryptographic library
libxslt-1.1.29nb2 XSLT parser library from the GNOME project
mozilla-rootcerts-1.0.20170121nb5 Root CA certificates from the Mozilla Project
libffi-3.2.1nb2 Foreign function interface
python27-2.7.13nb1 Interpreted, interactive, object-oriented programming language
py27-expat-2.7.13 Python interface to expat
py27-appdirs-1.4.0 Module for determining appropriate, platform-specific dirs
py27-pyparsing-2.1.10 Pyparsing module for Python
py27-six-1.10.0 Python 2 and 3 compatibility utilities
py27-packaging-16.8 Core utilities for Python packages
py27-setuptools-34.3.2 New Python packaging system
py27-pip-9.0.1 Installs Python packages as an easy_install replacement
libxml-1.8.17nb4 XML parser (version 1), mainly used by the GNOME project
py27-libxml2-2.9.4nb2 Python wrapper for libxml2
py27-libxslt-1.1.29 Python wrapper for libxslt
gccmakedep-1.0.3 Create dependencies in Makefiles using gcc
gcc5-5.4.0nb2 The GNU Compiler Collection (GCC) - 5 Release Series
boost-headers-1.63.0 Free, peer-reviewed portable C++ source libraries (build-time headers)
compat_headers-0.2 Compatibility headers
This was due to the compiler set not being installed, as it's not part of the "minimal installation" package.
To keep things at minimum, one can choose "Custom installation" option instead and set Compiler Tools to "Yes".
Another way is to download and install the comp.tgz manually:
# cd /
# ftp ftp://ftp.netbsd.org (as an anonymous user)
> cd pub/NetBSD/NetBSD-7.1/amd64/binary/sets
> get comp.tgz
> exit
# tar --unlink -zxvpf comp.tgz
More details available on NetBSD's FAQ.
I've been at this for the last 5 hours or so. I've reinstalled a bunch, but essentially I'm trying to install the Python module h5py on a Windows 8.1 machine running Python 3.4.1.
The stack is as follows:
Collecting h5py
Using cached h5py-2.6.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in c:\python34\lib\site-packages (from h5py)
Requirement already satisfied (use --upgrade to upgrade): six in c:\python34\lib\site-packages (from h5py)
Building wheels for collected packages: h5py
Running setup.py bdist_wheel for h5py: started
Running setup.py bdist_wheel for h5py: finished with status 'error'
Complete output from command C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\CHARLE~1\AppData\Local\Temp\tmpbpg7zmwapip-wheel- --python-tag cp34:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\h5py
copying h5py\highlevel.py -> build\lib.win32-3.4\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.4\h5py
copying h5py\version.py -> build\lib.win32-3.4\h5py
copying h5py\__init__.py -> build\lib.win32-3.4\h5py
creating build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.4\h5py\_hl
creating build\lib.win32-3.4\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.4\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.4\h5py\tests
creating build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\common.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs_data.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_base.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dataset.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_datatype.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dimension_scales.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_file.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_group.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5f.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5p.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5t.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_objects.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_selections.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_slicing.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\__init__.py -> build\lib.win32-3.4\h5py\tests\old
creating build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_attribute_create.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_getitem.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_swmr.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_datatype.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dims_dimensionproxy.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_file.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_threads.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\__init__.py -> build\lib.win32-3.4\h5py\tests\hl
running build_ext
Autodetection skipped [[WinError 126] The specified module could not be found]
********************************************************************************
Summary of the h5py configuration
Path to HDF5: None
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: False
********************************************************************************
Executing api_gen rebuild of defs
Executing cythonize()
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_errors.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_objects.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_proxy.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5fd.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5z.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5i.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5r.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\utils.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_conv.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5t.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5s.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5p.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5d.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5a.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5f.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5g.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5l.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5o.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ds.pyx because it changed.
Compiling c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ac.pyx because it changed.
[ 1/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_conv.pyx
[ 2/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_errors.pyx
[ 3/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_objects.pyx
[ 4/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\_proxy.pyx
[ 5/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.pyx
[ 6/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5.pyx
[ 7/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5a.pyx
[ 8/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ac.pyx
[ 9/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5d.pyx
[10/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5ds.pyx
[11/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5f.pyx
[12/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5fd.pyx
[13/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5g.pyx
[14/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5i.pyx
[15/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5l.pyx
[16/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5o.pyx
[17/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5p.pyx
[18/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5r.pyx
[19/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5s.pyx
[20/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5t.pyx
[21/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\h5z.pyx
[22/22] Cythonizing c:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\utils.pyx
building 'h5py.defs' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
creating build\temp.win32-3.4\Release\users
creating build\temp.win32-3.4\Release\users\charle~1
creating build\temp.win32-3.4\Release\users\charle~1\appdata
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DH5_USE_16_API -D_HDF5USEDLL_ -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\lzf -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\windows -IC:\Python34\lib\site-packages\numpy\core\include -IC:\Python34\include -IC:\Python34\include /Tcc:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.c /Fobuild\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.obj
defs.c
c:\python34\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\charles kronk\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\api_compat.h(27) : fatal error C1083: Cannot open include file: 'hdf5.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
Running setup.py clean for h5py
Failed to build h5py
Installing collected packages: h5py
Running setup.py install for h5py: started
Running setup.py install for h5py: finished with status 'error'
Complete output from command C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\CHARLE~1\AppData\Local\Temp\pip-fis5451x-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.4
creating build\lib.win32-3.4\h5py
copying h5py\highlevel.py -> build\lib.win32-3.4\h5py
copying h5py\ipy_completer.py -> build\lib.win32-3.4\h5py
copying h5py\version.py -> build\lib.win32-3.4\h5py
copying h5py\__init__.py -> build\lib.win32-3.4\h5py
creating build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\attrs.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\base.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dataset.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\datatype.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\dims.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\files.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\filters.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\group.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\selections2.py -> build\lib.win32-3.4\h5py\_hl
copying h5py\_hl\__init__.py -> build\lib.win32-3.4\h5py\_hl
creating build\lib.win32-3.4\h5py\tests
copying h5py\tests\common.py -> build\lib.win32-3.4\h5py\tests
copying h5py\tests\__init__.py -> build\lib.win32-3.4\h5py\tests
creating build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\common.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_attrs_data.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_base.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dataset.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_datatype.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_dimension_scales.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_file.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_group.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5f.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5p.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_h5t.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_objects.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_selections.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\test_slicing.py -> build\lib.win32-3.4\h5py\tests\old
copying h5py\tests\old\__init__.py -> build\lib.win32-3.4\h5py\tests\old
creating build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_attribute_create.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_getitem.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dataset_swmr.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_datatype.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_dims_dimensionproxy.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_file.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\test_threads.py -> build\lib.win32-3.4\h5py\tests\hl
copying h5py\tests\hl\__init__.py -> build\lib.win32-3.4\h5py\tests\hl
running build_ext
Autodetection skipped [[WinError 126] The specified module could not be found]
********************************************************************************
Summary of the h5py configuration
Path to HDF5: None
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: False
********************************************************************************
Executing cythonize()
building 'h5py.defs' extension
creating build\temp.win32-3.4
creating build\temp.win32-3.4\Release
creating build\temp.win32-3.4\Release\users
creating build\temp.win32-3.4\Release\users\charle~1
creating build\temp.win32-3.4\Release\users\charle~1\appdata
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py
creating build\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DH5_USE_16_API -D_HDF5USEDLL_ -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\lzf -Ic:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\windows -IC:\Python34\lib\site-packages\numpy\core\include -IC:\Python34\include -IC:\Python34\include /Tcc:\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.c /Fobuild\temp.win32-3.4\Release\users\charle~1\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\defs.obj
defs.c
c:\python34\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\charles kronk\appdata\local\temp\pip-build-bw8g_xls\h5py\h5py\api_compat.h(27) : fatal error C1083: Cannot open include file: 'hdf5.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
Further, the error printed to the command line is:
←[31m Failed building wheel for h5py←[0m
←[31mCommand "C:\Python34\python.exe -u -c "import setuptools, tokenize;__file__
='C:\\Users\\CHARLE~1\\AppData\\Local\\Temp\\pip-build-bw8g_xls\\h5py\\setup.py'
;exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '
\n'), __file__, 'exec'))" install --record C:\Users\CHARLE~1\AppData\Local\Temp\
pip-fis5451x-record\install-record.txt --single-version-externally-managed --com
pile" failed with error code 1 in C:\Users\CHARLE~1\AppData\Local\Temp\pip-build
-bw8g_xls\h5py\←[0m
Things I've tried so far:
Uninstalling and reinstalling Microsoft Visual Studio 10.0.
Installing Windows SDK 7.1.
Installing MySQL Connector C 6.0.2 and mklinking it in Program Files (x86).
Running with pip and easy_install. The same error results both times.
Installing other modules. I can't repeat the error thus far.
pip wheel h5py fails on the same stack.
I checked vcvarsall.bat and it appears to have the correct configuration (CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64)
OK! So I did it.
Here's how:
I uninstalled all Python versions and deleted all Python-related files, folders, etc. (included PATH variables and packages).
I uninstalled all Microsoft Visual Studio C++ 2010 Redistributable, Microsoft Windows SDK for Windows 7, and .NET Framework 4 programs (BE CAREFUL WITH THIS. If you just do the correct files, then you will be fine. I uninstalled other Microsoft programs and ran into several registry errors...).
Reinstall Microsoft Windows SDK for Windows 7 and .NET Framework 4.
Reinstall Microsoft Visual C++ 2010 Redistributable Package (x64).
Reinstall Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1.
Reinstall Python 3.4.0 (to C:\Python34).
Add C:\Python34 and C:\Python34\Scripts to the PATH system variable.
Download H5py from this website here (specifically h5py-2.6.0-cp34-cp34m-win_amd64.whl).
Run pip3 install h5py-2.6.0-cp34-cp34m-win_amd64.whl. This will generate the following:
Processing c:\python34\h5py-2.6.0-cp34-cp34m-win_amd64.whl
Collecting numpy>=1.6.1 (from h5py==2.6.0)
Downloading numpy-1.11.1-cp34-none-win_amd64.whl (7.4MB)
100% |################################| 7.4MB 46kB/s
Collecting six (from h5py==2.6.0)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: numpy, six, h5py
Successfully installed h5py-2.6.0 numpy-1.11.1 six-1.10.0
Next I ran my program to make sure the import worked correctly, and it did! I hope this helps anyone trying this, just be VERY careful with step (2).
I had the same problem trying to install from the command prompt on my Windows 10 machine. To bypass this error:
I manually downloaded the application from website
Extracted it to my C:/"Path where you want to setup the application"
Went back into command prompt open up the path where you just extracted the application
Run the setup file in the downloaded package from there.
It worked me!!!
Cheers
I am trying to install OpenBLAS.I have created directory
mkdir -p /usr/local/OpenBLAS
Then I follow the tutorial instructions:
make PREFIX=$HOME/usr/local/OpenBLAS install
make -j 2 -f Makefile.install install
make[1]: Entering directory `/home/milenko/OpenBLAS'
Generating openblas_config.h in /root/usr/local/OpenBLAS/include
Generating f77blas.h in /root/usr/local/OpenBLAS/include
Generating cblas.h in /root/usr/local/OpenBLAS/include
Copying LAPACKE header files to /root/usr/local/OpenBLAS/include
Copying the static library to /root/usr/local/OpenBLAS/lib
Copying the shared library to /root/usr/local/OpenBLAS/lib
Generating OpenBLASConfig.cmake in /root/usr/local/OpenBLAS/lib/cmake/openblas
Install OK!
make[1]: Leaving directory `/home/milenko/OpenBLAS'
But usr/local/openBLAS is empty!
The new directory is created in /home/m/OpenBLAS/usr/local/.
Should I only export path to bashrc?Other programs will call OpenBLAS in future,this can cause troubles or not?