You know, I'm blind... I completely missed the -S option.  Haven't really used that switch before.  Though, the 'new' module is deprecated, it actually still exists.  See my sessions below:

$ python -S
Python 2.6.2 (r262:71600, May 19 2009, 10:23:42) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
>>> import new
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named new
>>> 
(2.6.2)06:19 PM 16930 prigor@localhost ~/projects/xx/svn/genomics/trunk/code/python 
$ python 
Python 2.6.2 (r262:71600, May 19 2009, 10:23:42) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import new
>>> new.__file__
'/pkg/python/2.6.2/lib/python2.6/new.pyc'
>>> 


On Mon, Aug 3, 2009 at 5:38 PM, James Taylor <james@bx.psu.edu> wrote:
Paul,

It looks like a failure importing the module 'new' which is a standard module (though deprecated in 2.6 and removed in 3.0). Does importing this module directly from a python shell work? For example:

james@localhost% python2.6 -ES
Python 2.6 (trunk:66714:66715M, Oct  1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
>>> import new
>>> new.__file__
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/new.pyc'





On Aug 3, 2009, at 7:52 PM, Paul Rigor (prigor@uci) wrote:

Hi gang,

I've setup galaxy to run before.  But this time around, the server will not start.  The setup is fairly straightforward though I'm using python 2.6.  Below is the error message stack.  I've made some modifications to the configuration, but just pathing and db stuff. I've even run a python shell to import the new module which works fine.  Any suggestions will be really helpful, thanks!
Paul

Traceback (most recent call last):
 File "./scripts/paster.py", line 16, in <module>
   from galaxy import eggs
 File "/home/prigor/projects/galaxy/genomics/galaxy_dist/lib/galaxy/__init__.py", line 5, in <module>
   __import__( "pkg_resources" ).declare_namespace( __name__ )
 File "/home/prigor/projects/galaxy/genomics/galaxy_dist/lib/pkg_resources.py", line 16, in <module>
   import sys, os, zipimport, time, re, imp, new
ImportError: No module named new
(2.6.2)04:42 PM 16807 prigor@localhost ~/projects/galaxy/genomics/galaxy_dist
$ python /home/prigor/projects/galaxy/genomics/galaxy_dist/lib/pkg_resources.py


--
Paul Rigor
http://www.paulrigor.net/
http://www.ics.uci.edu/~prigor
_______________________________________________
galaxy-user mailing list
galaxy-user@bx.psu.edu
http://mail.bx.psu.edu/cgi-bin/mailman/listinfo/galaxy-user




--
Paul Rigor
http://www.paulrigor.net/
http://www.ics.uci.edu/~prigor