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
Attachment:
pgpKWeKpRFIny.pgp
Description: PGP signature
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines