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


Groups > comp.lang.python > #86268

new.py and having '.' in PYTHONPATH

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Tobiah <toby@tobiah.org>
Newsgroups comp.lang.python
Subject new.py and having '.' in PYTHONPATH
Date Mon, 23 Feb 2015 13:00:51 -0800
Organization Aioe.org NNTP Server
Lines 28
Message-ID <mcg4e1$mcq$1@speranza.aioe.org> (permalink)
NNTP-Posting-Host MJYPfEKuoR7Fa5n5u3NZZQ.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.python:86268

Show key headers only | 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