前言:在一台Ubuntu的服务器上安装Read Until时,报错,一直找不到解决方法。
命令:
pip install git+https://github.com/LooseLab/ru@master -i https://pypi.doubanio.com/simple/
报错:
Building wheel for pyzmq (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/minit/software/ReadUntil/read_until/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a1gyzptl/pyzmq/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a1gyzptl/pyzmq/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-o4mk9ome
cwd: /tmp/pip-install-a1gyzptl/pyzmq/
Complete output (272 lines):
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
Generating grammar tables from /usr/lib/python3.5/lib2to3/Grammar.txt
Generating grammar tables from /usr/lib/python3.5/lib2to3/PatternGrammar.txt
creating build
creating build/lib.linux-aarch64-3.5
creating build/lib.linux-aarch64-3.5/zmq
copying zmq/error.py -> build/lib.linux-aarch64-3.5/zmq
copying zmq/decorators.py -> build/lib.linux-aarch64-3.5/zmq
copying zmq/_future.py -> build/lib.linux-aarch64-3.5/zmq
copying zmq/__init__.py -> build/lib.linux-aarch64-3.5/zmq
creating build/lib.linux-aarch64-3.5/zmq/backend
copying zmq/backend/select.py -> build/lib.linux-aarch64-3.5/zmq/backend
copying zmq/backend/__init__.py -> build/lib.linux-aarch64-3.5/zmq/backend
creating build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/__init__.py -> build/lib.linux-aarch64-3.5/zmq/backend/cython
creating build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/socket.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/constants.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/error.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/_cffi.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/utils.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/context.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/message.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/_poll.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/devices.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/__init__.py -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
creating build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_auth.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_z85.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_zmqstream.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_pubsub.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_constants.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_cffi_backend.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_pair.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_reqrep.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_error.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_imports.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_etc.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_version.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_future.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_poll.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_log.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_socket.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_ioloop.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_retry_eintr.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_monitor.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_context.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_device.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_message.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_ssh.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/__init__.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_decorators.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_security.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_multipart.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_win32_shim.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_includes.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_monqueue.py -> build/lib.linux-aarch64-3.5/zmq/tests
copying zmq/tests/test_draft.py -> build/lib.linux-aarch64-3.5/zmq/tests
creating build/lib.linux-aarch64-3.5/zmq/tests/asyncio
copying zmq/tests/asyncio/test_asyncio.py -> build/lib.linux-aarch64-3.5/zmq/tests/asyncio
copying zmq/tests/asyncio/_test_asyncio.py -> build/lib.linux-aarch64-3.5/zmq/tests/asyncio
copying zmq/tests/asyncio/__init__.py -> build/lib.linux-aarch64-3.5/zmq/tests/asyncio
creating build/lib.linux-aarch64-3.5/zmq/auth
copying zmq/auth/ioloop.py -> build/lib.linux-aarch64-3.5/zmq/auth
copying zmq/auth/base.py -> build/lib.linux-aarch64-3.5/zmq/auth
copying zmq/auth/thread.py -> build/lib.linux-aarch64-3.5/zmq/auth
copying zmq/auth/certs.py -> build/lib.linux-aarch64-3.5/zmq/auth
copying zmq/auth/__init__.py -> build/lib.linux-aarch64-3.5/zmq/auth
creating build/lib.linux-aarch64-3.5/zmq/auth/asyncio
copying zmq/auth/asyncio/__init__.py -> build/lib.linux-aarch64-3.5/zmq/auth/asyncio
creating build/lib.linux-aarch64-3.5/zmq/eventloop
copying zmq/eventloop/_deprecated.py -> build/lib.linux-aarch64-3.5/zmq/eventloop
copying zmq/eventloop/ioloop.py -> build/lib.linux-aarch64-3.5/zmq/eventloop
copying zmq/eventloop/zmqstream.py -> build/lib.linux-aarch64-3.5/zmq/eventloop
copying zmq/eventloop/future.py -> build/lib.linux-aarch64-3.5/zmq/eventloop
copying zmq/eventloop/__init__.py -> build/lib.linux-aarch64-3.5/zmq/eventloop
creating build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/ioloop.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/stack_context.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/concurrent.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/log.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/util.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/__init__.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado
creating build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/interface.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/windows.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/__init__.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/auto.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/posix.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/common.py -> build/lib.linux-aarch64-3.5/zmq/eventloop/minitornado/platform
creating build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/jsonapi.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/interop.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/constant_names.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/monitor.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/win32.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/strtypes.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/sixcerpt.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/garbage.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/__init__.py -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/z85.py -> build/lib.linux-aarch64-3.5/zmq/utils
creating build/lib.linux-aarch64-3.5/zmq/devices
copying zmq/devices/monitoredqueue.py -> build/lib.linux-aarch64-3.5/zmq/devices
copying zmq/devices/proxydevice.py -> build/lib.linux-aarch64-3.5/zmq/devices
copying zmq/devices/basedevice.py -> build/lib.linux-aarch64-3.5/zmq/devices
copying zmq/devices/__init__.py -> build/lib.linux-aarch64-3.5/zmq/devices
copying zmq/devices/monitoredqueuedevice.py -> build/lib.linux-aarch64-3.5/zmq/devices
creating build/lib.linux-aarch64-3.5/zmq/log
copying zmq/log/handlers.py -> build/lib.linux-aarch64-3.5/zmq/log
copying zmq/log/__init__.py -> build/lib.linux-aarch64-3.5/zmq/log
creating build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/socket.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/stopwatch.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/frame.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/poll.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/attrsettr.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/constants.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/context.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/tracker.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/__init__.py -> build/lib.linux-aarch64-3.5/zmq/sugar
copying zmq/sugar/version.py -> build/lib.linux-aarch64-3.5/zmq/sugar
creating build/lib.linux-aarch64-3.5/zmq/ssh
copying zmq/ssh/tunnel.py -> build/lib.linux-aarch64-3.5/zmq/ssh
copying zmq/ssh/__init__.py -> build/lib.linux-aarch64-3.5/zmq/ssh
copying zmq/ssh/forward.py -> build/lib.linux-aarch64-3.5/zmq/ssh
creating build/lib.linux-aarch64-3.5/zmq/green
copying zmq/green/poll.py -> build/lib.linux-aarch64-3.5/zmq/green
copying zmq/green/core.py -> build/lib.linux-aarch64-3.5/zmq/green
copying zmq/green/__init__.py -> build/lib.linux-aarch64-3.5/zmq/green
copying zmq/green/device.py -> build/lib.linux-aarch64-3.5/zmq/green
creating build/lib.linux-aarch64-3.5/zmq/green/eventloop
copying zmq/green/eventloop/ioloop.py -> build/lib.linux-aarch64-3.5/zmq/green/eventloop
copying zmq/green/eventloop/zmqstream.py -> build/lib.linux-aarch64-3.5/zmq/green/eventloop
copying zmq/green/eventloop/__init__.py -> build/lib.linux-aarch64-3.5/zmq/green/eventloop
creating build/lib.linux-aarch64-3.5/zmq/asyncio
copying zmq/asyncio/__init__.py -> build/lib.linux-aarch64-3.5/zmq/asyncio
copying zmq/backend/cython/checkrc.pxd -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/socket.pxd -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/context.pxd -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/libzmq.pxd -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/message.pxd -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/constants.pxi -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cython/constant_enums.pxi -> build/lib.linux-aarch64-3.5/zmq/backend/cython
copying zmq/backend/cffi/_cdefs.h -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/backend/cffi/_verify.c -> build/lib.linux-aarch64-3.5/zmq/backend/cffi
copying zmq/utils/buffers.pxd -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/getpid_compat.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/zmq_compat.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/zmq_constants.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/mutex.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/ipcmaxlen.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/utils/pyversion_compat.h -> build/lib.linux-aarch64-3.5/zmq/utils
copying zmq/devices/monitoredqueue.pxd -> build/lib.linux-aarch64-3.5/zmq/devices
running build_ext
running configure
Did not find libzmq via pkg-config.
{'runtime_library_dirs': ['/home/minit/software/ReadUntil/read_until/lib'], 'extra_link_args': [], 'include_dirs': ['/home/minit/software/ReadUntil/read_until/include'], 'libraries': ['zmq'], 'library_dirs': ['/home/minit/software/ReadUntil/read_until/lib']}
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/minit/software/ReadUntil/read_until/include -c build/temp.linux-aarch64-3.5/scratch/check_sys_un.c -o build/temp.linux-aarch64-3.5/scratch/check_sys_un.o
aarch64-linux-gnu-gcc -pthread build/temp.linux-aarch64-3.5/scratch/check_sys_un.o -L/home/minit/software/ReadUntil/read_until/lib -Wl,--enable-new-dtags,-R/home/minit/software/ReadUntil/read_until/lib -o build/temp.linux-aarch64-3.5/scratch/check_sys_un
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:
creating build/temp.linux-aarch64-3.5/scratch/tmp
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -c /tmp/timer_createygudb32e.c -o build/temp.linux-aarch64-3.5/scratch/tmp/timer_createygudb32e.o
/tmp/timer_createygudb32e.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
/tmp/timer_createygudb32e.c: In function ‘main’:
/tmp/timer_createygudb32e.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
timer_create();
^
aarch64-linux-gnu-gcc -pthread build/temp.linux-aarch64-3.5/scratch/tmp/timer_createygudb32e.o -o build/temp.linux-aarch64-3.5/scratch/a.out
build/temp.linux-aarch64-3.5/scratch/tmp/timer_createygudb32e.o: In function `main':
/tmp/timer_createygudb32e.c:2: undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/minit/software/ReadUntil/read_until/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-aarch64-3.5/scratch/vers.c -o build/temp.linux-aarch64-3.5/scratch/vers.o
build/temp.linux-aarch64-3.5/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
Failed with default libzmq, trying again with /usr/local
{'runtime_library_dirs': ['/usr/local/lib'], 'extra_link_args': [], 'include_dirs': ['/usr/local/include'], 'libraries': ['zmq'], 'library_dirs': ['/usr/local/lib']}
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir: /usr/local
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -c /tmp/timer_create6rasmkb9.c -o build/temp.linux-aarch64-3.5/scratch/tmp/timer_create6rasmkb9.o
/tmp/timer_create6rasmkb9.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
/tmp/timer_create6rasmkb9.c: In function ‘main’:
/tmp/timer_create6rasmkb9.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
timer_create();
^
Assembler messages:
Fatal error: can't create build/temp.linux-aarch64-3.5/scratch/tmp/timer_create6rasmkb9.o: No such file or directory
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-aarch64-3.5/scratch/vers.c -o build/temp.linux-aarch64-3.5/scratch/vers.o
build/temp.linux-aarch64-3.5/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
************************************************
Warning: Couldn't find an acceptable libzmq on the system.
If you expected pyzmq to link against an installed libzmq, please check to make sure:
* You have a C compiler installed
* A development version of Python is installed (including headers)
* A development version of ZMQ >= 3.2 is installed (including headers)
* If ZMQ is not in a default location, supply the argument --zmq=
* If you did recently install ZMQ to a default location,
try rebuilding the ld cache with `sudo ldconfig`
or specify zmq's location with `--zmq=/usr/local`
You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:
`--zmq=bundled`
I will now try to build libzmq as a Python extension
unless you interrupt me (^C) in the next 10 seconds...
1...
************************************************
Using bundled libzmq
already have bundled/zeromq
attempting ./configure to generate platform.hpp
Warning: failed to configure libzmq:
b'/bin/sh: 1: ./configure: not found\n'
staging platform.hpp from: /tmp/pip-install-a1gyzptl/pyzmq/buildutils/include_linux
************************************************
checking for timer_create
creating build/temp.linux-aarch64-3.5/tmp
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -c /tmp/timer_createo6ntyfdz.c -o build/temp.linux-aarch64-3.5/tmp/timer_createo6ntyfdz.o
/tmp/timer_createo6ntyfdz.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
/tmp/timer_createo6ntyfdz.c: In function ‘main’:
/tmp/timer_createo6ntyfdz.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
timer_create();
^
aarch64-linux-gnu-gcc -pthread build/temp.linux-aarch64-3.5/tmp/timer_createo6ntyfdz.o -o build/temp.linux-aarch64-3.5/a.out
build/temp.linux-aarch64-3.5/tmp/timer_createo6ntyfdz.o: In function `main':
/tmp/timer_createo6ntyfdz.c:2: undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
no timer_create, linking librt
************************************************
building 'zmq.libzmq' extension
creating build/temp.linux-aarch64-3.5/buildutils
creating build/temp.linux-aarch64-3.5/bundled
creating build/temp.linux-aarch64-3.5/bundled/zeromq
creating build/temp.linux-aarch64-3.5/bundled/zeromq/src
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -Ibundled/zeromq/include -Ibundled -I/home/minit/software/ReadUntil/read_until/include -I/usr/include/python3.5m -c buildutils/initlibzmq.c -o build/temp.linux-aarch64-3.5/buildutils/initlibzmq.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -Ibundled/zeromq/include -Ibundled -I/home/minit/software/ReadUntil/read_until/include -I/usr/include/python3.5m -c bundled/zeromq/src/curve_client.cpp -o build/temp.linux-aarch64-3.5/bundled/zeromq/src/curve_client.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from bundled/zeromq/src/options.hpp:38:0,
from bundled/zeromq/src/own.hpp:37,
from bundled/zeromq/src/session_base.hpp:36,
from bundled/zeromq/src/curve_client.cpp:36:
bundled/zeromq/src/atomic_ptr.hpp: In member function ‘int zmq::atomic_value_t::load() const’:
bundled/zeromq/src/atomic_ptr.hpp:269:46: error: binding ‘const zmq::mutex_t’ to reference of type ‘zmq::mutex_t&’ discards qualifiers
sync
^
bundled/zeromq/src/atomic_ptr.hpp:116:14: note: initializing argument 4 of ‘void* zmq::atomic_cas(void* volatile*, void*, void*, zmq::mutex_t&)’
inline void *atomic_cas (void *volatile *ptr_,
^
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pyzmq
Running setup.py clean for pyzmq
Building wheel for h5py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/minit/software/ReadUntil/read_until/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a1gyzptl/h5py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a1gyzptl/h5py/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-_q13qoa4
cwd: /tmp/pip-install-a1gyzptl/h5py/
Complete output (104 lines):
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
zip_safe flag not set; analyzing archive contents...
Installed /tmp/pip-install-a1gyzptl/h5py/.eggs/pkgconfig-1.5.1-py3.5.egg
Searching for Cython>=0.23
Reading https://pypi.python.org/simple/Cython/
Best match: Cython 3.0a5
Downloading https://files.pythonhosted.org/packages/96/19/bd4cfee7d3de1f2690b2211696571ae9663f6cea61ade0fc746f250172b9/Cython-3.0a5.tar.gz#sha256=22060abe55a55a59096982f3e81de2dc8f28c29917d20fa5182f49c4530e27ec
Processing Cython-3.0a5.tar.gz
Writing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/setup.cfg
Running Cython-3.0a5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-aj3vt_2x/Cython-3.0a5/egg-dist-tmp-e4itblql
Unable to find pgen, not compiling formal grammar.
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Plex/Scanners.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Plex/Actions.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/Scanning.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/Visitor.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/FlowControl.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Runtime/refnanny.pyx because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/FusedNode.py because it changed.
Compiling /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Tempita/_tempita.py because it changed.
[1/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/FlowControl.py
[2/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/FusedNode.py
[3/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/Scanning.py
[4/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Compiler/Visitor.py
[5/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Plex/Actions.py
[6/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Plex/Scanners.py
[7/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Runtime/refnanny.pyx
[8/8] Cythonizing /tmp/easy_install-aj3vt_2x/Cython-3.0a5/Cython/Tempita/_tempita.py
warning: no files found matching 'Doc/*'
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
warning: no files found matching 'pyximport/README'
creating /tmp/pip-install-a1gyzptl/h5py/.eggs/Cython-3.0a5-py3.5-linux-aarch64.egg
Extracting Cython-3.0a5-py3.5-linux-aarch64.egg to /tmp/pip-install-a1gyzptl/h5py/.eggs
Installed /tmp/pip-install-a1gyzptl/h5py/.eggs/Cython-3.0a5-py3.5-linux-aarch64.egg
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.5
creating build/lib.linux-aarch64-3.5/h5py
copying h5py/highlevel.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/__init__.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/ipy_completer.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/version.py -> build/lib.linux-aarch64-3.5/h5py
creating build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/group.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/datatype.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/compat.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/vds.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/base.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/filters.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/attrs.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/dims.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/files.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/selections.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/dataset.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-3.5/h5py/_hl
creating build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5pl.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5p.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dtype.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_group.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5f.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_deprecation.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_threads.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_filters.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dimension_scales.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file_image.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_slicing.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_selections.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attrs_data.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_base.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_completions.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file2.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attrs.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_datatype.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/__init__.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_objects.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attribute_create.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/common.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5t.py -> build/lib.linux-aarch64-3.5/h5py/tests
creating build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/__init__.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
running build_ext
Loading library to get version: libhdf5.so
error: libhdf5.so: cannot open shared object file: No such file or directory
----------------------------------------
ERROR: Failed building wheel for h5py
Running setup.py clean for h5py
Successfully built ru
Failed to build pyzmq h5py
Installing collected packages: progressbar33, pyparsing, packaging, h5py, ont-fast5-api, pyzmq, flatbuffers, pyguppyclient, ru
Running setup.py install for h5py ... error
ERROR: Command errored out with exit status 1:
command: /home/minit/software/ReadUntil/read_until/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a1gyzptl/h5py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a1gyzptl/h5py/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-ykh215za/install-record.txt --single-version-externally-managed --compile --install-headers /home/minit/software/ReadUntil/read_until/include/site/python3.5/h5py
cwd: /tmp/pip-install-a1gyzptl/h5py/
Complete output (64 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.5
creating build/lib.linux-aarch64-3.5/h5py
copying h5py/highlevel.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/__init__.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/ipy_completer.py -> build/lib.linux-aarch64-3.5/h5py
copying h5py/version.py -> build/lib.linux-aarch64-3.5/h5py
creating build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/group.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/datatype.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/compat.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/vds.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/base.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/filters.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/attrs.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/dims.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/files.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/selections.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/dataset.py -> build/lib.linux-aarch64-3.5/h5py/_hl
copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-3.5/h5py/_hl
creating build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5pl.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5p.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dtype.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_group.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5f.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_deprecation.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_threads.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_filters.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dimension_scales.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file_image.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_slicing.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset_swmr.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_selections.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attrs_data.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_base.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_completions.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_file2.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attrs.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_dataset_getitem.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_datatype.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/__init__.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_objects.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_attribute_create.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/common.py -> build/lib.linux-aarch64-3.5/h5py/tests
copying h5py/tests/test_h5t.py -> build/lib.linux-aarch64-3.5/h5py/tests
creating build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
copying h5py/tests/test_vds/__init__.py -> build/lib.linux-aarch64-3.5/h5py/tests/test_vds
running build_ext
Loading library to get version: libhdf5.so
error: libhdf5.so: cannot open shared object file: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: /home/minit/software/ReadUntil/read_until/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a1gyzptl/h5py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a1gyzptl/h5py/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-ykh215za/install-record.txt --single-version-externally-managed --compile --install-headers /home/minit/software/ReadUntil/read_until/include/site/python3.5/h5py Check the logs for full command output.
看上去似乎是pyzmq这个包的问题,但是一直也搜不到有关的解决方法。。。现在这里记录一下吧,唉,人生好难
解决:
原来是因为Read Until软件默认要安装17.1.2版本的pyzmq,同时安装时是登录在虚拟环境中,所以可以自己手动安装:
pip install pyzmq==17.1.2 --target=/home/minit/software/ReadUntil/read_until/lib/python3.5/site-packages/ -i https://pypi.doubanio.com/simple/ --upgrade
其中,--target需要指定位虚拟环境的site-packages文件夹,-i修改了国内pip源,--upgrade是覆盖最新版本并强制安装17.1.2版本。