Using sqlalchemy in site_packages
Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> Fri, 18 Jan 2008 12:10:28 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
HI
How do we stop using the embedded sqlalchemy and use the one in
site_packages?
we've not changed spyceconf and our config.py is
===============================================
from spyceconf import *
root = r'/var/www/civ_monitor/www'
# This allows you to import .py modules from the lib directory.
sys.path.append(r'/var/www/civ_monitor/lib')
# Allows finding Spyce tags in the tags diretory.
path.append(r'/var/www/civ_monitor/tags')
debug = True # True to log more to stderr
port = 9672 # webserver port
indexExtensions = ['spy'] # list of extensions to check if directory
requested
soup = SqlSoup('postgres://someuser:blablabla@localhost:5432/civ')
# authentication -- see spyceconf.py for how to customize these
login_validator = nevervalidator
login_render = 'render:login'
loginrequired_render = 'render:login_required'
===================================================
I get the message when i start the server
/usr/lib/python2.4/site-packages/psycopg2-2.0.6-py2.4-linux-i686.egg/
psycopg2/_psycopg.py:3:
UserWarning: Module sqlalchemy was already imported from /usr/local/
lib/spyce-2.1.old/sqlalchemy/__init__.pyc, but /usr/lib/python2.4/site-
packages/SQLAlchemy-0.3.6-py2.4.egg is being added to sys.path
Thanks for any help you can give
Regards
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/