Re: [Pyobjc-dev] newbie questions about PyObjC
Brought to you by:
ronaldoussoren
|
From: Joe S. <jo...@st...> - 2008-10-03 14:41:01
|
On Oct 2, 2008, at 6:25 PM, Will Larson wrote: > PyObjC is a bit hairy to get started with. I wrote a handful of > tutorials about a month ago ( http://lethain.com/entry/2008/aug/22/an-epic-introduction-to-pyobjc-and-cocoa/ > ) which should be fairly helpful for getting started. It is, but I've run into a snag, that maybe you or someone else here can help with. At the start of part 2 of the tutorial, you suggest installing "simplejson" with easy-install. I've never even heard of easy-install before, but apparently it didn't work for me: IA-J1:books> sudo easy_install simplejson Password: Searching for simplejson Reading http://pypi.python.org/simple/simplejson/ Reading http://undefined.org/python/#simplejson Best match: simplejson 2.0.1 Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.1.tar.gz#md5 =ee2d74d695dc63d188fc3d3c6aa0d90a Processing simplejson-2.0.1.tar.gz Running simplejson-2.0.1/setup.py -q bdist_egg --dist-dir /tmp/ easy_install-eXZ5SF/simplejson-2.0.1/egg-dist-tmp-Ct1pY4 No eggs found in /tmp/easy_install-eXZ5SF/simplejson-2.0.1/egg-dist- tmp-Ct1pY4 (setup script problem?) ... IA-J1:MetaWindow> python Python 2.5.1 (r251:54863, Feb 4 2008, 21:48:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import metaweb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "metaweb.py", line 41, in <module> import simplejson # JSON serialization and parsing ImportError: No module named simplejson Apparently easy_install wanted to find some eggs? I don't know how to make sense of this, or how to fix it. For what it's worth, "locate simplejson" on the command line returns no results. Any tips? Thanks, - Joe |