On 1/20/06, Mike Sarahan <[EMAIL PROTECTED]> wrote: > > Robin, > > Here's the error: > > Traceback (most recent call last): > File "./tg_fastcgi.fcgi", line 58, in ? > tg_init() > File "./tg_fastcgi.fcgi", line 47, in tg_init > > turbogears.update_config(configfile=join(code_dir,"devcfg.py"),modulename="p > hotogal.config") > File > "/home/.castor/mikez0r/lib/lib/python2.4/site-packages/TurboGears-0.9a0de > v_r544-py2.4.egg/turbogears/config.py", line 119, in update_config > modfile = pkg_resources.resource_filename(packagename, modname + > ".py") > File > "/home/.castor/mikez0r/lib/lib/python2.4/site-packages/setuptools-0.6a9-p > y2.4.egg/pkg_resources.py", line 676, in resource_filename > return get_provider(package_or_requirement).get_resource_filename( > File > "/home/.castor/mikez0r/lib/lib/python2.4/site-packages/setuptools-0.6a9-p > y2.4.egg/pkg_resources.py", line 119, in get_provider > __import__(moduleOrReq) > ImportError: No module named photogal > > Just to check something with you - /home/mikez0r/TGapps/photogal is the > base of my project - that's where devcfg.py etc. are. I agree - it > should be able to find the file... but there's the error.
Okay, that should be finding it. It's working for me, so I don't think the instructions are faulty. (Unless something's changed *very* recently in SVN -- always possible, I suppose). This is a long shot, but is it possible the __init__.py file might be missing? Make sure both your /home/mikez0r/TGapps/photogal/photogal/__init__.py and /home/mikez0r/TGapps/photogal/photogal/config.py are present and readable; if either one of those is missing, that could account for that ImportError. I'm not really coming up with anything else just now. pkg_resources *should* be setting sys.path appropriately to find your photogal/config.py file (if /home/mikez0r/TGapps/photogal/photogal/__init__.py exists and is readable), but obviously it's not. Maybe someone else will come up with some idea as to why this might be happening. -- Robin Munn [EMAIL PROTECTED] GPG key 0xD6497014

