New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_librabbitmq.so problem on OS X Lion with versions greater than 0.9.2 #5
Comments
What is the output of pip install? Are you able to do:
from the source code directory? It installs fine here for me on OS X 10.7.4 |
I've attached the pip install log to the email (output.log). The Yeah I don't get any errors on the install, but since I tried to use I also get the same behavior with the import if I do a python setup.py On Tue, Jun 19, 2012 at 1:42 AM, Ask Solem Hoel
|
In case the attachments didn't make it, here is the pip install librabbitmq==0.9.6 one: Downloading/unpacking librabbitmq==0.9.6
Installing collected packages: librabbitmq
Successfully installed librabbitmq |
Here is the python setup.py build output: running build
|
Could you try compiling it with:
Weirdly, I also have 10.7.4 but my Python version is 2.7.2, is this the system version? |
Yeah 2.7.1 is what came with my install of Lion. Here are the three outputs. 1.) Import from python after install This time I ran inside virtualenv again, but the output of the ve and Also, I create my virtualenv with the --no-site-packages parameter. Thanks again for all your help, Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
$ MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py build
$ MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install Installed /Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg On Sat, Jun 23, 2012 at 6:08 AM, Ask Solem Hoel
|
Can you try to install 0.9.8 up on PyPI now?
(it seems that the reason was that the inline hack I use defines the functions 'extern' on non-gcc compilers, |
I'm still getting the same problem with this version as well. I've $ pip install -U librabbitmq
Installing collected packages: librabbitmq
Successfully installed librabbitmq
On Sat, Jun 23, 2012 at 11:37 AM, Ask Solem Hoel
|
hehe, ok, thank you for your patience! I just uploaded 0.9.9 to PyPI, could you try that?
as always |
Awesome! It works, thank you. |
When I try to install a version of librabbitmq greater than 0.9.2 on my Mac (OS X 10.7.4) using PIP, the library installs fine, but when I try to import it in a python program or the interpreter, I get the following error.
program:
Traceback (most recent call last):
File "test.py", line 4, in
import rabbit
File "/Users/phadviger/code/librabbitmq/rabbit.py", line 2, in
import librabbitmq
File "/Library/Python/2.7/site-packages/librabbitmq/init.py", line 4, in
import _librabbitmq
ImportError: dlopen(/Library/Python/2.7/site-packages/_librabbitmq.so, 2): Symbol not found: _PyDict_ToAMQTable
Referenced from: /Library/Python/2.7/site-packages/_librabbitmq.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/_librabbitmq.so
interpreter:
$ python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Version 0.9.2 installs and works flawlessly though, but I would really like to use some of the changes in the newer versions.
Let me know if you need additional info.
The text was updated successfully, but these errors were encountered: