Re: python-cjson package in F8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgpPQRolUtFKl.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

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux