Pychecker and /var/tmp/python2-2.2-root/usr/lib/python2.2/.....
sandeep182 at hotmail.com
Wed Jun 26 15:22:42 EDT 2002
I found the solution:
sudo python2 /usr/lib/python2.2/compileall.py -f /usr/lib/python2.2
Thanks for the lead, Neal!
"Sandeep Gupta" <sandeep182 at hotmail.com> wrote in message
news:d71cc7f6.0206251220.4ae17aa0 at posting.google.com...
> 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
> > > 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
More information about the Python-list