Pychecker and /var/tmp/python2-2.2-root/usr/lib/python2.2/.....

Neal Norwitz neal at metaslash.com
Mon Jun 24 21:46:40 EDT 2002


On Mon, 24 Jun 2002 17:27:30 -0400, Sandeep Gupta wrote:

> I'm using pychecker on my application, which uses BaseHTTPServer.py and
> unittest.py.  Both those files have "No method" warnings that are
> displayed as:
> /var/tmp/python2-2.2-root/usr/lib/python2.2/BaseHTTPServer.py and
> /var/tmp/python2-2.2-root/usr/lib/python2.2/unittest.py
> 
> Does anyone know why /var/tmp/python2-2.2-root gets prepended to the
> file name?
> How can I remove the warnings for these files?

I had this same problem.  From what I remember, Redhat compiles
the .py -> .pyc/.pyo files in the /var/tmp/.... directory.

I didn't find a great way to fix it in pychecker, but to
fix your problem, you should just have to do:

	cd /usr/lib/python2.2
	python compileall.py .

Neal



More information about the Python-list mailing list