TypeError: unhashable instance

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

TypeError: unhashable instance

mobiledreamers
Resyncing to ian eure digg lazyboy - still not working same error persists

code: http://pastie.org/596171

Error
python columnfamily.py
{'table': 'Keyspace1', 'superkey': None, 'key': 'ef03418890d14d55ab5f919cf9c62184', 'family': 'Standard1', 'supercol': None}
{'username': 'ieure', 'email': '[hidden email]'}
True
Traceback (most recent call last):
  File "columnfamily.py", line 65, in <module>
    u.save()           # -> {'username': 'ieure', 'email': '[hidden email]'}
  File "/home/mark/work/common/lazyboy/columnfamily.py", line 127, in save
    self.load(self.pk.key)
  File "/home/mark/work/common/lazyboy/columnfamily.py", line 92, in load
    self._clean()
  File "/home/mark/work/common/lazyboy/columnfamily.py", line 46, in _clean
    map(self.__delitem__, self.keys())
  File "/home/mark/work/common/lazyboy/columnfamily.py", line 86, in __delitem__
    self._deleted[self._columns[item]] = True
TypeError: unhashable instance


On Wed, Aug 26, 2009 at 5:10 PM, Eric Evans <[hidden email]> wrote:
On Thu, 2009-08-27 at 09:57 +1000, Ian Holsman wrote:
> would it be worthwhile to start including these clients in the core
> codebase? in some kind of 'client' or 'contrib' directory?

IMO, it would be better for the clients and those working on them to
continue managing them as separate projects outside of Cassandra's
code-base, (flexibility on choice of committers, vcs/tools, release
cycles, licensing, etc).

> maybe even mentioning the 'popular' clients that people use in the
> readme (with links to them) would be good.

Yeah, this is probably a good idea. Either README.txt or a
(prominent )page on the wiki (which I guess would be easier to keep to
date).

--
Eric Evans
[hidden email]




--
Bidegg worlds best auction site
http://bidegg.com
Reply | Threaded
Open this post in threaded view
|

Re: TypeError: unhashable instance

Ian Eure
On Aug 26, 2009, at 5:42 PM, [hidden email] wrote:

Resyncing to ian eure digg lazyboy - still not working same error persists

Please try the record-refactor branch of Lazyboy. This will be merged to master  and 0.6.0 should be out in a week or so. 

I haven't run the examples, but things are pretty much working for me.

 - Ian
Reply | Threaded
Open this post in threaded view
|

Re: TypeError: unhashable instance

Sal Fuentes
For what it's worth, I ran the examples last night on 0.4 beta and it worked just fine. I of course used the example schema.

On Wed, Aug 26, 2009 at 6:16 PM, <[hidden email]> wrote:
Please try the record-refactor branch of Lazyboy. This will be merged to master  and 0.6.0 should be out in a week or so. 

I haven't run the examples, but things are pretty much working for me.

 - Ian



--
Salvador Fuentes Jr.
Reply | Threaded
Open this post in threaded view
|

Re: TypeError: unhashable instance

mobiledreamers
In reply to this post by Ian Eure
wat is  record-refactor branch of Lazyboy

how do i get it ?

On Wed, Aug 26, 2009 at 6:16 PM, <[hidden email]> wrote:
On Aug 26, 2009, at 5:42 PM, [hidden email] wrote:

Resyncing to ian eure digg lazyboy - still not working same error persists

Please try the record-refactor branch of Lazyboy. This will be merged to master  and 0.6.0 should be out in a week or so. 

I haven't run the examples, but things are pretty much working for me.

 - Ian



--
Bidegg worlds best auction site
http://bidegg.com
Reply | Threaded
Open this post in threaded view
|

Re: TypeError: unhashable instance

Ian Eure
On Aug 27, 2009, at 12:54 PM, [hidden email] wrote:

> wat is  record-refactor branch of Lazyboy
>
> how do i get it ?
>
http://github.com/digg/lazyboy/tree/record-refactor

  - Ian
Reply | Threaded
Open this post in threaded view
|

Re: TypeError: unhashable instance

mobiledreamers
 python examples/view.py
Traceback (most recent call last):
  File "examples/view.py", line 18, in <module>
    from lazyboy import *
  File "/tmp/lazyboy/lazyboy/supercolumn.py", line 14, in <module>
    from lazyboy.columnfamily import *
ImportError: No module named columnfamily

 python examples/record.py
Traceback (most recent call last):
  File "examples/record.py", line 18, in <module>
    from lazyboy import *
  File "/tmp/lazyboy/lazyboy/supercolumn.py", line 14, in <module>
    from lazyboy.columnfamily import *
ImportError: No module named columnfamily

On Thu, Aug 27, 2009 at 4:49 PM, Ian Eure <[hidden email]> wrote:
On Aug 27, 2009, at 12:54 PM, [hidden email] wrote:

wat is  record-refactor branch of Lazyboy

how do i get it ?

http://github.com/digg/lazyboy/tree/record-refactor

 - Ian



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