PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
I don't understand why the __file__ value in my installation of PyQt
would not give a proper, full path.

I'm guessing that I did not install pyqt properly (I'm on Ubuntu
Hardy, trying to install QT4.5), but before redoing the install, I
want to see if there is a quicker fix.

Also, though PyQt4/ is in the site-packages directory, and loads
properly into the interactive environment. Yolk does not list it. ???

Something strange here!

Any suggestions?
-- 
http://mail.python.org/mailman/listinfo/python-list



Re: PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread Christian Heimes

wgw wrote:

I don't understand why the __file__ value in my installation of PyQt
would not give a proper, full path.

I'm guessing that I did not install pyqt properly (I'm on Ubuntu
Hardy, trying to install QT4.5), but before redoing the install, I
want to see if there is a quicker fix.


Some versions of Debian and Ubuntu used to compile Python files with a 
relative path. Try this:


python2.5 /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5
python2.5 -o /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5

Christian
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
On Aug 15, 2:19 pm, Christian Heimes li...@cheimes.de wrote:
 wgw wrote:
  I don't understand why the __file__ value in my installation of PyQt
  would not give a proper, full path.

  I'm guessing that I did not install pyqt properly (I'm on Ubuntu
  Hardy, trying to install QT4.5), but before redoing the install, I
  want to see if there is a quicker fix.

 Some versions of Debian and Ubuntu used to compile Python files with a
 relative path. Try this:

 python2.5 /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5
 python2.5 -o /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5

 Christian

python2.5 /usr/lib/python2.5/compileall.py -f /usr/lib/python2.5

didn't change anything, and there is no -o option (-O exists, but
would that be useful?)

thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list