Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PyQt4.__file__ gives PyQt4/__init__.py as value

Reply
Thread Tools

PyQt4.__file__ gives PyQt4/__init__.py as value

 
 
wgw
Guest
Posts: n/a
 
      08-15-2009
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?
 
Reply With Quote
 
 
 
 
wgw
Guest
Posts: n/a
 
      08-15-2009
On Aug 15, 2:19*pm, Christian Heimes <(E-Mail Removed)> 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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Casting double by long gives wrong value. johnny boy C Programming 16 11-30-2009 08:07 AM
User defined conversion to builtin type gives l-value? Arne Mertz C++ 12 04-13-2009 01:43 PM
converting int to float gives nan (int value is definitely non-nan) googlegroups11@mailinator.com C Programming 6 03-19-2009 03:59 PM
Problem | std::string length gives Junk value in expression Pradeep C++ 1 12-20-2007 02:19 PM
VB code is too fast => gives wrong value Andre ASP General 6 06-30-2004 07:58 AM



Advertisments