You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by mo...@gmail.com on 2009/08/25 06:20:26 UTC

lazyboy does not work with cassandra

 lazyboy does not work with cassandra
python columnfamily.pyTraceback (most recent call last):
  File "columnfamily.py", line 18, in <module>
    from lazyboy import *
  File "/work/dn/lazyboy/supercolumn.py", line 11, in <module>
    from cassandra.ttypes import SuperColumnPath
ImportError: cannot import name SuperColumnPath


Any ideas on how to make this work?
Thanks

Re: lazyboy does not work with cassandra

Posted by Drew Schleck <dr...@gmail.com>.
On Tue, Aug 25, 2009 at 02:04, <mo...@gmail.com> wrote:
> python a.py
> Traceback (most recent call last):
>  File "a.py", line 3, in <module>
>    print cassandra.ttypes.Column().__hash__()
> AttributeError: Column instance has no attribute '__hash__'

This is totally outside my (limited) understanding of Python and I
cannot help you. My Python enviroment was setup by Pylons but I doubt
that would change anything.

Good luck!

Drew

Re: lazyboy does not work with cassandra

Posted by mo...@gmail.com.
drewcan you give the steps on how you set your environment up
ie how did u set up cassandra
thrift, and lazyboy
maybe giving the instructions in lazyboy would help?

On Mon, Aug 24, 2009 at 11:51 PM, Drew Schleck <dr...@gmail.com>wrote:

> Hi,
>  I can't reproduce this with Python 2.6.2, the latest Thrift
> interface, and commit 575c5f3057450e22ec6503ea1b1cb467616715da of my
> Lazyboy branch. Can you run the following program and tell me if it
> exceptions?
>
> #!/usr/bin/python
> import cassandra.ttypes
> print cassandra.ttypes.Column().__hash__()
>
>  If it does exception I don't know how to fix it and I can't help
> you, my version of Thrift and Python will happily hash that.
>
> Drew
>
> On Mon, Aug 24, 2009 at 21:33, <mo...@gmail.com> wrote:
> > Thanks for the pointer Joe and Arin
> > I now used Drew's new lazyboy
> > Example Code: http://pastie.org/593767
> >
> > Error http://pastie.org/593766
> > That does not work either
> > Git version of cassandra
> > commit dcabc0e3431ccff56b20caef7f7805e49a6aac13
> > Author: Eric Evans <ee...@apache.org>
> > Date:   Thu Aug 20 21:17:59 2009 +0000
> >
> > On Mon, Aug 24, 2009 at 9:29 PM, Joe Stump <jo...@joestump.net> wrote:
> >
> >>
> >> On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:
> >>
> >>  Did you compile the cassandra.thrift file and make sure the generated
> >>> files are in PYTHONPATH?
> >>>
> >>
> >> This is the exact error I got when I attempted to use Ian's 0.3 lazyboy
> >> with a 0.4 version of the Python generated by cassandra.thrift.
> >>
> >> --Joe
> >>
> >
> >
> >
> > --
> > Bidegg worlds best auction site
> > http://bidegg.com
> >
>



-- 
Bidegg worlds best auction site
http://bidegg.com

Re: lazyboy does not work with cassandra

Posted by mo...@gmail.com.
commit c4992f48ce9c26ce4fd028240447b4cbe85ecf26
Author: Jun Rao <ju...@apache.org>
Date:   Mon Aug 24 23:39:27 2009 +0000

    Expose ring map to client for more direct access; patch by junrao;
reviewed

    git-svn-id:
https://svn.apache.org/repos/asf/incubator/cassandra/trunk@80743


On Tue, Aug 25, 2009 at 2:04 AM, <mo...@gmail.com> wrote:

