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(jsonstr)


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","json"]
                          }}
version_string='1.2'

setup(name="test_json",
      options=options,
          version=version_string,
          description="Test json",
          console=['debugjson.py'],

          data_files=[]
         )


Have you got an idea ?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to