[SQLObject] Re: Installing SQLObject: Help please!
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oliver S. <oli...@ya...> - 2006-02-09 17:36:00
|
Cancel this request! when I import sqlobject lower case things start to work! Yipee! --- Oliver Spacey <oli...@ya...> wrote: > I'm having trouble installing SQLObject, I have tried many permutations now and nothing seems to > work. (using Python 2.3, win2k ) > > Following the instructions at http://sqlobject.org/download.html > > I seem to succeed with installing easy_install but then running the command > > easy_install -U SQLObject > > I'm not sure if this should be entered at the dos prompt or the Python command line or the > IDLE console (forgive my ignorance), but wherever I do this I get same or similar 'Syntax Error: > invalid syntax'. > > I've tried putting the SQLObject egg file in the site-packages directory, with and without the > Zip extension and with/without unzipping first. > > I note that at the top level of the egg there is not-zip-safe file with no extension, could > this be a problem. > > I have more success when running setup.py install, stuff seems to happen (see below), but > wherever I try 'import SQLObject' I get 'No Module named SQLObject' > > My sys.path is > ['C:\\Python23\\Lib\\idlelib', 'C:\\WINNT\\system32\\python23.zip', 'C:\\Python23', > 'C:\\Python23\\DLLs', 'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win', > 'C:\\Python23\\lib\\lib-tk', 'C:\\Python23\\lib\\site-packages', > 'c:\\python23\\lib\\site-packages\\setuptools-0.6a9-py2.3.egg', > 'c:\\python23\\lib\\site-packages\\formencode-0.4-py2.3.egg', > 'c:\\python23\\lib\\site-packages\\sqlobject-0.7.0-py2.3.egg'] > > I'm sure I'm doing something bsaic wrong here. Any suggestions? > Thanks Oliver > Apologies for long dos stuff that follows: > ========================== > > Dos prompt: > C:\Python23\Lib\site-packages\SQLObject-0.7.0>setup.py install > running install > running bdist_egg > running egg_info > writing requirements to SQLObject.egg-info\requires.txt > writing SQLObject.egg-info\PKG-INFO > writing top-level names to SQLObject.egg-info\top_level.txt > reading manifest file 'SQLObject.egg-info\SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no files found matching 'examples\*.py' > warngin: no files found matching '*.py' under directory 'tests' > writing manifest file 'SQLObject.egg-info\SOURCES.txt' > installing library code to build\bdist.win32\egg > running install_lib > running build_py > creating build\bdist.win32\egg > creating build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\boundattributes.py -> build\bdist.win32\egg\sqlob > t > copying build\lib\sqlobject\cache.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\classregistry.py -> build\bdist.win32\egg\sqlobje > copying build\lib\sqlobject\col.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\conftest.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\constraints.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\converters.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\dbconnection.py -> build\bdist.win32\egg\sqlobjec > copying build\lib\sqlobject\declarative.py -> build\bdist.win32\egg\sqlobject > creating build\bdist.win32\egg\sqlobject\firebird > copying build\lib\sqlobject\firebird\firebirdconnection.py -> build\bdist.win > egg\sqlobject\firebird > copying build\lib\sqlobject\firebird\__init__.py -> build\bdist.win32\egg\sql > ect\firebird > copying build\lib\sqlobject\index.py -> build\bdist.win32\egg\sqlobject > creating build\bdist.win32\egg\sqlobject\inheritance > copying build\lib\sqlobject\inheritance\iteration.py -> build\bdist.win32\egg > lobject\inheritance > copying build\lib\sqlobject\inheritance\__init__.py -> build\bdist.win32\egg\ > object\inheritance > copying build\lib\sqlobject\joins.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\main.py -> build\bdist.win32\egg\sqlobject > creating build\bdist.win32\egg\sqlobject\manager > copying build\lib\sqlobject\manager\command.py -> build\bdist.win32\egg\sqlob > t\manager > copying build\lib\sqlobject\manager\__init__.py -> build\bdist.win32\egg\sqlo > ct\manager > creating build\bdist.win32\egg\sqlobject\maxdb > copying build\lib\sqlobject\maxdb\maxdbconnection.py -> build\bdist.win32\egg > lobject\maxdb > copying build\lib\sqlobject\maxdb\__init__.py -> build\bdist.win32\egg\sqlobj > \maxdb > creating build\bdist.win32\egg\sqlobject\mysql > copying build\lib\sqlobject\mysql\mysqlconnection.py -> build\bdist.win32\egg > lobject\mysql > copying build\lib\sqlobject\mysql\__init__.py -> build\bdist.win32\egg\sqlobj > \mysql > creating build\bdist.win32\egg\sqlobject\postgres > copying build\lib\sqlobject\postgres\pgconnection.py -> build\bdist.win32\egg > lobject\postgres > copying build\lib\sqlobject\postgres\__init__.py -> build\bdist.win32\egg\sql > ect\postgres > copying build\lib\sqlobject\sqlbuilder.py -> build\bdist.win32\egg\sqlobject > creating build\bdist.win32\egg\sqlobject\sqlite > copying build\lib\sqlobject\sqlite\sqliteconnection.py -> build\bdist.win32\e > sqlobject\sqlite > copying build\lib\sqlobject\sqlite\__init__.py -> build\bdist.win32\egg\sqlob > t\sqlite > copying build\lib\sqlobject\sresults.py -> build\bdist.win32\egg\sqlobject > copying build\lib\sqlobject\styles.py -> build\bdist.win32\egg\sqlobject > creating build\bdist.win32\egg\sqlobject\sybase > copying build\lib\sqlobject\sybase\sybaseconnection.py -> build\bdist.win32\e > sqlobject\sybase > copying build\lib\sqlobject\sybase\__init__.py -> build\bdist.win32\egg\sqlob > t\sybase > creating build\bdist.win32\egg\sqlobject\util > copying build\lib\sqlobject\util\backports.py -> build\bdist.win32\egg\sqlobj > \util > copying build\lib\sqlobject\util\moduleloader.py -> build\bdist.win32\egg\sql > ect\util > copying build\lib\sqlobject\util\threadinglocal.py -> build\bdist.win32\egg\s > bject\util > copying build\lib\sqlobject\util\__init__.py -> build\bdist.win32\egg\sqlobje > util > copying build\lib\sqlobject\__init__.py -> build\bdist.win32\egg\sqlobject > byte-compiling build\bdist.win32\egg\sqlobject\boundattributes.py to boundatt > utes.pyc > byte-compiling build\bdist.win32\egg\sqlobject\cache.py to cache.pyc > byte-compiling build\bdist.win32\egg\sqlobject\classregistry.py to classregis > .pyc > byte-compiling build\bdist.win32\egg\sqlobject\col.py to col.pyc > byte-compiling build\bdist.win32\egg\sqlobject\conftest.py to conftest.pyc > byte-compiling build\bdist.win32\egg\sqlobject\constraints.py to constraints. > > byte-compiling build\bdist.win32\egg\sqlobject\converters.py to converters.py > byte-compiling build\bdist.win32\egg\sqlobject\dbconnection.py to dbconnectio > yc > byte-compiling build\bdist.win32\egg\sqlobject\declarative.py to declarative. > > byte-compiling build\bdist.win32\egg\sqlobject\firebird\firebirdconnection.py > firebirdconnection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\firebird\__init__.py to __init > pyc > byte-compiling build\bdist.win32\egg\sqlobject\index.py to index.pyc > byte-compiling build\bdist.win32\egg\sqlobject\inheritance\iteration.py to it > tion.pyc > byte-compiling build\bdist.win32\egg\sqlobject\inheritance\__init__.py to __i > __.pyc > byte-compiling build\bdist.win32\egg\sqlobject\joins.py to joins.pyc > byte-compiling build\bdist.win32\egg\sqlobject\main.py to main.pyc > byte-compiling build\bdist.win32\egg\sqlobject\manager\command.py to command. > > byte-compiling build\bdist.win32\egg\sqlobject\manager\__init__.py to __init_ > yc > byte-compiling build\bdist.win32\egg\sqlobject\maxdb\maxdbconnection.py to ma > connection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\maxdb\__init__.py to __init__. > > byte-compiling build\bdist.win32\egg\sqlobject\mysql\mysqlconnection.py to my > connection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\mysql\__init__.py to __init__. > > byte-compiling build\bdist.win32\egg\sqlobject\postgres\pgconnection.py to pg > nection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\postgres\__init__.py to __init > pyc > byte-compiling build\bdist.win32\egg\sqlobject\sqlbuilder.py to sqlbuilder.py > byte-compiling build\bdist.win32\egg\sqlobject\sqlite\sqliteconnection.py to > iteconnection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\sqlite\__init__.py to __init__ > c > byte-compiling build\bdist.win32\egg\sqlobject\sresults.py to sresults.pyc > byte-compiling build\bdist.win32\egg\sqlobject\styles.py to styles.pyc > byte-compiling build\bdist.win32\egg\sqlobject\sybase\sybaseconnection.py to > aseconnection.pyc > byte-compiling build\bdist.win32\egg\sqlobject\sybase\__init__.py to __init__ > c > byte-compiling build\bdist.win32\egg\sqlobject\util\backports.py to backports > c > byte-compiling build\bdist.win32\egg\sqlobject\util\moduleloader.py to module > der.pyc > byte-compiling build\bdist.win32\egg\sqlobject\util\threadinglocal.py to thre > nglocal.pyc > byte-compiling build\bdist.win32\egg\sqlobject\util\__init__.py to __init__.p > byte-compiling build\bdist.win32\egg\sqlobject\__init__.py to __init__.pyc > creating build\bdist.win32\egg\EGG-INFO > installing scripts to build\bdist.win32\egg\EGG-INFO\scripts > running install_scripts > running build_scripts > creating build\bdist.win32\egg\EGG-INFO\scripts > copying build\scripts-2.3\sqlobject-admin -> build\bdist.win32\egg\EGG-INFO\s > pts > copying SQLObject.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO > copying SQLObject.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO > copying SQLObject.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO > copying SQLObject.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO > zip_safe flag not set; analyzing archive contents... > sqlobject.classregistry: module references __file__ > sqlobject.manager.command: module references __file__ > creating 'dist\SQLObject-0.7.0-py2.3.egg' and adding 'build\bdist.win32\egg' > it > removing 'build\bdist.win32\egg' (and everything under it) > Processing SQLObject-0.7.0-py2.3.egg > removing 'c:\python23\lib\site-packages\SQLObject-0.7.0-py2.3.egg' (and every > ng under it) > creating c:\python23\lib\site-packages\SQLObject-0.7.0-py2.3.egg > Extracting SQLObject-0.7.0-py2.3.egg to c:\python23\lib\site-packages > === message truncated === ___________________________________________________________ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry |