Application cannot start #250

Closed
hsoft opened this Issue Jun 22, 2013 · 11 comments

Projects

None yet

1 participant

@hsoft
Owner
hsoft commented Jun 22, 2013

I have found your software moneyGuru today at http://www.root.cz/clanky/softwarova-sklizen-27-4-2011/#MoneyGuru.
I downloaded it and installed.
After first click on icon has occured error (see attachement).

I tried to install it also outside Program Files, Run as administrator but nothing helped :(.
I use Win 2008 R2.
Could you send me info as soon as you fix this problem?

Roman

@hsoft hsoft closed this Jun 22, 2013
@hsoft
Owner
hsoft commented Jun 22, 2013

I have no idea what caused this. What is win2008, a server version? I never tried moneyGuru on that. Maybe that running it from source would give a better traceback.

@hsoft
Owner
hsoft commented Jun 22, 2013

The problem seems to be in core/gui/date_widget.py line 37. The app has problem with the Slovak regional settings (date format dd.mm.yyyy) on windows (I tried XP,7). After switching to USA regional settings the apps starts correctly.

@hsoft
Owner
hsoft commented Jun 22, 2013

I tried it myself (slovakian setting under winxp) and it worked fine. The format was d.m.yyyy initially, but I also tried with dd.mm.yyyy.

@Ogar: You mention core/gui/date_widget.py line 37. Is that because you saw an exception traceback? Do you have the full traceback?

@hsoft
Owner
hsoft commented Jun 22, 2013

@Virgil Yes, Windows 2008 R2 is a server edition.
@Ogar Do you think, that is enough to change regional settings, culture (or date format settings) to en-US?

Roman

@hsoft
Owner
hsoft commented Jun 22, 2013

I've got the same problem as Roman on WinXP and Win7. I tried the 1.8.3 version. It gave me error, but with a traceback.


cx_Freeze: Python error in main script

Traceback (most recent call last):
File "C:\Python26\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in
File "start.py", line 35, in
File "app.py", line 57, in init
File "controller\main_window.py", line 62, in init
File "controller\transaction_panel.py", line 30, in init
File "controller\transaction_panel.py", line 40, in _setupUi
File "ui\transaction_panel_ui.py", line 29, in setupUi
File "support\date_edit.py", line 29, in init
File "C:\src\moneyguru\core\gui\date_widget.py", line 37, in init
KeyError: (u' M',)


OK

After changing the regional settings to US in windows the app starts fine.

@hsoft
Owner
hsoft commented Jun 22, 2013

@@@
Traceback (most recent call last):
File "C:\Python26\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in
File "start.py", line 35, in
File "app.py", line 57, in init
File "controller\main_window.py", line 62, in init
File "controller\transaction_panel.py", line 30, in init
File "controller\transaction_panel.py", line 40, in _setupUi
File "ui\transaction_panel_ui.py", line 29, in setupUi
File "support\date_edit.py", line 29, in init
File "C:\src\moneyguru\core\gui\date_widget.py", line 37, in init
KeyError: (u' M',)
@@@

@hsoft
Owner
hsoft commented Jun 22, 2013

On WinXP switching the regionale back (from US to Slovak) does not stop the app from working. On Win7 when I switch the regionale back (from US to Slovak), the app gives the exception again.

@hsoft
Owner
hsoft commented Jun 22, 2013

Yup, I can reproduce the bug as well (on vista).

@hsoft
Owner
hsoft commented Jun 22, 2013

(from [1946f11ab87d]) [#250 state:fixed] Fixed crash when date format had spaces in it.
https://bitbucket.org/hsoft/moneyguru/changeset/1946f11ab87d/

@hsoft
Owner
hsoft commented Jun 22, 2013

Oops, I didn't quite fix it in fact. Date editing is screwed with spaces in the format. I'll just remove them entirely from the format during clean_format()...

@hsoft
Owner
hsoft commented Jun 22, 2013

(from [f186f4ed4e68]) [#250 state:fixed] Fixed the crash about spaces in date format for real this time. All that had to be done was to call clean_format() on the Qt side, which wasn't done before.
https://bitbucket.org/hsoft/moneyguru/changeset/f186f4ed4e68/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment