Json module


#1

Was the json module not included in the implementation of Python included with Dynamo?

When attempting to import the module I get the following:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
No module named json


#2

Looks the problem is Dynamo doesn’t add library path to python evaluator.

The workaround is set the path in the code:

import sys

sys.path.append(‘C:\Program Files (x86)\IronPython 2.7\Lib’)

import json


#3

Thanks, Yu Ke, that was the issue.
I hadn’t thought to look in the 32-bit folder.

-Bryan