Trouble installing zerorpc python

378 views
Skip to first unread message

M S Vishwanath Bhat

unread,
Mar 7, 2014, 11:53:53 AM3/7/14
to zer...@googlegroups.com
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

François-Xavier Bourlet

unread,
Mar 7, 2014, 12:56:01 PM3/7/14
to zer...@googlegroups.com
Hi,

Looks to me that you are having trouble with the compilation of both
libgevent and libzmq!
You can seek more specific help on both projects at
http://www.gevent.org/ and http://zeromq.org/.

I am kinda curious, what kind of system are you using? I never saw
that many weird errors when trying to build zmq! Could it me that you
got a corrupted archives?

Try something like: "pip install gevent"
You need libev-dev to be installed for gevent btw, that could be the
reason of some compilation errors I suspect.

Best,
fx
> --
> You received this message because you are subscribed to the Google Groups
> "zerorpc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to zerorpc+u...@googlegroups.com.
> To post to this group, send email to zer...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/zerorpc/51466354-a69d-447e-9efd-3739e32c45b6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

M S Vishwanath Bhat

unread,
Mar 7, 2014, 3:00:50 PM3/7/14
to zer...@googlegroups.com
On 7 March 2014 23:26, François-Xavier Bourlet <bom...@gmail.com> wrote:
Hi,

Looks to me that you are having trouble with the compilation of both
libgevent and libzmq!
You can seek more specific help on both projects at
http://www.gevent.org/ and http://zeromq.org/.

I am kinda curious, what kind of system are you using? I never saw
that many weird errors when trying to build zmq! Could it me that you
got a corrupted archives?

Try something like: "pip install gevent"
You need libev-dev to be installed for gevent btw, that could be the
reason of some compilation errors I suspect.
Thanks fx for answering.

I had done the source install of zeromq myself manually before. Now I also install libev-devel using yum and tried installing gevent


And now I get this


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-mmki6c-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)


Do you think there's some issue with pip I am using? My systems are RHEL based and are *not* pristine. I have done lot of things with them and I suspect that can be problem as well...

How do I know my archives are corrupted?

BTW it gets installed in Fedora machine without any issue...

Thanks,

MS
You received this message because you are subscribed to a topic in the Google Groups "zerorpc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zerorpc/ks6pMsnJOug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zerorpc+u...@googlegroups.com.

To post to this group, send email to zer...@googlegroups.com.

François-Xavier Bourlet

unread,
Mar 7, 2014, 3:19:27 PM3/7/14
to zer...@googlegroups.com
For the archives to be corrupted: this was only a vague supposition, I
expect pip and even tar.gz to check the consistency anyway.

Maybe your version of gcc and python are too old, which could explain
the unicode errors for python, and the weird gcc errors.
> https://groups.google.com/d/msgid/zerorpc/CA%2BH6b3OfV%3DtHVpzbzFg96aJqCtWMsaBAhuNRz1FOW3KOjhU-ZQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages