Discussion:
Running wammu installed in an alternative directory
cristian
2016-08-23 13:13:52 UTC
Permalink
Hello,

I use a linux distro and I've built wammu from sources and I've installed it in the /opt directory.
Unfortunately, I have not yet found a way to launch the application. How could I achieve this result by using the installation I made?

Waiting for a reply,

Regards,

Cristian.
Michal Čihař
2016-09-06 06:44:17 UTC
Permalink
Hi
Post by cristian
I use a linux distro and I've built wammu from sources and I've
installed it in the /opt directory.
Unfortunately, I have not yet found a way to launch the application.
How could I achieve this result by using the installation I made?
If you've installed Wammu somewhere outside Python search path, you
need to tell it to search there, for example by setting PYTHONPATH
environment variable.

-- 
Michal Čihař | https://cihar.com/ | https://weblate.org/
cristian
2016-10-13 07:53:47 UTC
Permalink
On Tue, 06 Sep 2016 08:44:17 +0200
Post by Michal Čihař
Hi
If you've installed Wammu somewhere outside Python search path, you
need to tell it to search there, for example by setting PYTHONPATH
environment variable.
I've typed:

PYTHONPATH=/opt/wammu wammu

command, but terminal tells me wammu is not installed and it suggests me to install by 'sudo apt-get install wammu' command.

Exactly, what command should I type in the terminal?

Thanks.
Michal Čihař
2016-10-17 09:13:11 UTC
Permalink
Hi
Post by cristian
On Tue, 06 Sep 2016 08:44:17 +0200
Post by Michal Čihař
Hi
If you've installed Wammu somewhere outside Python search path, you
need to tell it to search there, for example by setting PYTHONPATH
environment variable.
PYTHONPATH=/opt/wammu wammu
Probably more like PYTHONPATH=/opt/wammu/lib/python2.7/site-packages,
but depends on Python version and distribution you're using.

-- 
Michal Čihař | https://cihar.com/ | https://weblate.org/
cristian
2016-10-17 13:13:52 UTC
Permalink
On Mon, 17 Oct 2016 11:13:11 +0200
Hi
Probably more like PYTHONPATH=/opt/wammu/lib/python2.7/site-packages,
but depends on Python version and distribution you're using.
I've typed:

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

command and the PYTHONPATH exists, but again terminal tells me wammu is not installed and it suggests me to install by 'sudo apt-get install wammu' command.

I'm using the Ubuntu distro and I've got python2.7 installed in the os.

Exactly, what command should I type in the terminal?

Thanks.
Michal Čihař
2016-11-16 14:08:54 UTC
Permalink
Hi
Post by cristian
PYTHONPATH=/opt/wammu/lib/python2.7/site-packages wammu
command and the PYTHONPATH exists, but again terminal tells me wammu
is not installed and it suggests me to install by 'sudo apt-get
install wammu' command.
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.
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
cristian
2016-11-17 09:33:44 UTC
Permalink
On Wed, 16 Nov 2016 15:08:54 +0100
Post by Michal Čihař
Hi
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.
Michal Čihař
2016-12-14 08:59:56 UTC
Permalink
Hi
Post by cristian
On Wed, 16 Nov 2016 15:08:54 +0100
Post by Michal Čihař
Hi
PYTHONPATH=/opt/wammu/lib/python2.7/site-packages
/opt/wammu/bin/wammu
But still it depends on where you've installed Wammu.
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".».
Okay, it seems that Wammu is unable to find images in this case. This
should be fixed by following commit:

https://github.com/gammu/wammu/commit/b36f28856fd5584b5045cd9c6b3ee8d37
d11aaaa
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Michal Čihař
2016-12-14 09:23:29 UTC
Permalink
Hi
Post by Michal Čihař
Hi
Post by cristian
On Wed, 16 Nov 2016 15:08:54 +0100
Post by Michal Čihař
Hi
PYTHONPATH=/opt/wammu/lib/python2.7/site-packages
/opt/wammu/bin/wammu
But still it depends on where you've installed Wammu.
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".».
Okay, it seems that Wammu is unable to find images in this case. This
https://github.com/gammu/wammu/commit/b36f28856fd5584b5045cd9c6b3ee8d
37
d11aaaa
...and the fix has been just released in Wammu 0.43:

https://wammu.eu/download/wammu/0.43/
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
cristian
2016-12-16 12:03:13 UTC
Permalink
On Wed, 14 Dec 2016 09:59:56 +0100
Post by Michal Čihař
Hi
Okay, it seems that Wammu is unable to find images in this case. This
https://github.com/gammu/wammu/commit/b36f28856fd5584b5045cd9c6b3ee8d37
d11aaaa
Ok, wammu main window appears. Besides it, wammu configuration request also appears. So, I've tried to make the guided configuration and when I get to 'Connection test' screen in 'Wammu Phone Configuration Wizard', an error message says:

"Failed to connect to phone

Description: Error opening device. Unknown, busy or no permissions.
Function: Init
Error code: 2"

If I look at wammu log (located into /tmp directory), I can see:

"[System error - open in serial_open, 16, "Dispositivo o risorsa occupata"]
Init:GSM_TryGetModel failed with error DEVICEOPENERROR[2]: Error opening device. Unknown, busy or no permissions."

Gammu version: 1.37.4, Wammu version: 0.44.

Waiting for a reply,

Thanks.
Michal Čihař
2016-12-16 12:12:37 UTC
Permalink
Hi

You probably need to add yourself to dialout group (or similar, depends
on your distribution). See our docs for more details:

https://wammu.eu/docs/manual/config/index.html#option-Device
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Post by cristian
On Wed, 14 Dec 2016 09:59:56 +0100
Post by Michal Čihař
Hi
Okay, it seems that Wammu is unable to find images in this case. This
https://github.com/gammu/wammu/commit/b36f28856fd5584b5045cd9c6b3ee
8d37
d11aaaa
Ok, wammu main window appears. Besides it, wammu configuration
request also appears. So, I've tried to make the guided configuration
and when I get to 'Connection test' screen in 'Wammu Phone
"Failed to connect to phone
Description: Error opening device. Unknown, busy or no permissions.
Function: Init
Error code: 2"
"[System error     - open in serial_open, 16, "Dispositivo o risorsa
occupata"]
Init:GSM_TryGetModel failed with error DEVICEOPENERROR[2]: Error
opening device. Unknown, busy or no permissions."
Gammu version: 1.37.4, Wammu version: 0.44.
Waiting for a reply,
Thanks.
-------------------------------------------------------------------
-----------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listin
fo/gammu-users
cristian
2016-12-16 20:24:54 UTC
Permalink
On Fri, 16 Dec 2016 13:12:37 +0100
Post by Michal Čihař
Hi
You probably need to add yourself to dialout group (or similar, depends
https://wammu.eu/docs/manual/config/index.html#option-Device
I read in that page (although my user was already added to plugdev and dialout groups while getting those previously quoted error messages) as following:

"On Linux systems, you might lack permissions for some device nodes. You might need to be member of some group (eg. plugdev or dialout) or or add special udev rules to enable you access these devices as non-root."

Nevertheless, I've launched wammu also with root permissions (by 'PYTHONPATH=/opt/wammu/lib/python2.7/site-packages sudo /opt/wammu/bin/wammu' command) and when I get to 'Connection test' screen in 'Wammu Phone Configuration Wizard', an error message says:

"Failed to connect to phone

Timeout while trying to communicate with phone. Maybe phone is not connected (for cable) or out of range (for bluetooth or IrDA)."

If I look at wammu log (located into /tmp directory), I can see:

"Fri 2016/12/16 21:13:34: Serial device: DTR is up, RTS is up, CAR is down, CTS is up
Fri 2016/12/16 21:13:34: Setting speed to 115200
Fri 2016/12/16 21:13:34: [Module - "auto"]
Fri 2016/12/16 21:13:34: Escaping SMS mode
Fri 2016/12/16 21:13:34: SENDING frame type 0x00/length 0x02/2
Fri 2016/12/16 21:13:34: 1B |0D ..
Fri 2016/12/16 21:13:35: Sending simple AT command to wake up some devices
Fri 2016/12/16 21:13:35: SENDING frame type 0x00/length 0x03/3
Fri 2016/12/16 21:13:35: 41A|54T|0D AT.
Fri 2016/12/16 21:13:55: Enabling echo
Fri 2016/12/16 21:13:55: SENDING frame type 0x00/length 0x05/5
Fri 2016/12/16 21:13:55: 41A|54T|45E|311|0D ATE1.
Fri 2016/12/16 21:14:05: Phone does not support enabled echo, it can not work with Gammu!
Fri 2016/12/16 21:14:05: Init:GSM_TryGetModel failed with error TIMEOUT[14]: Nessuna risposta nel tempo specificato. Probabilmente il telefono non è connesso.
Fri 2016/12/16 21:14:05: Entering GSM_SetIncomingSMS
Fri 2016/12/16 21:14:05: Getting available SMS memories
Fri 2016/12/16 21:14:05: SENDING frame type 0x00/length 0x0A/10
Fri 2016/12/16 21:14:05: 41A|54T|2B+|43C|50P|4DM|53S|3D=|3F?|0D AT+CPMS=?.
Fri 2016/12/16 21:17:25: Setting SMS memory type to ME
Fri 2016/12/16 21:17:25: SENDING frame type 0x00/length 0x0D/13
Fri 2016/12/16 21:17:25: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|4DM|45E|22"|0D AT+CPMS="ME".
Fri 2016/12/16 21:20:45: GSM_SetIncomingSMS failed with error TIMEOUT[14]: Nessuna risposta nel tempo specificato. Probabilmente il telefono non è connesso.
Fri 2016/12/16 21:20:45: Leaving GSM_SetIncomingSMS
Fri 2016/12/16 21:20:45: Entering GSM_SetIncomingCall
Fri 2016/12/16 21:20:45: SENDING frame type 0x00/length 0x0A/10
Fri 2016/12/16 21:20:45: 41A|54T|2B+|43C|43C|57W|41A|3D=|300|0D AT+CCWA=0.
Fri 2016/12/16 21:20:55: Disabling incoming call notification
Fri 2016/12/16 21:20:55: Leaving GSM_SetIncomingCall
Fri 2016/12/16 21:20:55: Entering GSM_SetIncomingCB
Fri 2016/12/16 21:20:55: SENDING frame type 0x00/length 0x0A/10
Fri 2016/12/16 21:20:55: 41A|54T|2B+|43C|4EN|4DM|49I|3D=|3F?|0D AT+CNMI=?.
Fri 2016/12/16 21:22:15: GSM_SetIncomingCB failed with error TIMEOUT[14]: Nessuna risposta nel tempo specificato. Probabilmente il telefono non è connesso.
Fri 2016/12/16 21:22:15: Leaving GSM_SetIncomingCB
Fri 2016/12/16 21:22:15: Entering GSM_SetIncomingUSSD
Fri 2016/12/16 21:22:15: SENDING frame type 0x00/length 0x09/9
Fri 2016/12/16 21:22:15: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D AT+CSCS?.
Fri 2016/12/16 21:22:25: GSM_SetIncomingUSSD failed with error TIMEOUT[14]: Nessuna risposta nel tempo specificato. Probabilmente il telefono non è connesso.
Fri 2016/12/16 21:22:25: Leaving GSM_SetIncomingUSSD
Fri 2016/12/16 21:22:25: [Terminating]
Fri 2016/12/16 21:22:25: [Closing]"

Waiting for a reply,

Thanks.

Loading...