thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Van den Bergh <kris.vandenbe...@gmail.com>
Subject Re: Python Server: no module named thrift.Thrift
Date Sat, 03 Apr 2010 07:25:13 GMT
Ok apparently the server starts but now I am not able to access it from
within my browser, localhost:9090

So far the tutorial hasn't worked for me.

If I try to run ./PhpClient --http I do not get any output!

What could be going wrong?

Thanks again.

On Sat, Apr 3, 2010 at 9:05 AM, Kris Van den Bergh <
kris.vandenbergh@gmail.com> wrote:

> That works flawlessly! Thanks Manuel.
>
> 2010/4/3 Manuel Vázquez Acosta <mva.led@gmail.com>
>
> Hi Kris,
>>
>> I had to go to lib/py and run:
>>
>> sudo python setup.py install
>>
>> to install the thrift package in python2.6 dist-packages.
>>
>> Hope this helps,
>> manuel.
>>
>> On Fri, Apr 2, 2010 at 2:57 PM, Kris Van den Bergh <
>> kris.vandenbergh@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > I'm trying to run the Python server. Here's what I do and what I get:
>> >
>> > ./PythonServer.py
>> > Traceback (most recent call last):
>> >  File "./PythonServer.py", line 6, in <module>
>> >    from tutorial import Calculator
>> >  File "../gen-py/tutorial/Calculator.py", line 11, in <module>
>> >    from thrift.Thrift import *
>> > ImportError: No module named thrift.Thrift
>> >
>> > I have tried to add the following to my path:
>> >
>> > import sys
>> >
>> >
>> sys.path.append('/Users/krisvandenbergh/Desktop/scripting/fb/thrift/tutorial/gen-py')
>> >
>> > Unfortunately I still get the error. What's going wrong?
>> > Could some please help me!
>> >
>> > Thanks.
>> >
>> >
>> >
>> > Regards,
>> > Kris
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message