If I run with the -V option, the ouput is:
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /home/zubinweb/lib/lib/python2.4/site.pyc matches /home/zubinweb/lib/
lib/python2.4/site.py
import site # precompiled from /home/zubinweb/lib/lib/python2.4/
site.pyc
# /home/zubinweb/lib/lib/python2.4/os.pyc matches /home/zubinweb/lib/
lib/python2.4/os.py
import os # precompiled from /home/zubinweb/lib/lib/python2.4/os.pyc
import posix # builtin
# /home/zubinweb/lib/lib/python2.4/posixpath.pyc matches /home/
zubinweb/lib/lib/python2.4/posixpath.py
import posixpath # precompiled from /home/zubinweb/lib/lib/python2.4/
posixpath.pyc
# /home/zubinweb/lib/lib/python2.4/stat.pyc matches /home/zubinweb/lib/
lib/python2.4/stat.py
import stat # precompiled from /home/zubinweb/lib/lib/python2.4/
stat.pyc
# /home/zubinweb/lib/lib/python2.4/UserDict.pyc matches /home/zubinweb/
lib/lib/python2.4/UserDict.py
import UserDict # precompiled from /home/zubinweb/lib/lib/python2.4/
UserDict.pyc
# /home/zubinweb/lib/lib/python2.4/copy_reg.pyc matches /home/zubinweb/
lib/lib/python2.4/copy_reg.py
import copy_reg # precompiled from /home/zubinweb/lib/lib/python2.4/
copy_reg.pyc
# /home/zubinweb/lib/lib/python2.4/types.pyc matches /home/zubinweb/
lib/lib/python2.4/types.py
import types # precompiled from /home/zubinweb/lib/lib/python2.4/
types.pyc
# zipimport: found 64 names in /home/zubinweb/lib/lib/python2.4/site-
packages/pysqlite-2.3.3-py2.4-linux-i686.e
gg
# /home/zubinweb/lib/lib/python2.4/warnings.pyc matches /home/zubinweb/
lib/lib/python2.4/warnings.py
import warnings # precompiled from /home/zubinweb/lib/lib/python2.4/
warnings.pyc
# /home/zubinweb/lib/lib/python2.4/linecache.pyc matches /home/
zubinweb/lib/lib/python2.4/linecache.py
import linecache # precompiled from /home/zubinweb/lib/lib/python2.4/
linecache.pyc
import encodings # directory /home/zubinweb/lib/lib/python2.4/
encodings
# /home/zubinweb/lib/lib/python2.4/encodings/__init__.pyc matches /
home/zubinweb/lib/lib/python2.4/encodings/__
init__.py
import encodings # precompiled from /home/zubinweb/lib/lib/python2.4/
encodings/__init__.pyc
# /home/zubinweb/lib/lib/python2.4/codecs.pyc matches /home/zubinweb/
lib/lib/python2.4/codecs.py
import codecs # precompiled from /home/zubinweb/lib/lib/python2.4/
codecs.pyc
import _codecs # builtin
# /home/zubinweb/lib/lib/python2.4/encodings/aliases.pyc matches /home/
zubinweb/lib/lib/python2.4/encodings/ali
ases.py
import encodings.aliases # precompiled from /home/zubinweb/lib/lib/
python2.4/encodings/aliases.pyc
# /home/zubinweb/lib/lib/python2.4/encodings/ascii.pyc matches /home/
zubinweb/lib/lib/python2.4/encodings/ascii
.py
import encodings.ascii # precompiled from /home/zubinweb/lib/lib/
python2.4/encodings/ascii.pyc
Python 2.4.2 (#1, Jun 16 2007, 00:38:17)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "./dispatch.fcgi", line 23, in ?
import cherrypy
ImportError: No module named cherrypy
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] site
# cleanup[1] encodings
# cleanup[1] _codecs
# cleanup[1] zipimport
# cleanup[1] warnings
# cleanup[1] encodings.ascii
# cleanup[1] codecs
# cleanup[1] types
# cleanup[1] signal
# cleanup[1] linecache
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] os.path
# cleanup[2] stat
# cleanup[2] UserDict
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 386 unfreed ints in 7 out of 8 blocks
# cleanup floats
On Jul 29, 12:05 am, zubinix <[EMAIL PROTECTED]> wrote:
> At the beginning of the script.
>
> import sys
> sys.path.append("/home/zubinweb/tg/install/")
> import os
> from os.path import *
> import cherrypy
> import pkg_resources
> import turbogears
>
> pkg_resources.require("TurboGears")
> ...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---