Well, I missed the 1 year anniversary of this blog, but that doesn't matter since when it started I was still in WebObjects land.
You know what would be cool? If I released StoneAge on January 30th, 1 year exactly from the date that I started working on the Django implementation.
Whoops, I just screwed up! I accidentally gave myself a deadline!
Tuesday, November 11, 2008
CJson
So I installed my first python module (other than django).
This involved the following steps:
It works! and so does 'import cjson'!
This involved the following steps:
- Download the module from the site:http://pypi.python.org/pypi/python-cjson/1.0.3
- Unzip and move to '/Library/Python/2.5/site-packages/'
- Go there in Terminal and inside the python-cjson directory run 'python setup.py install'. The README should indicate this, but this is one of those things that everyone should know, so why bother, right? Grrrr...
It works! and so does 'import cjson'!
Strangled by Python
For the latest cool stuff I want to do with the ability views, I needed the new json library in Python 2.6. Unfortunately, there's problems with the binary release of 2.6 on the Mac. When I installed, running 'python' from the Terminal still shows 2.5.1, I think there may be other issues, but it might be related to this problem:
http://bugs.python.org/issue4017
Here's the steps I'm trying to fix it:
Apparently there are major issues anyways with the binary distro (see the very bottom):
http://wiki.python.org/moin/MacPython/Leopard
So I'll just wait for now, maybe find a better json serializer.
http://bugs.python.org/issue4017
Here's the steps I'm trying to fix it:
- Download 2.6 compressed source from http://www.python.org/download/
- Open Terminal and configure the install with './configure'
- Build python with 'make'.
- I got 'Operation Not Permitted' when I first tried to install, so I had to install with 'sudo make install'.
- Still didn't work, so I looked around and found 2.5 inside '/System/Libraries/Frameworks/Python.Framework/' and a symbolic link called Current. I moved 2.6 into there and remade the symbolic link to now point to 2.6 with 'ln -s 2.6 Current' (from inside the Python.Framework directory).
- Still didnt work, so I restarted.
- That didn't work, so I'm giving up for now.....
Apparently there are major issues anyways with the binary distro (see the very bottom):
http://wiki.python.org/moin/MacPython/Leopard
So I'll just wait for now, maybe find a better json serializer.
Subscribe to:
Posts (Atom)