Bug 407780 - Can't import with weboob 1.5: [err-5] La ligne de commandes suivante a échouée avec la code 1
Summary: Can't import with weboob 1.5: [err-5] La ligne de commandes suivante a échoué...
Status: RESOLVED NOT A BUG
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: 2.19.0
Platform: Other Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-20 22:14 UTC by choss38
Modified: 2019-05-26 19:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description choss38 2019-05-20 22:14:31 UTC
SUMMARY
Can't import with weboob 1.5

STEPS TO REPRODUCE
1. Import from external engine (Boobank V1.5)
2. 

3. 

OBSERVED RESULT
An error message is displaying: [ERR-5]: La ligne de commandes suivante a échouée avec la code 1 :
« PYTHONIOENCODING=utf_8 boobank ls -q -f csv -s id,label,balance 2>/dev/null |grep -v "If --auto-update" | grep -E "id;label;balance|" »

EXPECTED RESULT


SOFTWARE/OS VERSIONS
SKrooge 2.19.1
Windows: 
macOS: 
Linux/KDE Plasma: Linux (x86_64) release 4.15.0-50-generic (Mint 19.1)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Stephane MANKOWSKI 2019-05-21 18:31:45 UTC
I use weboob 1.5 too and I don't have issue.
What is the output of the following command if you run it from a terminal?
PYTHONIOENCODING=utf_8 boobank ls -q -f csv -s id,label,balance
Comment 2 choss38 2019-05-21 19:38:21 UTC
Hi,

the output of the command is:

id;label;balance
xxxxxxxxx@bp;LIVRET A;1414.45
CC-yyyyyy@ing;Compte Courant;169.03
LDD-zzzzzzzzz@ing;Livret Développement Durable;858.30


Le 21/05/2019 à 20:31, Stephane MANKOWSKI a écrit :
> https://bugs.kde.org/show_bug.cgi?id=407780
>
> Stephane MANKOWSKI <stephane@mankowski.fr> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Assignee|guillaume.debure@gmail.com  |stephane@mankowski.fr
>
> --- Comment #1 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> I use weboob 1.5 too and I don't have issue.
> What is the output of the following command if you run it from a terminal?
> PYTHONIOENCODING=utf_8 boobank ls -q -f csv -s id,label,balance
>
Comment 3 Stephane MANKOWSKI 2019-05-21 20:32:12 UTC
This is correct. Could you retry the import? Do you still have the issue? Sometime, this kind of issue is temporary due to unavailability of web sites.
Comment 4 choss38 2019-05-22 03:44:58 UTC
It still fails just at the starting.

Le 21/05/2019 à 22:32, Stephane MANKOWSKI a écrit :
> https://bugs.kde.org/show_bug.cgi?id=407780
>
> --- Comment #3 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> This is correct. Could you retry the import? Do you still have the issue?
> Sometime, this kind of issue is temporary due to unavailability of web sites.
>
Comment 5 Stephane MANKOWSKI 2019-05-22 13:33:36 UTC
Could you try this ?
PYTHONIOENCODING=utf_8 boobank ls -q -f csv -s id,label,balance; echo "rc="$?

Do you have a 0 at the end?
If not, you must investigate why? 
This is not due to Skrooge but to your weboob installation or configuration.
Comment 6 choss38 2019-05-23 21:59:25 UTC
hi,

rc=0 at the end.

Le 22/05/2019 à 15:33, Stephane MANKOWSKI a écrit :
> https://bugs.kde.org/show_bug.cgi?id=407780
>
> --- Comment #5 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> Could you try this ?
> PYTHONIOENCODING=utf_8 boobank ls -q -f csv -s id,label,balance; echo "rc="$?
>
> Do you have a 0 at the end?
> If not, you must investigate why?
> This is not due to Skrooge but to your weboob installation or configuration.
>
Comment 7 Stephane MANKOWSKI 2019-05-24 19:32:10 UTC
So, If I well understand:
1- boobank fails with code 1 when launched from Skrooge
2- boobank doesn't fail when launched from a terminal

It means that boobank is not launched in the same environment.

Could you try to launch skrooge from a terminal and try the import?
Comment 8 choss38 2019-05-24 21:23:42 UTC
Bingo ! It works from the terminal.

What should I do ? Does it mean that weboob isn't well installed ?

Le 24/05/2019 à 21:32, Stephane MANKOWSKI a écrit :
> https://bugs.kde.org/show_bug.cgi?id=407780
>
> --- Comment #7 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> So, If I well understand:
> 1- boobank fails with code 1 when launched from Skrooge
> 2- boobank doesn't fail when launched from a terminal
>
> It means that boobank is not launched in the same environment.
>
> Could you try to launch skrooge from a terminal and try the import?
>
Comment 9 Stephane MANKOWSKI 2019-05-24 21:40:10 UTC
Not really.
It means that something is set in you batch initialization file (.bashrc if you use bash) that should be set in your profile (see .profile) to have it available whatever the way used to run an application.
Comment 10 choss38 2019-05-26 19:01:11 UTC
You're right ! Thank you very much !

Kind regards.


Le 24/05/2019 à 23:40, Stephane MANKOWSKI a écrit :
> https://bugs.kde.org/show_bug.cgi?id=407780
>
> Stephane MANKOWSKI <stephane@mankowski.fr> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |NOT A BUG
>               Status|REPORTED                    |RESOLVED
>
> --- Comment #9 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> Not really.
> It means that something is set in you batch initialization file (.bashrc if you
> use bash) that should be set in your profile (see .profile) to have it
> available whatever the way used to run an application.
>