Skip to content
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

Save Project and Save Analysis don't open on double clicking (Trac #415) #549

Closed
sasview-bot opened this issue Mar 30, 2019 · 10 comments
Closed
Assignees
Labels
Defect Bug or undesirable behaviour Major Big change in the code or important change in behaviour
Milestone

Comments

@sasview-bot
Copy link

sasview-bot commented Mar 30, 2019

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

Migrated from http://trac.sasview.org/ticket/415

{
    "status": "closed",
    "changetime": "2016-10-08T18:54:14",
    "_ts": "2016-10-08 18:54:14.636744+00:00",
    "description": "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.\n\n'''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.\n\nFrom the !SasView log after trying to save:\n{{{\n2015-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'>\n2015-05-12 10:10:52,371 INFO Creating writeable comtypes cache directory: 'c:\\users\\jkrzywon\\appdata\\local\\temp\\1\\comtypes_cache\\SasView-27'\n2015-05-12 10:10:52,372 INFO Using writeable comtypes cache directory: 'c:\\users\\jkrzywon\\appdata\\local\\temp\\1\\comtypes_cache\\SasView-27'\n2015-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\n2015-05-12 10:10:52,401 INFO Could not import comtypes.gen.AcroPDFLib: No module named AcroPDFLib\n}}}",
    "reporter": "krzywon",
    "cc": "",
    "resolution": "duplicate",
    "workpackage": "SasView Bug Fixing",
    "time": "2015-05-12T15:18:29",
    "component": "SasView",
    "summary": "Save Project and Save Analysis don't open on double clicking",
    "priority": "major",
    "keywords": "",
    "milestone": "SasView 4.1.0",
    "owner": "krzywon",
    "type": "defect"
}
@sasview-bot sasview-bot added this to the SasView 4.1.0 milestone Mar 30, 2019
@sasview-bot sasview-bot added Defect Bug or undesirable behaviour Incomplete Migration Major Big change in the code or important change in behaviour and removed Incomplete Migration labels Mar 30, 2019
@sasview-bot
Copy link
Author

Trac update at 2015/05/14 12:53:08: krzywon commented:

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

@butlerpd
Copy link
Member

Trac update at 2015/05/17 18:47:07: butler commented:

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.

@butlerpd
Copy link
Member

Trac update at 2015/05/19 14:34:58: butler changed priority from "blocker" to "minor"

@butlerpd
Copy link
Member

Trac update at 2015/06/02 15:27:01:

  • butler commented:

Moving to next release

  • butler changed milestone from "SasView 3.1" to "SasView Next Release +1"

@sasview-bot
Copy link
Author

Trac update at 2015/06/03 19:46:56: krzywon commented:

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.

@butlerpd
Copy link
Member

Trac update at 2015/06/21 22:22:27: butler changed summary from "Save Project and Save Analysis Not Working" to "Save Project and Save Analysis don't open on double clicking"

@butlerpd
Copy link
Member

Trac update at 2016/09/24 16:37:35: butler changed description from:

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

to:

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
}}}

@butlerpd
Copy link
Member

Trac update at 2016/09/24 17:03:13:

  • butler changed milestone from "SasView Next Release +1" to "SasView 4.1.0"
  • butler changed priority from "minor" to "major"

@sasview-bot
Copy link
Author

Trac update at 2016/10/08 16:48:36:

  • krzywon changed owner from "" to "krzywon"
  • krzywon changed status from "new" to "accepted"

@sasview-bot
Copy link
Author

Trac update at 2016/10/08 18:54:14:

  • krzywon commented:

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

  • krzywon changed resolution from "" to "duplicate"
  • krzywon changed status from "accepted" to "closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Bug or undesirable behaviour Major Big change in the code or important change in behaviour
Projects
None yet
Development

No branches or pull requests

3 participants