How to install warsaw rpm package - gas antifraud solution

hi everyone, I’m from Brazil and in order to access my banks web accounts (Internet banking) I need to install a plugin called warsaw link to download the plugin, this link let one chose what bank you want to access, in fact I think there are no differences between the versions.

The important question is, there are only rpm packages for opensuse and fedora, and because of that I am unable to install it on openMandriva, it says I need some unavailable dependencies. I would like some help in order to install this rpm package, is there any workaround?

thanks in advance!

Hello @matheus , and welcome to OpenMandriva Forum.

1 Like

To help you we need more information. Exactly what dependencies are needed? The best way to do that is to try the install in Konsole and copy and paste the entire and exact output here as code. To post as code use the </> icon at the top of the window where you write your forum post. If it is a .rpm file then you can install it with either rpm or urpmi. With either command you can get more verbose output by using the option -v. Like this for example:

# urpmi -v <foo>.rpm

# rpm -ihv <foo>.rpm

:monkey:

Moved to English>Support forum from English>ABF for beginners.

:gorilla:

1 Like

thank you for your time @ben79

here is the output for the Fedora package:

# rpm -ihv warsaw_setup_64.rpm error: Dependências falhadas: nss-tools é necessário por warsaw-1.12.10-8.x86_64 python2-pyOpenSSL é necessário por warsaw-1.12.10-8.x86_64 zenity é necessário por warsaw-1.12.10-8.x86_64

I couldn’t finde nss-tools or python2-pyOpenSSL on repos, didn’t try zenity.

and now here’s the output for OpenSuse rpm package:

# rpm -ihv warsaw_setup_opensuse_64.rpm error: Dependências falhadas: mozilla-nss-tools é necessário por warsaw-1.12.10-8.x86_64 python-pyOpenSSL é necessário por warsaw-1.12.10-8.x86_64 zenity é necessário por warsaw-1.12.10-8.x86_64

“é necessário” is portugese for “is needed by”

UM, python2-pyOpenSSL 0.14, and zenity 3.18.1 are in OM repos. There are various nss packages but none with that exact name.

First and easiest step for you is to go to Issue Tracker and file a bug report as a “RPM Package request for Warsaw” and under ‘Importance’ select ‘Trivial/Enhancement’. Maybe include a brief explanation of why this is so important to Brazilian users. Try to be as detailed and descriptive as possible, this really helps our developers who are all extremely busy and none of them get enough sleep. :wink:

One other option is to look at rpm.pbone.net or rpmfind.net and manually download the needed dependency packages.

Once you get all the dependencies and the main package in the same Directory then you can try to install them all at once.

:speak_no_evil: :hear_no_evil: :see_no_evil:

1 Like

OK, now I have a handy suggestion to make posting code work better. Use ‘LC_ALL=C’ before every command in Konsole like:

# LC_ALL=C rpm -ihv warsaw_setup_64.rpm

# LC_ALL=C urpmi -v --auto-update --test

And all the output will be in English, which is better in a international forum like this where we are many languages but almost all understand English.
This is official OM Forum policy for those posting from non-English computers. It is official policy for our Issue Tracker as well.

:gorilla:

Maybe install:

urpmi python2-pyopenssl nss lib64nss3

Then try install Fedora package without dependencies:

rpm -i --nodeps warsaw_setup_64.rpm

[not tested but I think it should works]

1 Like

Good suggestion by the @AngryPenguin.

Also it’s needing zenity so add that to urpmi list @AngryPenguin provided and see if that way works.

Well, I’ve tried both @ben79 and @AngryPenguin suggestions, the package installs, but the warsaw service can’t start.

I first tried to manually download the dependencies, but for each rpm package, other unsatisfied dependencies appeared, so I gave that up.

I installed python2-pyopenssl, nss, lib64nss3, zenity, python-httplib2 and python2-httplib2

but I had the following error after install warsaw package (tried both fedora and opensuse packages):

# LC_ALL=C rpm -i --nodeps warsaw_setup_64.rpm
Synchronizing state of warsaw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable warsaw
Failed to execute /lib/systemd/systemd-sysv-install: No such file or directory
Job for warsaw.service failed because the control process exited with error code.
See "systemctl status warsaw.service" and "journalctl -xe" for details.

here is the systemctl status warsaw.service command output:

`LC_ALL=C systemctl status warsaw.service

  • warsaw.service - Warsaw Desktop
    Loaded: loaded (/usr/lib/systemd/system/warsaw.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Sun 2018-07-15 13:57:51 -03; 32s ago
    Process: 6822 ExecStart=/usr/bin/warsaw start (code=exited, status=1/FAILURE)
    Main PID: 6822 (code=exited, status=1/FAILURE)

Jul 15 13:57:51 matheus-pc warsaw[6822]: File “/usr/bin/warsaw”, line 30, in
Jul 15 13:57:51 matheus-pc warsaw[6822]: import urllib2
Jul 15 13:57:51 matheus-pc warsaw[6822]: File “/usr/lib64/python2.7/urllib2.py”, line 94, in
Jul 15 13:57:51 matheus-pc warsaw[6822]: import httplib
Jul 15 13:57:51 matheus-pc warsaw[6822]: File “/usr/lib64/python2.7/httplib.py”, line 69, in
Jul 15 13:57:51 matheus-pc warsaw[6822]: from array import array
Jul 15 13:57:51 matheus-pc warsaw[6822]: ImportError: /usr/lib64/python2.7/lib-dynload/arraymodule.so: undefined symbol: _PySlice_Unpack
Jul 15 13:57:51 matheus-pc systemd[1]: warsaw.service: Main process exited, code=exited, status=1/FAILURE
Jul 15 13:57:51 matheus-pc systemd[1]: warsaw.service: Failed with result ‘exit-code’.
Jul 15 13:57:51 matheus-pc systemd[1]: Failed to start Warsaw Desktop.`

I can’t start the service, get this import error, any more ideas? I don’t know what I can try anymore, maybe a rpm request as Ben advised?

You should do the package request ASAP. All these other methods are hacks that may or may not work.

Please post code as code. To post code as code use the </> icon.

Post-edit: Thanks for using LC_ALL=C that is a tremendous help.

ImportError: /usr/lib64/python2.7/lib-dynload/arraymodule.so:

Python error. Probably can be fixed by someone that know how to fix stuff like this.

Python packages are not in good shape in Lx 3 at this time. They will be in great shape when Lx 4 is released.

1 Like

I’m not in home today and I can not check it today on my LX computer. I will be able to do it tomorrow.

I’m not sure but this looks like a problem with mixed versions of Python3 and Python2.
From what I see, you have installed two versions of the “httplib” package. One python-httplib2 and the second python2-httplib2.

Package python-httplib2 depend on python(abi) |== 3.4|
Package python2-httplib2 depend on python(abi) |== 2.7|

While warsaw-setup used python2. Unpack warsaw-setup.rpm and look at first lines in warsaw-setup/usr/bin/warsaw

!/usr/bin/python2.7

Copyright © 2017 Diebold Nixdorf

This file is part of Warsaw Installer.

So maybe you should try remove python-httplib2 and then try again.

BTW. this same file list also all used modules:

import errno
import locale
import platform
import sys
import os
import stat
import time
import StringIO
import urllib2
import zipfile
import subprocess
import pwd
import signal
import re
import shutil
import tempfile
import OpenSSL.crypto as crypto
import gettext
from contextlib import closing, contextmanager
from uuid import uuid4

try:
    import gpgme
except ImportError:
    try:
        import gpg as gpgme
    except ImportError:
        pass

Anyway can u find source code for warsaw-setup?

