python-cjson package in F8

Todd Zullinger tmz at pobox.com
Sun Sep 14 15:35:39 UTC 2008


Clodoaldo Pinto Neto wrote:
> When i install cjson from the python-cjson 1.0.5 package from Fedora
> 8 i get this error:
>
>>>> cjson.encode('é', encoding='utf8')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> TypeError: encode() takes no keyword arguments
> 
> But when installed from source it works:
> 
>>>> cjson.encode('é', encoding='utf-8')
> '"\\u00e9"'

Are you installing the same version?  Quickly testing on F9 I get the
TypeError with both the package and source installs.

What is the output of:

$ python -c 'import cjson; print cjson.__file__, cjson.__version__'

for the packaged and source installs?

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So live that you can look any man in the eye and tell him to go to
hell.
    -- Anonymous

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080914/1507ee77/attachment-0001.sig>


More information about the fedora-list mailing list