VisTrails icon indicating copy to clipboard operation
VisTrails copied to clipboard

Can't save/open spreadsheet

Open YvetteKlinkenberg opened this issue 7 years ago • 2 comments

Spreadsheet save/open functionality isn't working. After saving a spreadsheet to a *.vss file, this file cannot be opened in the spreadsheet. It seems to stumble over the job monitor object that is saved in the file. The following error occurs:

"SyntaxError: invalid syntax File "C:\Users\Klinkenberg\Anaconda2\Lib\ast.py", line 49, in literal_eval node_or_string = parse(node_or_string, mode='eval') File "C:\Users\Klinkenberg\Anaconda2\Lib\ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "", line 1 (0, 0, {'pipeline': None, 'job_monitor': <vistrails.core.vistrail.job.JobMonitor object at 0x00000000096FC550>, 'reason': 'Pipeline Execution', 'actions': [], 'vistrailName': 'Unknown', 'locator': '<spreadsheet_locator version="1.0">C:\Users\Klinkenberg\Downloads\examples\bikes.vt</spreadsheet_locator>', 'controller': None, 'version': 80L, 'moduleId': 32L, 'extra_info': {'pathDumpCells': 'c:\users\klinke~1\appdata\local\temp\vt_thumbbw8gpx'}}, 2, 0) ^ SyntaxError: invalid syntax"

YvetteKlinkenberg avatar Mar 23 '18 09:03 YvetteKlinkenberg

I've set the tabcontroller field of newinfo0 in the spreadsheet_tabcontroller.py tot None (see screen grab below) and this results in *.vss files which can be saved and opened in the current Vistrails release (2.2.4). However, I cannot oversee the consequences of not saving the job_monitor object, hence I don't know if I've broken other functionality with this quick fix.

image

YvetteKlinkenberg avatar Mar 27 '18 06:03 YvetteKlinkenberg

Feature request: add module to allow to write/save/store spreadsheets to file from flow.

drtrigon avatar Nov 28 '18 17:11 drtrigon