ImportError: No module named simplejson
I am trying to run the default code with the iPhone simulator, and always get this error:
Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py", line 10, in <module> from compiler import Compiler, softlink_for_simulator
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/compiler.py", line 20, in <module> import simplejson as json
ImportError: No module named simplejson
I don't know what to do… Any ideas?
- Mac OSX 10.6.8
- Titanium Version: 1.0.8.201201262211
- Titanium SDK Version: 1.8.1
- iOS SDK 4.3
6 Answers
-
EUREKA!!! I did it! Just download simplejson from the link Pomu Takeuchi posted, and then open Terminal and go to the folder you decompressed the .tar, typing this:
python setup.py build
and then
python setup.py install
If any problem with the installation, try going here
Hope this will help!! Thanks for answering ppl!! CODE STRONG!!
-
sounds like your SDK download was corrupt… I recommend re-downloading by deleting your /Library/Application Support/Titanium/mobilesdk/osx/1.8.1/ directory and re-starting studio
-
solved after manually installing simplejson.
http://hidelafoglia.wordpress.com/2008/12/01/jsonpythonsimplejsoninstall/ -
Hi Pomu Takeuchi,
I am getting the same error.
how you installed that simpleJson-2.0.5.tar.gz????
can you please tell me the steps, as i am new in mac so i don't have any idea.
Thanks in Advance.
-
I have installed manually simplejson and have redownloaded the SDK… And still does not work, I get the same error:
Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/builder.py", line 10, in <module> from compiler import Compiler, softlink_for_simulator File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.1/iphone/compiler.py", line 20, in <module> import simplejson as json ImportError: No module named simplejson
-
Thank you
Thank you
Thank you
Thank you Very Much….
Finally it Worked for me….
:-)