Ticket #17 (new defect)

Opened 13 months ago

The script do_export_csv_to_cache.py doesn't work

Reported by: hana Owned by: cuspa
Priority: normal Milestone:
Component: package opus_core Version:
Keywords: Cc:

Description

Here is the error output. The table was created by the script do_export_cache_to_comma_delimited_files.py.

(copied from bugzilla http://trondheim.cs.washington.edu/bugzilla/show_bug.cgi?id=1627)

python ~/workspace/numpybranch/opus_core/tools/do_export_csv_to_cache.py -d .
-c . -y 2005 -t development_template_components
Exporting table 'development_template_components' to year 2005 of cache located
at ....: started on Fri May 25 23:37:37 2007
    Exporting dataset development_template_components: started on Fri May 25
23:37:37 2007....0.0 sec
Exporting table 'development_template_components' to year 2005 of cache located
at ....: completed...0.0 sec
Traceback (most recent call last):
  File
"/Users/hana/workspace/numpybranch/opus_core/tools/do_export_csv_to_cache.py",
line 72, in ?
    out_storage = output_storage,
  File "/Users/hana/workspace/numpybranch/opus_core/export_storage.py", line
39, in export_dataset
    values_from_storage = in_storage.load_table(dataset_name)
  File
"/Users/hana/workspace/numpybranch/opus_core/store/delimited_storage.py", line
159, in load_table
    result[index][j] = column_dtype.type(result[index][j])
TypeError: a float is required

Attachments

development_template_components.csv (7.9 kB) - added by hana 13 months ago.

Change History

Changed 13 months ago by hana

Note: See TracTickets for help on using tickets.