PyQt4.__file__ gives PyQt4/__init__.py as value

Discussion in 'Python' started by wgw, Aug 15, 2009.

  1. wgw

    wgw Guest

    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?
    wgw, Aug 15, 2009
    #1
    1. Advertising

  2. wgw

    wgw Guest

    On Aug 15, 2:19 pm, Christian Heimes <> 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!
    wgw, Aug 15, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steven Bethard
    Replies:
    2
    Views:
    455
    Steven Bethard
    Feb 16, 2005
  2. Kent Johnson
    Replies:
    7
    Views:
    909
    Jan Niklas Fingerle
    Feb 12, 2006
  3. Replies:
    5
    Views:
    460
    Daniel T.
    Jul 8, 2007
  4. klenwell

    __file__ vs __FILE__

    klenwell, Nov 3, 2007, in forum: Python
    Replies:
    11
    Views:
    919
    Matimus
    Nov 5, 2007
  5. Ramchandra Apte
    Replies:
    17
    Views:
    336
    Manuel Pégourié-Gonnard
    Sep 30, 2012
Loading...

Share This Page