Menu

AttributeError: 'NoneType' object has no attr

Help
monkymind
2006-09-15
2013-04-19
  • monkymind

    monkymind - 2006-09-15

    Hi, I downloaded and installed gmobilemedia_0.1-all.deb on a debian system with a KDE desktop (Kanotix). When I try to run gMobileMedia I get the following error:
    -------------
    Traceback (most recent call last):
      File "main.py", line 371, in ?
        app = mbGui()
      File "main.py", line 91, in __init__
        cIcon = self.iconos.lookup_icon("gnome-fs-directory", 32, 0).load_icon()
    AttributeError: 'NoneType' object has no attribute 'load_icon'
    ----------------
    gnome-fs-directory seems to be part of gnome-themes, so I installed it too but I still get the above error.
    Any tips of how to get it working?
    Cheers
    Robert
    PS Gammu and Wammu are installed and working.

     
    • Iván Campańa N.

      Hi, according to that it is trying to find the image assigned to the directories in the default theme, since it doesn't find it (might be because it is not using a gnome desktop), then it fails to create the object to show the folder tree.

      I never thought of it as a problem since I been working only in a gnome desktop, I have been making some improvements in the handling of connections, so I was thinking about releasing a 0.1.1 version, I'll try to include a solution for your problem in that release also, maybe a default iconset in case there is not a default icontheme for gnome.

      As soon as I get it working I'll let you know.

       
      • monkymind

        monkymind - 2006-09-19

        Thanks for the help Ivan.
        anyone without the Gnome desktop wanting to get it running now ....just add the gnome-icon-theme package. :)

        gMobileMedia is a very nice app ..... ,under KDE, I'm able to drag and drop wallpaper and midi files onto gMobileMedia (which instantly installs them on the phone!) 8-)

        Cheers
        Robert

         
    • Iván Campańa N.

      Debian package for version 0.1.1 already includes the gnome-icon-theme as a requisite, so that it can work.

       
    • xcorex

      xcorex - 2006-11-19

      i have this error:

      -------
      xcore@xcore:~$ gmobilemedia
      Traceback (most recent call last):
        File "main.py", line 277, in Conectar
          self.engine.Connect()
        File "/usr/share/gMobileMedia/engine.py", line 60, in Connect
          self.sMachine.Init()
      gammu.ERR_DEVICEOPENERROR: {'Text': u'Error opening device. Unknown/busy or no permissions.', 'Code': 2, 'Where': 'Init'}
      --------

      kubuntu edgy here. nokia 6265, dku-2

       
      • Iván Campańa N.

        Looks like you haven't configured gammu yet.  At this time I haven't added a configuration wizard, it is part of my plans to include one, but since it is easy to set up, it comes second in my priority list.  I'm about to release a new version that handles multiple files copying a lot better than before and the GUI is more usable, probably today or tomorrow.

        To solve your problem you need to create a file called .gammurc in your home folder (including the dot).

        In that file you need to specify the port used to communicate with the phone, using the dku2 cable the port probably will be:
        /dev/ttyACM0
        But you have to make sure of that, after connecting the cable check the system log with "dmesg |tail"

        Other of the options you have to set up is the phone model and the communication method.
        In connection you should put something like this:
        connection = dku2
        In the model option you could try with your exact phone model if this doesn't work then you can try with the closest one detected by gammu, for example, I have a nokia 3205 that gammu doesn't recognize, but if I put the model as 3200 then it works ok because it is almost the same model.

        At the end you should end with a file that looks almost like this:

        [gammu]
        port = /dev/ttyACM0
        model = 6265
        connection = dku2
        use_locking = yes
        gammuloc = locfile
        startinfo = yes
        gammucoding = utf8

        If you want to know more about the other configuration options, the original instructions made by the gammu team are located here:
        http://www.gammu.org/wiki/index.php?title=Gammu:Setting_configuration_file

        To make it easy to test different configuration options I recommend you to install gammu command line version and after creating the configuration file execute this command:
            gammu --identify

        If everything is ok it should connect to your phone and show you the basic info about it.

        Check it out if you have any doubts, after that it should be working, unless gammu doesn't support your phone model, but it is more likely  to work.

        By the way, just before finishing this answer I decided to check out your phone model in Nokia Forum, pretty impressive I must say :P (at least compared to my little 3205 :P )

         

Log in to post a comment.