Pychecker and /var/tmp/python2-2.2-root/usr/lib/python2.2/.....
Sandeep Gupta
sandeep182 at hotmail.com
Tue Jun 25 16:20:43 EDT 2002
Neal Norwitz <neal at metaslash.com> wrote in message news:<pan.2002.06.25.01.46.31.138959.7184 at metaslash.com>...
> 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
I tried the above steps replacing the second line with:
sudo python2 compileall.py .
Successful compile. I verified that
/usr/lib/python2.2/BaseHTTPServer.pyo and unittest.pyo exist. But I'm
still receiving the same error message from pychecker. Any other
ideas?
Thanks
Sandeep
More information about the Python-list
mailing list