Hi all,
I have a problem running sql create. I have developed a basic app on
my windows box, and am now trying to deploy it on my Linux server. The
differences (apart from OS) are as follows:
Windows Gentoo
Python 2.5 2.4
sqlite (builtin) 3.3.12
pysqlite (builtin) 2.3.1
turbogears 1.0.2.2 1.0.2.2
tg-admin sql create works like a charm on Windows. However I have run
into various problems on the server.
Initially, I got the following issue:
File "/usr/lib/python2.4/ConfigParser.py", line 570, in _interpolate
raise InterpolationMissingOptionError(
ConfigParser.InterpolationMissingOptionError: Bad value substitution:
section: [global]
option : sqlobject.dburi
key : current_dir_uri
rawval : "sqlite://%(current_dir_uri)s/devdata.sqlite"
This I "solved" by hardcoding in the current directory (not ideal of
course). It got a bit further, but now it thinks it can't import
identity from turbogears:
File "/usr/lib/python2.4/site-packages/SQLObject-0.7.7-py2.4.egg/
sqlobject/util/moduleloader.py", line 5, in load_module
mod = __import__(module_name)
File "/srv/tg/ludwig/ludwig/model.py", line 4, in ?
from turbogears import identity
ImportError: cannot import name identity
However, python has no trouble importing it:
Python 2.4.3 (#1, Jan 2 2007, 22:23:32)
[GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from turbogears import identity
>>>
Does anyone have any ideas on this issue?
--
Ant...
http://antroy.blogspot.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?hl=en
-~----------~----~----~----~------~----~------~--~---