Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86268

new.py and having '.' in PYTHONPATH

From Tobiah <toby@tobiah.org>
Newsgroups comp.lang.python
Subject new.py and having '.' in PYTHONPATH
Date 2015-02-23 13:00 -0800
Organization Aioe.org NNTP Server
Message-ID <mcg4e1$mcq$1@speranza.aioe.org> (permalink)

Show all headers | View raw


Was working along, and wasted some time on this.

Wanted to try something on my script, so I copied
it to 'new.py'.  It wouldn't run, and neither would
the one I copied from!

Traceback (most recent call last):
   File "a2z.py", line 6, in <module>
     from suds.client import Client
   File "build/bdist.linux-i686/egg/suds/__init__.py", line 154, in <module>
     
   File "build/bdist.linux-i686/egg/suds/client.py", line 30, in <module>
   File "build/bdist.linux-i686/egg/suds/sudsobject.py", line 25, in <module>
ImportError: cannot import name classobj


I finally figured out that the presence of new.py in
my directory was breaking things.  '.' is in my
PYTHONPATH, so maybe suds was looking for some
other new.py.

Anyway, it raises the question as to whether having '.' in the
PYTHONPATH is at all a sane thing to do.

Thanks,

Tobiah

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

new.py and having '.' in PYTHONPATH Tobiah <toby@tobiah.org> - 2015-02-23 13:00 -0800
  Re: new.py and having '.' in PYTHONPATH sohcahtoa82@gmail.com - 2015-02-23 14:07 -0800
  Re: new.py and having '.' in PYTHONPATH Ethan Furman <ethan@stoneleaf.us> - 2015-02-23 14:14 -0800
  Re: new.py and having '.' in PYTHONPATH Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-23 15:29 -0700

csiph-web