Re: Running wammu installed in an alternative directory

cristian <[email protected]> Thu, 17 Nov 2016 10:33:44 +0100
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
On Wed, 16 Nov 2016 15:08:54 +0100
Michal Čihař <[email protected]> wrote:

> Hi
> 
> Okay, it's even not in path? Then you probably need something like:
> 
> PYTHONPATH=/opt/wammu/lib/python2.7/site-packages /opt/wammu/bin/wammu
> 
> But still it depends on where you've installed Wammu.

I've typed:

PYTHONPATH=/opt/wammu/lib/python2.7/site-packages /opt/wammu/bin/wammu

so, two dialogs appear. The first is named 'Wammu Error': it says «Failed to load image from file "./icon/wammu.png".» and in 'Details' I can see «can't open file './icon/wammu.png' (error 2: No such file or directory)» and «Failed to load image from file "./icon/wammu.png".».

The second one, named 'Unhandled exception', contains, exactly:

"Unhandled exception appeared. If you want to help improving this program, please report this together with description how this situation has happened. Please report in english, otherwise you will be most likely told to translate you report to english later.

Traceback:
  File "/opt/wammu/bin/wammu", line 182, in <module>
    Wammu.App.Run()
  File "/opt/wammu/lib/python2.7/site-packages/Wammu/App.py", line 67, in Run
    app = WammuApp()
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/wammu/lib/python2.7/site-packages/Wammu/App.py", line 48, in OnInit
    frame = Wammu.Main.WammuFrame(None, -1)
  File "/opt/wammu/lib/python2.7/site-packages/Wammu/Main.py", line 174, in __init__
    self.icon.CopyFromBitmap(wx.BitmapFromImage(img))
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_gdi.py", line 884, in BitmapFromImage
    val = _gdi_.new_BitmapFromImage(*args, **kwargs)

Exception: PyAssertionError: C++ assertion "image.IsOk()" failed at ../src/gtk/bitmap.cpp(626) in wxBitmap(): invalid image"

The wammu.png icon is located into /opt/wammu/share/pixmaps.

Exactly, how should I change the command to type in the terminal?

Thanks.

------------------------------------------------------------------------------
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users