> python a.py
> Traceback (most recent call last):
>   File "a.py", line 3, in <module>
>     print cassandra.ttypes.Column().__hash__()
> AttributeError: Column instance has no attribute '__hash__'
>
>
> On Mon, Aug 24, 2009 at 11:51 PM, Drew Schleck <dr...@gmail.com>wrote:
>
>> Hi,
>>  I can't reproduce this with Python 2.6.2, the latest Thrift
>> interface, and commit 575c5f3057450e22ec6503ea1b1cb467616715da of my
>> Lazyboy branch. Can you run the following program and tell me if it
>> exceptions?
>>
>> #!/usr/bin/python
>> import cassandra.ttypes
>> print cassandra.ttypes.Column().__hash__()
>>
>>  If it does exception I don't know how to fix it and I can't help
>> you, my version of Thrift and Python will happily hash that.
>>
>> Drew
>>
>> On Mon, Aug 24, 2009 at 21:33, <mo...@gmail.com> wrote:
>> > Thanks for the pointer Joe and Arin
>> > I now used Drew's new lazyboy
>> > Example Code: http://pastie.org/593767
>> >
>> > Error http://pastie.org/593766
>> > That does not work either
>> > Git version of cassandra
>> > commit dcabc0e3431ccff56b20caef7f7805e49a6aac13
>> > Author: Eric Evans <ee...@apache.org>
>> > Date:   Thu Aug 20 21:17:59 2009 +0000
>> >
>> > On Mon, Aug 24, 2009 at 9:29 PM, Joe Stump <jo...@joestump.net> wrote:
>> >
>> >>
>> >> On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:
>> >>
>> >>  Did you compile the cassandra.thrift file and make sure the generated
>> >>> files are in PYTHONPATH?
>> >>>
>> >>
>> >> This is the exact error I got when I attempted to use Ian's 0.3 lazyboy
>> >> with a 0.4 version of the Python generated by cassandra.thrift.
>> >>
>> >> --Joe
>> >>
>> >
>> >
>> >
>> > --
>> > Bidegg worlds best auction site
>> > http://bidegg.com
>> >
>>
>
>
>
> --
> Bidegg worlds best auction site
> http://bidegg.com
>



-- 
Bidegg worlds best auction site
http://bidegg.com

Re: lazyboy does not work with cassandra

Posted by mo...@gmail.com.
python a.py
Traceback (most recent call last):
  File "a.py", line 3, in <module>
    print cassandra.ttypes.Column().__hash__()
AttributeError: Column instance has no attribute '__hash__'


On Mon, Aug 24, 2009 at 11:51 PM, Drew Schleck <dr...@gmail.com>wrote:

> Hi,
>  I can't reproduce this with Python 2.6.2, the latest Thrift
> interface, and commit 575c5f3057450e22ec6503ea1b1cb467616715da of my
> Lazyboy branch. Can you run the following program and tell me if it
> exceptions?
>
> #!/usr/bin/python
> import cassandra.ttypes
> print cassandra.ttypes.Column().__hash__()
>
>  If it does exception I don't know how to fix it and I can't help
> you, my version of Thrift and Python will happily hash that.
>
> Drew
>
> On Mon, Aug 24, 2009 at 21:33, <mo...@gmail.com> wrote:
> > Thanks for the pointer Joe and Arin
> > I now used Drew's new lazyboy
> > Example Code: http://pastie.org/593767
> >
> > Error http://pastie.org/593766
> > That does not work either
> > Git version of cassandra
> > commit dcabc0e3431ccff56b20caef7f7805e49a6aac13
> > Author: Eric Evans <ee...@apache.org>
> > Date:   Thu Aug 20 21:17:59 2009 +0000
> >
> > On Mon, Aug 24, 2009 at 9:29 PM, Joe Stump <jo...@joestump.net> wrote:
> >
> >>
> >> On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:
> >>
> >>  Did you compile the cassandra.thrift file and make sure the generated
> >>> files are in PYTHONPATH?
> >>>
> >>
> >> This is the exact error I got when I attempted to use Ian's 0.3 lazyboy
> >> with a 0.4 version of the Python generated by cassandra.thrift.
> >>
> >> --Joe
> >>
> >
> >
> >
> > --
> > Bidegg worlds best auction site
> > http://bidegg.com
> >
>



-- 
Bidegg worlds best auction site
http://bidegg.com

Re: lazyboy does not work with cassandra

Posted by Drew Schleck <dr...@gmail.com>.
Hi,
  I can't reproduce this with Python 2.6.2, the latest Thrift
interface, and commit 575c5f3057450e22ec6503ea1b1cb467616715da of my
Lazyboy branch. Can you run the following program and tell me if it
exceptions?

#!/usr/bin/python
import cassandra.ttypes
print cassandra.ttypes.Column().__hash__()

  If it does exception I don't know how to fix it and I can't help
you, my version of Thrift and Python will happily hash that.

Drew

