Opened 9 years ago

Closed 8 years ago

#415 closed defect (duplicate)

Save Project and Save Analysis don't open on double clicking

Reported by: krzywon Owned by: krzywon
Priority: major Milestone: SasView 4.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing

Description (last modified by butler)

The save project and save analysis functions are not working on the most recent windows build. This appears to be an issue with the comtypes module not being able to find a (non-related) dependency.

This has happenend before and the fix was to install Adobe Reader on the build server. This allows comtypes to find the dependency and proceed without any exceptions.

From the SasView log after trying to save:

2015-05-12 10:10:52,365 INFO Imported existing <module 'comtypes.gen' from 'C:\Program Files (x86)\SasView Beta\library.zip\comtypes\gen\__init__.pyc'>
2015-05-12 10:10:52,371 INFO Creating writeable comtypes cache directory: 'c:\users\jkrzywon\appdata\local\temp\1\comtypes_cache\SasView-27'
2015-05-12 10:10:52,372 INFO Using writeable comtypes cache directory: 'c:\users\jkrzywon\appdata\local\temp\1\comtypes_cache\SasView-27'
2015-05-12 10:10:52,384 INFO Could not import comtypes.gen._05BFD3F1_6319_4F30_B752_C7A22889BCC4_0_1_0: No module named _05BFD3F1_6319_4F30_B752_C7A22889BCC4_0_1_0
2015-05-12 10:10:52,401 INFO Could not import comtypes.gen.AcroPDFLib: No module named AcroPDFLib

Change History (10)

comment:1 Changed 9 years ago by krzywon

http://trac.sasview.org/ticket/223 - A related ticket that I worked on that was resolved during Code Camp II.

comment:2 Changed 9 years ago by butler

This needs more investigation. I downloaded latest immediately to windows 8 machine and was able to save both fits and projects no problem. I have downloaded the latest windows build again (after only some help rst edits I think) and still works. However I do see some interesting things:

  • neither saved projects (*.svs) or saved analysis (fitv) will open by double clicking — Looking at the logfile they do load SasView to the point but then without generating any error or any other entry in log file just stops - SasView? GUI is not loaded (fitting perspective not loaded etc).
  • I believe it is new but I note that when SasView? starts up it first opens a command line window then closes it with the effect that a black window flashes on the screen. This happens when trying to start a project file as above .. but in that case is never followed by a GUI opening up.
  • When loading back the saved project (one fit and one data set only) the loading works fine but the log file generates the following line
    2015-05-17 13:49:51,562 INFO XML document does not contain fitting information.
     local variable 'name' referenced before assignment
    
  • I was able to click on save project with several data sets and plots loaded but no fits. I gave file name and no indication (except in console) that the file was not saved. I thought we fixed that?

Mac needs checking as well.

comment:3 Changed 9 years ago by butler

  • Priority changed from blocker to minor

comment:4 Changed 9 years ago by butler

  • Milestone changed from SasView 3.1 to SasView Next Release +1

Moving to next release

comment:5 Changed 9 years ago by krzywon

I modified the error handling on saving a project to show a popup window when a file isn't saved. This will alert the user that nothing was saved.

comment:6 Changed 9 years ago by butler

  • Summary changed from Save Project and Save Analysis Not Working to Save Project and Save Analysis don't open on double clicking

comment:7 Changed 8 years ago by butler

  • Description modified (diff)

comment:8 Changed 8 years ago by butler

  • Milestone changed from SasView Next Release +1 to SasView 4.1.0
  • Priority changed from minor to major

comment:9 Changed 8 years ago by krzywon

  • Owner set to krzywon
  • Status changed from new to accepted

comment:10 Changed 8 years ago by krzywon

  • Resolution set to duplicate
  • Status changed from accepted to closed

Loading a project or save file by double clicking is the equivalent of running sasview.exe <filename>, so this is the same issue as #393: Cannot start SasView? with a data file path.

Note: See TracTickets for help on using tickets.