wxPython problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scottholdensmith@gmail.com

    #1

    wxPython problem

    I'm a little confused. I installed wxPython on my Thinkpad T23, on
    which I'm running Fedora Core 5. I did it using Yum and Yumex, and
    everything installed fine. In fact, I now have PyShell and PyCrust in
    my applications. Within those two apps I can use wx as a module. But
    from the bash shell, when I use the same old Python interpreter, I
    can't use the wx module. It's there, under
    /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/ (under that
    directory there are several directories: wx, wxPython). I don't know
    what to do now. Do I need to move the wx directory up directly under
    the site-packages directory?

    Please help, thanks...

  • Diez B. Roggisch

    #2
    Re: wxPython problem

    scottholdensmit h@gmail.com wrote:
    [color=blue]
    > I'm a little confused. I installed wxPython on my Thinkpad T23, on
    > which I'm running Fedora Core 5. I did it using Yum and Yumex, and
    > everything installed fine. In fact, I now have PyShell and PyCrust in
    > my applications. Within those two apps I can use wx as a module. But
    > from the bash shell, when I use the same old Python interpreter, I
    > can't use the wx module. It's there, under
    > /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/ (under that
    > directory there are several directories: wx, wxPython). I don't know
    > what to do now. Do I need to move the wx directory up directly under
    > the site-packages directory?[/color]

    Any chance that there is a python 2.3 interpreter running on the
    command-line? Debian for example has python2.4 & python2.3, and the latter
    is set as default. So try starting

    python2.4


    Diez

    Comment

    • scottholdensmith@gmail.com

      #3
      Re: wxPython problem

      No, it's python2.4. It says there's no module wx...hmm.

      Comment

      • scottholdensmith@gmail.com

        #4
        Re: wxPython problem

        What I'm wondering is, perhaps it has something to do with the wx.pth
        file? I can't seem to find anything in the documentation about what the
        path should be, which file it should be pointing to.

        Scott

        Comment

        • Bill Maxwell

          #5
          Re: wxPython problem

          On 28 Apr 2006 10:16:57 -0700, scottholdensmit h@gmail.com wrote:
          [color=blue]
          >What I'm wondering is, perhaps it has something to do with the wx.pth
          >file? I can't seem to find anything in the documentation about what the
          >path should be, which file it should be pointing to.[/color]

          Mine has this in it:

          wx-2.6-msw-unicode

          this points to a subdirectory of the site-packages directory. Mine
          looks like this:

          D:\Programs\Pyt hon\Lib\site-packages\wx-2.6-msw-unicode\wx
          D:\Programs\Pyt hon\Lib\site-packages\wx-2.6-msw-unicode\wxPytho n

          My understanding is that the wx.pth adds to the Python path. So, this
          directory in your system:

          site-packages/wx-2.6-gtk2-unicode

          is searched automatically. From there, you need to import wx or
          wxPython, then access using "wx." or "wxPython."

          Regards,
          Bill

          Comment

          Working...