On Mon, Aug 24, 2009 at 21:33, <mo...@gmail.com> wrote:
> Thanks for the pointer Joe and Arin
> I now used Drew's new lazyboy
> Example Code: http://pastie.org/593767
>
> Error http://pastie.org/593766
> That does not work either
> Git version of cassandra
> commit dcabc0e3431ccff56b20caef7f7805e49a6aac13
> Author: Eric Evans <ee...@apache.org>
> Date:   Thu Aug 20 21:17:59 2009 +0000
>
> On Mon, Aug 24, 2009 at 9:29 PM, Joe Stump <jo...@joestump.net> wrote:
>
>>
>> On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:
>>
>>  Did you compile the cassandra.thrift file and make sure the generated
>>> files are in PYTHONPATH?
>>>
>>
>> This is the exact error I got when I attempted to use Ian's 0.3 lazyboy
>> with a 0.4 version of the Python generated by cassandra.thrift.
>>
>> --Joe
>>
>
>
>
> --
> Bidegg worlds best auction site
> http://bidegg.com
>

Re: lazyboy does not work with cassandra

Posted by mo...@gmail.com.
Thanks for the pointer Joe and Arin
I now used Drew's new lazyboy
Example Code: http://pastie.org/593767

Error http://pastie.org/593766
That does not work either
Git version of cassandra
commit dcabc0e3431ccff56b20caef7f7805e49a6aac13
Author: Eric Evans <ee...@apache.org>
Date:   Thu Aug 20 21:17:59 2009 +0000

On Mon, Aug 24, 2009 at 9:29 PM, Joe Stump <jo...@joestump.net> wrote:

>
> On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:
>
>  Did you compile the cassandra.thrift file and make sure the generated
>> files are in PYTHONPATH?
>>
>
> This is the exact error I got when I attempted to use Ian's 0.3 lazyboy
> with a 0.4 version of the Python generated by cassandra.thrift.
>
> --Joe
>



-- 
Bidegg worlds best auction site
http://bidegg.com

Re: lazyboy does not work with cassandra

Posted by Joe Stump <jo...@joestump.net>.
On Aug 24, 2009, at 10:25 PM, Arin Sarkissian wrote:

> Did you compile the cassandra.thrift file and make sure the generated
> files are in PYTHONPATH?

This is the exact error I got when I attempted to use Ian's 0.3  
lazyboy with a 0.4 version of the Python generated by cassandra.thrift.

--Joe

Re: lazyboy does not work with cassandra

Posted by Arin Sarkissian <ar...@rspot.net>.
Did you compile the cassandra.thrift file and make sure the generated
files are in PYTHONPATH?

arin

On Mon, Aug 24, 2009 at 9:20 PM, <mo...@gmail.com> wrote:
>  lazyboy does not work with cassandra
> python columnfamily.pyTraceback (most recent call last):
>  File "columnfamily.py", line 18, in <module>
>    from lazyboy import *
>  File "/work/dn/lazyboy/supercolumn.py", line 11, in <module>
>    from cassandra.ttypes import SuperColumnPath
> ImportError: cannot import name SuperColumnPath
>
>
> Any ideas on how to make this work?
> Thanks
>

Re: lazyboy does not work with cassandra

Posted by Joe Stump <jo...@joestump.net>.
It only works with 0.3. There are people making progress to get it  
working on 0.4. Namely, Drew Schleck:
http://github.com/dschleck/lazyboy/

--Joe

On Aug 24, 2009, at 10:20 PM, mobiledreamers@gmail.com wrote:

> lazyboy does not work with cassandra
> python columnfamily.pyTraceback (most recent call last):
>  File "columnfamily.py", line 18, in <module>
>    from lazyboy import *
>  File "/work/dn/lazyboy/supercolumn.py", line 11, in <module>
>    from cassandra.ttypes import SuperColumnPath
> ImportError: cannot import name SuperColumnPath
>
>
> Any ideas on how to make this work?
> Thanks


Re: lazyboy does not work with cassandra

Posted by Joe Stump <jo...@joestump.net>.
It only works with 0.3. There are people making progress to get it  
working on 0.4. Namely, Drew Schleck:
http://github.com/dschleck/lazyboy/

--Joe

On Aug 24, 2009, at 10:20 PM, mobiledreamers@gmail.com wrote:

> lazyboy does not work with cassandra
> python columnfamily.pyTraceback (most recent call last):
>  File "columnfamily.py", line 18, in <module>
>    from lazyboy import *
>  File "/work/dn/lazyboy/supercolumn.py", line 11, in <module>
>    from cassandra.ttypes import SuperColumnPath
> ImportError: cannot import name SuperColumnPath
>
>
> Any ideas on how to make this work?
> Thanks