Py2exe Json

O

olivier.losinger

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top