Add this line to the top of your autostart.cgi file:

os.environ['PYTHONPATH'] = '/home2/your_account_name_here/lib/python2.4'

I am a happy Webfaction customer, successfully running TG 1.0b1 with identity and SQLAlchemy, no problems.  I have two accounts with them, in fact.  And I won't claim that it was completely painless to get setup, but now that I've done it twice I feel like a pro. ;)

I would be happy to help you out with any trouble you run into, just keep posting to the list!  I've also found the guys at Webfaction to be very responsive and helpful in answering tickets.

Cheers,
Tim


On 9/20/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:

Are you deploying to WebFaction with an egg of your app?

It sounds like your TG 1.0b1 is not being used. There are a couple of
things you can do to see what you're getting:

python

>>> import pkg_resources
>>> pkg_resources.require("TurboGears")

That will tell you what version of TG is being picked up (and from
where).

You can also, independently, just do

>>> import turbogears
>>> turbogears.__file__


Kevin

On Sep 20, 2006, at 4:50 PM, Dianne Marsh wrote:

>
> I'm doing a test deployment using webfaction and TurboGears 1.0b1.  I
> can't use their control panel to configure a TG app, because they only
> support 0.8.8, but that's OK.
>
> But ... it looks like it's still using TG 0.8.8 ... in spite of TG
> 1.0b1 being installed in my local python dirs, per their instructions.
>
>
> Note that all of these things behave as expected on my development
> machine (i.e., they work).
>
> Some issues that lead me to this conclusion:
> 1. When running at webfaction, app.cfg seems to be ignored.  I had to
> add code those settings into my dev.cfg to get identity, visit, etc.
> properties to be set (which are in app.cfg).  Otherwise, I got an
> error
> that I didn't have a URL set for identity not found.
>
> 2. When running at webfaction, TG doesn't seem to understand
> %(top_level_dir), and I had to substitute the old form, which provides
> full path information.
>
> 3. The new style start files (start-*) don't work there.  I went back
> to using the old style, as follows:
>
> cherrypy.root() = Root()
> cherrypy.server.start()
>
> instead of
> turbogears.start_server(Root())
>
> 4. installed packages include both old and new versions:
>
> cElementTree-1.0.2_20050302-py2.4-linux-i686.egg
> cElementTree-1.0.5_20051216-py2.4-linux-i686.egg
> Cheetah-1.0-py2.4-linux-i686.egg
> CherryPy-2.1.1-py2.4.egg
> CherryPy-2.2.1-py2.4.egg
> configobj-4.3.2-py2.4.egg
> dirlist.txt
> easy-install.pth
> elementtree-1.2.6_20050316-py2.4.egg
> elementtree-1.2.6-py2.4.egg
> ez_setup.py
> FormEncode-0.4-py2.4.egg
> FormEncode-0.5.1-py2.4.egg
> json_py-3.4-py2.4.egg
> kid-0.8-py2.4.egg
> kid-0.9.3-py2.4.egg
> nose-0.9.0-py2.4.egg
> Paste-0.9.7-py2.4.egg
> PasteDeploy-0.9.6-py2.4.egg
> PasteScript-0.9.7-py2.4.egg
> PyProtocols-1.0a0-py2.4-linux-i686.egg
> RuleDispatch-0.5a0.dev_r2115-py2.4-linux-i686.egg
> setuptools.pth
> simplejson-1.3-py2.4.egg
> site.py
> site.pyc
> SQLObject-0.7.1dev_r1457-py2.4.egg
> SQLObject-0.7.1dev_r1860-py2.4.egg
> TestGears-0.2-py2.4.egg
> TurboCheetah-0.9.5-py2.4.egg
> TurboGears-0.8.8-py2.4.egg
> TurboGears-1.0b1-py2.4.egg
> TurboJson-0.9.9-py2.4.egg
> TurboKid-0.9.8-py2.4.egg
>
>
> So I deleted the old eggs for CherryPy, TurboGears, and Kid ... and
> then reran easy_install updates for those packages to get the right
> scripts in my scriptdir.  Same result ... still doesn't look like it's
> fully upgraded.  That is, 1-3 above still behave improperly.
>
> Any suggestions?  Is anyone using WebFaction with 1.0b1?
>
> Thanks!
> Dianne
>
>
> >


--
Kevin Dangoor
TurboGears / Zesty News

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to