[storm] question about change from .10 to .11

shawn bright nephish at gmail.com
Wed Dec 19 20:16:45 GMT 2007


hey there
sorry so long getting back on this.
I found more clues about how this this is going silly.

In my database schema, i used mysql-admin to create my tables. I also have
done some maintenance on them off and on with phpmyadmin. No problem. them
db schemas have been in place for about a year and a half.

what i noticed in my class tables was that where i had a column that was
character set cp252 West European, it would return a string and i had to use
RawStr() in my class to make that attribute work. However, if i changed it
to UTF-8 Unicode, the Unicode() would work declaring the attribute, and the
table would return a type unicode.

So, my problem is solved !
I just need to go through my tables and see whats what in my varchar types
to make sure they are character set UTF-8.

I did not see this on my older server that uses storm version .1, but that
may not have anything to do with it.

i am using MySQL ver 5.0.45  and python-mysqldb version 1.2.2-3   on Ubuntu
Linux version 7.10

hope some of this helps someone.

thanks

shawn bright ( bitsbam in irc )

On Dec 14, 2007 5:36 AM, Gustavo Niemeyer <gustavo at niemeyer.net> wrote:

> Hello Shawn,
>
> > ok, here goes.....
> (...)
> > ok,, thanks for your time on this
>
> This doesn't seem to reproduce your error.  That's what I get when I run
> this code:
>
> (...)
>    return key.message
> AttributeError: 'NoneType' object has no attribute 'message'
>
> Notice that in your error, apparently there's data coming from the
> database:
>
> >     new_value = self.parse_set(value, from_db)
> >   File
> "/usr/lib/python2.5/site-packages/storm-0.11-py2.5.egg
> /storm/variables.py",
> > line 371, in parse_set
> >     % (type(value), value))
> > TypeError: Expected unicode, found <type 'str'>: 'y'
>
> In your example there's nothing in the database.
>
> Can you please make it truly self-contained (do the table creation
> *inside* the script)?
>
> Also, what's the MySQLdb and MySQL versions you're using?
>
> --
> Gustavo Niemeyer
> http://niemeyer.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20071219/34b41832/attachment-0001.htm 


More information about the storm mailing list