Hi,
I am a newbie for zerorpc. I came to know about it just today. And I have trouble installing them in my machines.
I have RHEL machine and this is the error I get when I try to do pip install
gevent/gevent.core.c:34070: error: declaration for parameter ‘__pyx_getsets_6gevent_4core_signal’ but no such parameter
gevent/gevent.core.c:33759: error: declaration for parameter ‘__pyx_getsets_6gevent_4core_timer’ but no such parameter
gevent/gevent.core.c:33441: error: declaration for parameter ‘__pyx_getsets_6gevent_4core_io’ but no such parameter
gevent/gevent.core.c:32917: error: declaration for parameter ‘__pyx_getsets_6gevent_4core_callback’ but no such parameter
gevent/gevent.core.c:45523: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'
), __file__, 'exec'))" install --record /tmp/pip-FZQy5Q-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/gevent
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 78: ordinal not in range(128)
I didn't find convincing answers over net for the possible cause of the issue. So I thought installing from git head
And then I see this error.
Warning: Failed to build or run libzmq detection test.
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 >= 2.1.4 is installed (including headers)
* If ZMQ is not in a default location, supply the argument --zmq=<path>
* 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:
/bin/sh: ./configure: No such file or directory
staging platform.hpp from: /tmp/easy_install-1dHrQ8/pyzmq-13.1.0/buildutils/include_linux
build/temp.linux-x86_64-2.6/tmp/easy_install-1dHrQ8/pyzmq-13.1.0/temp/timer_createfzcpbu.o: In function `main':
timer_createfzcpbu.c:(.text+0x15): undefined reference to `timer_create'
collect2: ld returned 1 exit status
************************************************
buildutils/initlibzmq.c:10:20: error: Python.h: No such file or directory
buildutils/initlibzmq.c:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Methods’
buildutils/initlibzmq.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initlibzmq’
error: Setup script exited with error: command 'gcc' failed with exit status 1
So I tried to install both the dependencies myself and then tried again. But still I get the same error.
Any help is appreciated.
-MS