Py2exe Json

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • olivier.losinger@gmail.com

    Py2exe Json

    I want to use json with py2exe but when I execute the program

    I have this errors : "Runtime Error : maximun recursion depth
    exceeded"

    Here is my code :

    import json
    jsonstr='{"toto ":"toto"}'
    print json.read(jsons tr)


    and my setup

    #!/usr/bin/env python
    # -*- coding: latin-1 -*-

    import sys, os, getopt
    from distutils.core import setup, Extension
    import py2exe



    includes = ["encodings" ,
    "encodings. *",]

    options = {"py2exe": { # create a compressed zip archive
    "compressed ": 1,
    "optimize": 2,
    "includes": includes,
    "packages": ["encodings" , "email","js on"]
    }}
    version_string= '1.2'

    setup(name="tes t_json",
    options=options ,
    version=version _string,
    description="Te st json",
    console=['debugjson.py'],

    data_files=[]
    )


    Have you got an idea ?
Working...