New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application cannot start #250

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

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

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

@hsoft

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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