well, after a lot of time spent, I was able to install all the dependencies, one by one, I successfully installed warsaw packages, first the Fedora one and then the OpenSuse one, in both cases I can start the service but it does not work, as below:

`[root@matheus-pc fedora]# systemctl status warsaw.service warsaw.service - Warsaw Desktop Loaded: loaded (/usr/lib/systemd/system/warsaw.service; disabled; vendor preset: disabled) Active: active (exited) since Sun 2018-07-15 23:47:47 -03; 4s ago Process: 8083 ExecStart=/usr/bin/warsaw start (code=exited, status=0/SUCCESS) Main PID: 8083 (code=exited, status=0/SUCCESS) Tasks: 17 (limit: 4272) Memory: 34.2M   CGroup: /system.slice/warsaw.service├─8094 /usr/local/bin/warsaw/core├─8114 /usr/local/bin/warsaw/core└─8120 /bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session`

it shouldn’t be exited, it sould be running

for now I will just have a Debian virtual machine with warsaw deb package, because I really liked Mandriva and now OpenMandriva, I joined the translation team for Brazilian Portuguese and really want to be part of it, I am graduated in information systems, not expert but let me know if I can help anyway.
I will probably file a bug report and hope the developers can create the RPM package in the future, because this service is very important for users in Brazil, there is no way I can indicate OMLinux for a friend if I can’t show him/her how to access his/her internet banking.

Again, thank you all very much for the suggestions, I’m all ears.

I will look for it tomorrow, couldnt find it today

The Quality Assurance Team definitely needs help. If you are interested in contributing there simpy PM @Colin.

There is a big need for help with languages and translations. That area is um, harumph, kind of wide open currently. I suppose PM @raphael and @jclvanier about this.

And if that isn’t enough we are in the process of a mass package rebuild of Cooker (soon to become Lx4) so we gonna need help from you and a lot of others folks at this forum doing either simple package fixes or triaging the more difficult ones for the developers to fix.

The fastest to get involved and start contributing is get on Freenode IRC and
join channel #openmandriva-cooker. And that will put you right where you need to be to help us with fixing broken packages from the mass rebuild.

And there are other areas we need help so it will boil down to what your interests and skills are.

1 Like

Did you enable the warsaw.service? Like:

# systemctl enable warsaw.service

and then reboot.

Here are the outputs for installing, enable and warsaw service status:

    [root@matheus-pc fedora]# LC_ALL=C urpmi warsaw_setup_64.rpm 
SECURITY: The following package is _NOT_ signed (OK ((none))): warsaw_setup_64.rpm
installing warsaw_setup_64.rpm
Preparing...                     #############################################################################################################################
      1/1: warsaw                #############################################################################################################################
Synchronizing state of warsaw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable warsaw
Failed to execute /lib/systemd/systemd-sysv-install: No such file or directory


[root@matheus-pc fedora]# LC_ALL=C systemctl enable warsaw.service
Synchronizing state of warsaw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable warsaw
Failed to execute /lib/systemd/systemd-sysv-install: No such file or directory


[root@matheus-pc fedora]# systemctl status warsaw.service
● warsaw.service - Warsaw Desktop
   Loaded: loaded (/usr/lib/systemd/system/warsaw.service; disabled; vendor preset: disabled)
   Active: active (exited) since Mon 2018-07-16 12:47:35 -03; 1min 3s ago
  Process: 6256 ExecStart=/usr/bin/warsaw start (code=exited, status=0/SUCCESS)
 Main PID: 6256 (code=exited, status=0/SUCCESS)
    Tasks: 17 (limit: 4272)
   Memory: 34.4M
   CGroup: /system.slice/warsaw.service
           ├─6267 /usr/local/bin/warsaw/core
           ├─6287 /usr/local/bin/warsaw/core
           └─6293 /bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session

I’ll definitely contact the guys you suggest and offer help, I am interested in helping and learning at the same time.

2 Likes

So that shows service active and loaded so it should be working now.