[Tutor] can't import module

Dave Kuhlman dkuhlman at rexx.com
Sun Jul 2 19:48:43 CEST 2006


On Sun, Jul 02, 2006 at 10:32:51AM -0700, Danny Yoo wrote:
> > PYTHONPATH=/home/dave/my_files/my_gg/gg1.4/configs:/home/dave/my_files/my_gg/gg1.4/logs:/home/dave/my_files/my_gg/gg1.4/get_data:/home/dave/my_files/my_gg/gg1.4/gg_utils:/home/dave/my_files/my_gg/gg1.4/ipc:/home/dave/my_files/my_gg/gg1.4/process_data:/home/dave/my_files/my_gg/gg1.4/common_utils:/home/dave/test2
> 
> Have you marked PYTHONPATH to be exportable?  Your shell may not do this 
> automatically unless explicitely told to do so.

A simple test -- In order to check PYTHONPATH do the following:

    $ python
    Python 2.4.3 (#1, Apr 11 2006, 20:59:32)
    [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    >>> import sys
    >>> print sys.path

Dave K.

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman


More information about the Tutor mailing list