I've has similar problems installing turbogears (1.0.4.4) on a new  
intel imac.

Assuming you already have XCode installed, this way worked for me:

1) Do a clean install of python from the standard installer downloaded  
from www.python.org.
It installs python into /Library/Frameworks/... instead of /System.  
You will just ignore the default installations, and your shell  
commands will be /usr/local/bin instead of /usr/bin.

2) Install setuptools from http://peak.telecommunity.com/DevCenter/EasyInstall 
.

3) The python installer tgsetup.py should now run no problem.

4) You will need to manually install SQLObject after that, using  
easy_install.
It will install the latest version 0.10.2, which may require you to  
edit your model.py. Just change the top lines to:

import pkg_resources
pkg_resources.require("SQLObject>=0.8,<=0.10.2")

No problems so far with this version.

5) Install anything else you need such as the Python Image Library.

--------------------

One big problem I found was with cherrypy.

Working on localhost all will look ok, but when you go live you may  
see some odd socket behavior, and large requests will become  
truncated. There are some differences in how sockets work on the mac  
(they need to be non-blocking). All the gory details are in the closed  
ticket http://www.cherrypy.org/ticket/598.

The solution is to add the following line into the app.cfg config file:
server.socket_timeout = None

All's now working perfectly here. Good luck!

Howard.

On Jul 1, 2008, at 8:01 AM, dbmuse wrote:

> Installed /Library/Python/2.5/site-packages/simplejson-1.9.1-py2.5-
> macosx-10.5-i386.egg
> Processing dependencies for simplejson==1.9.1
> Searching for simplejson==1.9.1
> Reading http://pypi.python.org/simple/simplejson/
> Reading http://undefined.org/python/#simplejson
> Best match: simplejson 1.9.1
> Downloading 
> http://pypi.python.org/packages/source/s/simplejson/simplejson-1.9.1.tar.gz#md5
>  
> =d2ee608bdf6397b82a7cd53c8602b29e
> Processing simplejson-1.9.1.tar.gz
> Running simplejson-1.9.1/setup.py -q bdist_egg --dist-dir /tmp/
> easy_install-BTvKYn/simplejson-1.9.1/egg-dist-tmp-oRyoQ2
> No eggs found in /tmp/easy_install-BTvKYn/simplejson-1.9.1/egg-dist-
> tmp-oRyoQ2 (setup script problem?)
> error: Could not find required distribution simplejson==1.9.1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to