Giter Club home page Giter Club logo

Comments (18)

SandyWalsh avatar SandyWalsh commented on May 28, 2024

Seeing the same problem on 12.04 & python 2.7, but debian squeeze with python 2.6 seems fine. The _librabbitmq.so isn't getting installed nor the librabbitmq directory in dist-packages.

from librabbitmq.

swat30 avatar swat30 commented on May 28, 2024

I got this working last week. Trying to remember exactly how I did it, but it involved compiling from source and then pip installing.

from librabbitmq.

ask avatar ask commented on May 28, 2024

It's hard for me to debug this since I'm not able to reproduce :(

@SandyWalsh:

Are you able to install from source?

$ wget http://pypi.python.org/packages/source/l/librabbitmq/librabbitmq-1.0.1.tar.gz
$ tar xvfz librabbitmq-1.0.1.tar.gz
$ cd librabbitmq-1.0.1
$ python setup.py install

If not, could you add some debugging print statements to the setup.py file?
Especially when it runs configure, and when it adds stuff to compile.

Also, are you sure you have the build-essentials and python headers installed? (gcc, python-dev, etc)?

@23doors, The version of rabbitmq-server should not matter, the py-librabbitmq distrobution
ships with its own copy of the rabbitmq-c client, it automatically calls configure and compiles it for you
(that's what it should do, but you can imagine that this is prone to errors)

from librabbitmq.

23doors avatar 23doors commented on May 28, 2024

Silly me. make wasn't installed. Feel free to close, although it should output some errors, not just silently fail. I guess others had more or less same situation.

from librabbitmq.

xando avatar xando commented on May 28, 2024

This issue still exists for me. I have make installed.

pip install works fine, but everything else not (source and easy_install)

from librabbitmq.

tesh11 avatar tesh11 commented on May 28, 2024

I had the same problem where make wasn't installed. It just succeeded silently without it and once I installed make it worked just fine.

from librabbitmq.

xando avatar xando commented on May 28, 2024

@tesh11 what you mean by make installed, what is your os? Also (i have make installed)

/tmp > make
make: *** No targets specified and no makefile found.  Stop.

I'm on ubuntu 12.10 64

from librabbitmq.

ask avatar ask commented on May 28, 2024

I just modified it so that it raises an exception if make is not available

from librabbitmq.

23doors avatar 23doors commented on May 28, 2024

Thanks, that solves this for me. Seems though like @xando is having a different issue.

from librabbitmq.

xando avatar xando commented on May 28, 2024

I think ticket is generic enough, I've downloaded latest master, this what I've got

$ wget https://github.com/celery/librabbitmq/archive/master.zip
$ unzip master.zip
$ python setup.py install


running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing librabbitmq.egg-info/PKG-INFO
writing top-level names to librabbitmq.egg-info/top_level.txt
writing dependency_links to librabbitmq.egg-info/dependency_links.txt
reading manifest file 'librabbitmq.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'tests'
warning: no files found matching '*' under directory 'clib'
warning: no files found matching '*' under directory 'rabbitmq-codegen'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'
writing manifest file 'librabbitmq.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building '_librabbitmq' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.linux-x86_64-2.7/Modules/_librabbitmq/connection.o
In file included from /usr/include/python2.7/Python.h:8:0,
                 from Modules/_librabbitmq/connection.h:4,
                 from Modules/_librabbitmq/connection.c:13:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
In file included from /usr/include/stdlib.h:25:0,
                 from Modules/_librabbitmq/connection.c:1:
/usr/include/features.h:215:0: note: this is the location of the previous definition
Modules/_librabbitmq/connection.c:700:26: warning: ‘PyDict_ToAMQTable’ is static but used in inline function ‘PyDict_to_basic_properties’ which is not static [enabled by default]
Modules/_librabbitmq/connection.c:480:17: warning: ‘AMQTable_toPyDict’ is static but used in inline function ‘basic_properties_to_PyDict’ which is not static [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/usr/include/python2.7 -c clib/librabbitmq/amqp_api.c -o build/temp.linux-x86_64-2.7/clib/librabbitmq/amqp_api.o
gcc: error: clib/librabbitmq/amqp_api.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4

from librabbitmq.

ask avatar ask commented on May 28, 2024

@xando If you're going to install from source you have to execute make build in the librabbitmq source directory first to initialize git submodules and such

from librabbitmq.

xando avatar xando commented on May 28, 2024

@ask thanks, works that way. but still having easy_install issue #21

I'm using pip, (every day usage), but the project that I'm working on right now is using buildout and from reason wont install in that way. Using pip recipe also fails for this package.

from librabbitmq.

rmihael avatar rmihael commented on May 28, 2024

I'm also having buildout issue with librabbitmq-1.0.3. Package installs itself properly via pip, but fails to do so via buildout. Here's the messages I'm getting:

Getting distribution for 'librabbitmq==1.0.3'.
warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:262:1: warning: unused function 'amqp_encode_8' [-Wunused-function]
DECLARE_CODEC_BASE_TYPE(8, (uint8_t), (uint8_t))
^
clib/librabbitmq/amqp_private.h:195:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_encode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:175:1: note: expanded from here
amqp_encode_8
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:262:1: warning: unused function 'amqp_decode_8' [-Wunused-function]
clib/librabbitmq/amqp_private.h:209:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_decode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:179:1: note: expanded from here
amqp_decode_8
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:263:1: warning: unused function 'amqp_encode_16' [-Wunused-function]
DECLARE_CODEC_BASE_TYPE(16, htons, ntohs)
^
clib/librabbitmq/amqp_private.h:195:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_encode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:193:1: note: expanded from here
amqp_encode_16
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:263:1: warning: unused function 'amqp_decode_16' [-Wunused-function]
clib/librabbitmq/amqp_private.h:209:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_decode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:197:1: note: expanded from here
amqp_decode_16
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:264:1: warning: unused function 'amqp_encode_32' [-Wunused-function]
DECLARE_CODEC_BASE_TYPE(32, htonl, ntohl)
^
clib/librabbitmq/amqp_private.h:195:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_encode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:211:1: note: expanded from here
amqp_encode_32
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:264:1: warning: unused function 'amqp_decode_32' [-Wunused-function]
clib/librabbitmq/amqp_private.h:209:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_decode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:215:1: note: expanded from here
amqp_decode_32
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:265:1: warning: unused function 'amqp_encode_64' [-Wunused-function]
DECLARE_CODEC_BASE_TYPE(64, htonll, ntohll)
^
clib/librabbitmq/amqp_private.h:195:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_encode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:229:1: note: expanded from here
amqp_encode_64
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:265:1: warning: unused function 'amqp_decode_64' [-Wunused-function]
clib/librabbitmq/amqp_private.h:209:18: note: expanded from macro 'DECLARE_CODEC_BASE_TYPE'
_AMQP_INLINE int amqp_decode_##bits(amqp_bytes_t encoded, size_t *offset,   \
                 ^
<scratch space>:233:1: note: expanded from here
amqp_decode_64
^
In file included from clib/librabbitmq/amqp_api.c:37:
clib/librabbitmq/amqp_private.h:267:18: warning: unused function 'amqp_encode_bytes' [-Wunused-function]
_AMQP_INLINE int amqp_encode_bytes(amqp_bytes_t encoded, size_t *offset,
                 ^
clib/librabbitmq/amqp_private.h:280:18: warning: unused function 'amqp_decode_bytes' [-Wunused-function]
_AMQP_INLINE int amqp_decode_bytes(amqp_bytes_t encoded, size_t *offset,
                 ^
10 warnings generated.
clib/librabbitmq/amqp_mem.c:46:10: error: use of undeclared identifier 'VERSION'
  return VERSION; /* defined in config.h */
         ^
1 error generated.
error: Setup script exited with error: command 'cc' failed with exit status 1
An error occurred when trying to install librabbitmq 1.0.3. Look above this message for any errors that were output by easy_install.
While:
  Installing common-eggs.
  Getting distribution for 'librabbitmq==1.0.3'.
Error: Couldn't install: librabbitmq 1.0.3

from librabbitmq.

patroqueeet avatar patroqueeet commented on May 28, 2024

Same occurs for me when using buildout on Ubuntu 12.40

from librabbitmq.

ask avatar ask commented on May 28, 2024

The output should also include the line:

- configure rabbitmq-c

Do you not see that there? Does buildout not call setup.py build ?

from librabbitmq.

agriffis avatar agriffis commented on May 28, 2024

This appears to be the same as #61

from librabbitmq.

iAnanich avatar iAnanich commented on May 28, 2024

2020 already, still an open issue?
make is installed, but have gcc related error

from librabbitmq.

mrudang-vora avatar mrudang-vora commented on May 28, 2024

Hello All,
Was trying to install librabbitmq using following steps:

wget https://files.pythonhosted.org/packages/f4/4e/8f8bf33d44f3441d6f6c29b299cc847570b2c864bd8d2f9871aa6c03b73e/librabbitmq-2.0.0.tar.gz
tar xvfz librabbitmq-2.0.0.tar.gz
cd librabbitmq-2.0.0
python setup.py build

Had similar issue while building the setup.py file

python setup.py build running build running build_py running build_ext building '_librabbitmq' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DHAVE_CONFIG_H -fPIC -Irabbitmq-c/librabbitmq -Irabbitmq-c -I/usr/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.linux-x86_64-2.7/Modules/_librabbitmq/connection.o In file included from Modules/_librabbitmq/connection.c:11:0: Modules/_librabbitmq/connection.h:5:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1

Resolved the same by installing python-devel package.
yum install python27-devel

Reference link: https://stackoverflow.com/questions/15631135/python-h-missing-from-ubuntu-12-04

Hope, it would help someone.

from librabbitmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.