[rabbitmq-discuss] Errors while running examples from RabbitMQ tutorial

Marek Majkowski majek04 at gmail.com
Fri Dec 9 12:11:01 GMT 2011


On Fri, Dec 9, 2011 at 12:05, Michael Morrison <mwmorrison93 at gmail.com> wrote:
> Nevermind Marek, I see why it doesn't work. Let me ask you i don't have pip
> set up on my machine, how do i find the gzip file with the correct version
> of pika that I need?

I strongly suggest getting pip working. Have you tried running:
  sudo apt-get install python-pip

Or:
  easy_install pip

All this is described in first tutorial:
  http://www.rabbitmq.com/tutorials/tutorial-one-python.html

Installing python dependencies via pip is rather a standard practice
these days, so I strongly suggest trying to get it working.

A link to a tarball is quite easy to find on pypi:
 http://pypi.python.org/pypi/pika

Marek


>
> On Fri, Dec 9, 2011 at 4:02 AM, Michael Morrison <mwmorrison93 at gmail.com>
> wrote:
>>
>> Sorry i don't follow, can you explain to me why it wouldn't work? When I
>> changed the value it did create an egg for 0.9.5 under my
>>  /usr/local/lib/python2.7/site-packages directory. I removed the 0.9.6_pre
>> egg so i'm pretty sure i'm referencing the correct package now. If i remove
>> the 0.9.5 egg from the site-packages directory i get an error message saying
>> that the pika package could not be found if i replace it then i get the same
>> error message regarding the 'sanitize' attribute. Thanks marek.
>>
>> Mike
>>
>>
>> On Fri, Dec 9, 2011 at 3:57 AM, Marek Majkowski <majek04 at gmail.com> wrote:
>>>
>>> On Fri, Dec 9, 2011 at 11:48, Michael Morrison <mwmorrison93 at gmail.com>
>>> wrote:
>>> > Thanks again, but i went and checked the setup.py file and noticed that
>>> > it
>>> > was set to install version 0.9.6_pre, i changed the value to 0.9.5 and
>>> > reinstalled. I removed the 0.9.6 packages but i'm still getting the
>>> > same
>>> > error. Here's the output of the last install that i just ran. Really
>>> > appreciate the help!
>>>
>>> Altering the number in `setup.py` won't solve the problem.
>>> You're using pika 0.9.6 and the tutorials are written for pika 0.9.5.
>>>
>>> Try running:   pip install pika==0.9.5
>>>
>>> Marek
>>
>>
>


More information about the rabbitmq-discuss mailing list