Crash during CSV import
Reported by Virgil Dupras | February 1st, 2010 @ 11:00 AM
Application Identifier: com.hardcoded_software.moneyguru
Application Version: 1.7.4
Traceback (most recent call last):
File "/Applications/moneyGuru.app/Contents/Resources/mg_cocoa.plugin/Contents/Resources/mg_cocoa.py", line 1365, in continueImport
File "core/gui/csv_options.pyc", line 136, in continue_import
File "core/document.pyc", line 988, in load_parsed_file_for_import
File "core/loader/base.pyc", line 205, in load
File "core/loader/csv.pyc", line 87, in _load
File "core/loader/base.pyc", line 84, in clean_date
TypeError: expected string or buffer
The user sent me the file that caused the error and I could reproduce the bug. Pressing Continue Import once pops up a message telling that the date column doesn't contain dates, but after that, all values in the column would become empty. Pressing Continue Import again would trigger this error.
Comments and changes to this ticket
-
Virgil Dupras February 1st, 2010 @ 11:02 AM
- Assigned user set to Virgil Dupras
-
Virgil Dupras February 1st, 2010 @ 11:06 AM
This bug is two-fold. The first problem is that moneyGuru can't recognize the date. But the underlying problem is that moneyGuru changes the vales of the CSV lines when it parses the dates. Cells with invalid dates are set to None, which makes the whole file un-importable after having tried to continue import with a wrong date column.
-
Virgil Dupras February 1st, 2010 @ 11:41 AM
(from [2025e4148457]) [#128] Trying to load a CSV file no longer modifies raw lines. http://bitbucket.org/hsoft/moneyguru/changeset/2025e4148457/
-
Virgil Dupras February 1st, 2010 @ 11:41 AM
- State changed from accepted to fixed
(from [156ea7f35ab9]) [#128 state:fixed] CSV imports now support dates with very short formats. http://bitbucket.org/hsoft/moneyguru/changeset/156ea7f35ab9/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 128 Crash during CSV import (from [2025e4148457]) [#128] Trying to load a CSV file no...
- 128 Crash during CSV import (from [156ea7f35ab9]) [#128 state:fixed] CSV imports now ...