Menu

Can't get rufus to work

fruno
2005-09-28
2013-04-16
  • fruno

    fruno - 2005-09-28

    I got rufus source and installed.  When I try to run rufus I get this error:

    Traceback (most recent call last):
      File "/usr/share/rufus/rufus.py", line 16, in ?
        import wx
    ImportError: No module named wx

    I read somewhere that the import command is sort of a shortcut for "from wxPython.wx import *" so I changed the line on rufus.py and btconfig.py but then rufus doesn't do anything, just exists.  The .Rufus/error.log says this:

    Traceback (most recent call last):
      File "/usr/share/rufus/rufus.py", line 35, in ?
        from btconfig import BTConfig
      File "/usr/share/rufus/btconfig.py", line 30, in ?
        class BTConfig:
      File "/usr/share/rufus/btconfig.py", line 31, in BTConfig
        g_colors = {
    AttributeError: 'module' object has no attribute 'Color'

    I decided to change everything back to the way it was and post a message.  I have python 2.4 installed and also wxPython 2.6 so it's just that rufus isn't finding the libraries.  They are in /usr/local/lib rather than /usr/lib/.  I think this might be part of the problem but my /etc/ld.so.conf has both paths.  Also in /usr/local/lib/python2.4/site-packages there is no wx directory only wxPython.  All the libs are installed, so how do I get rufus to look in the right places?

    Can anyone help please.  I really want to see if the is the bittorrent client I've been searching for, it has a lot of features I can't find elsewhere.  Any input will be greatly appreciated. 

     
    • fruno

      fruno - 2005-09-28

      ok, added the path to wx.py to PYTHONPATH and rufus starts but I still get the other error in error.log

      Traceback (most recent call last):
      File "/usr/share/rufus/rufus.py", line 35, in ?
      from btconfig import BTConfig
      File "/usr/share/rufus/btconfig.py", line 30, in ?
      class BTConfig:
      File "/usr/share/rufus/btconfig.py", line 31, in BTConfig
      g_colors = {
      AttributeError: 'module' object has no attribute 'Color'

      any ideas?

       
    • d0c 54v4g3

      d0c 54v4g3 - 2005-09-29

      Hey,

      You could test to see if wxpython is installed properly by running something like this:

      import wx
      myapp = wx.PySimpleApp()
      testframe = wx.Frame(None, -1, "wxpython test")
      testframe.Show(True)
      myapp.MainLoop()

      Save it as a py file and run it... it should give you a frame with the title "wxpython test".  If this works then I can give you a few other things to try out.

      Tell me how it goes.

      d0c

       
    • fruno

      fruno - 2005-09-29

      yes, it was that wxpython was not properly installed (I didn't read the BUILD.txt and INSTALL.txt close enough).  I also had to downgrade GTK+ from 2.8 to 2.6 because of depracated pango_x_get_context stuff (??).  But now the error.log message is this:

      Traceback (most recent call last):
        File "/usr/share/rufus/rufus.py", line 51, in ?
          from btsession import BTSession
        File "/usr/share/rufus/btsession.py", line 21, in ?
          from BitTorrent.download import Download
        File "/usr/share/rufus/BitTorrent/download.py", line 4, in ?
          from zurllib import urlopen, Request
        File "/usr/share/rufus/BitTorrent/zurllib.py", line 22, in ?
          class HTTPContentEncodingHandler(HTTPHandler, HTTPSHandler):
      NameError: name 'HTTPSHandler' is not defined

       
    • fruno

      fruno - 2005-09-29

      yes, it was that wxpython was not properly installed (I didn't read the BUILD.txt and INSTALL.txt close enough).  I also had to downgrade GTK+ from 2.8 to 2.6 because of depracated pango_x_get_context stuff (??). In any case, the test script works but now the error.log message is this:

      Traceback (most recent call last):
        File "/usr/share/rufus/rufus.py", line 51, in ?
          from btsession import BTSession
        File "/usr/share/rufus/btsession.py", line 21, in ?
          from BitTorrent.download import Download
        File "/usr/share/rufus/BitTorrent/download.py", line 4, in ?
          from zurllib import urlopen, Request
        File "/usr/share/rufus/BitTorrent/zurllib.py", line 22, in ?
          class HTTPContentEncodingHandler(HTTPHandler, HTTPSHandler):
      NameError: name 'HTTPSHandler' is not defined

      Any suggestions?  Versions are
      rufus 0.6.5
      gtk+ 2.6.9
      wxPython 2.6.1
      python 2.4
      pango 1.10
      glib 2.8.1

       
    • d0c 54v4g3

      d0c 54v4g3 - 2005-09-29

      You may need to install pyOpenSSL as well as I recently added gzipped SSL support to the client.

      d0c

       
    • fruno

      fruno - 2005-09-30

      I just installed OpenSSL and pyOppenSSL but still get the same error.  Is there maybe a test to see that they were installed correctly.  Or maybe an environmental variable needs to be set?

       
    • LeoXV

      LeoXV - 2005-10-01

      You need SSL support compiled into Python.

       
    • fruno

      fruno - 2005-10-02

      So how do I do this.  Just pass --with-SSL to ./configure?  I noticed that I can pass --with-Anything to configure and it doesn't generate any errors, so there's no way for me to know if thats the right command or not.  I looked all over the internet but could not find any relevant information.  I have also sent an email to python help to see what they say.

       
    • fruno

      fruno - 2005-10-02

      went ahead and tried with-ssl.  Rufus works now.  Thanks for the help :)

       

Log in to post a comment.