The following error occurs when loading an old style model after the "Load Plugin Models" operation (either from the menu, or from editing and saving a model):
Traceback (most recent call last):
File "/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/fitpage.py", line 1179, in _on_select_model
self._on_select_model_helper()
File "/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/basepage.py", line 2045, in _on_select_model_helper
self.model = form_factor()
File "/Users/pkienzle/.sasview/plugin_models/polynomial5.py", line 39, in __init__
Model1DPlugin.__init__(self, name=self.name) ##DO NOT CHANGE THIS LINE!!!
TypeError: expected string or buffer
This gives a blank !FitPage.
The workaround is to request a new fit page, which then makes the old page accessible.
Migrated from http://trac.sasview.org/ticket/781
{
"status": "closed",
"changetime": "2017-02-26T16:11:14",
"_ts": "2017-02-26 16:11:14.793757+00:00",
"description": "The following error occurs when loading an old style model after the \"Load Plugin Models\" operation (either from the menu, or from editing and saving a model):\n{{{\nTraceback (most recent call last):\n File \"/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/fitpage.py\", line 1179, in _on_select_model\n self._on_select_model_helper()\n File \"/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/basepage.py\", line 2045, in _on_select_model_helper\n self.model = form_factor()\n File \"/Users/pkienzle/.sasview/plugin_models/polynomial5.py\", line 39, in __init__\n Model1DPlugin.__init__(self, name=self.name) ##DO NOT CHANGE THIS LINE!!!\nTypeError: expected string or buffer\n}}}\n\nThis gives a blank !FitPage.\n\nThe workaround is to request a new fit page, which then makes the old page accessible.",
"reporter": "pkienzle",
"cc": "",
"resolution": "duplicate",
"workpackage": "SasView Bug Fixing",
"time": "2016-10-13T05:52:50",
"component": "SasView",
"summary": "blank fit page when selecting old style plugin after reload",
"priority": "minor",
"keywords": "",
"milestone": "SasView 4.1.0",
"owner": "butler",
"type": "defect"
}
The following error occurs when loading an old style model after the "Load Plugin Models" operation (either from the menu, or from editing and saving a model):
This gives a blank !FitPage.
The workaround is to request a new fit page, which then makes the old page accessible.
Migrated from http://trac.sasview.org/ticket/781
{ "status": "closed", "changetime": "2017-02-26T16:11:14", "_ts": "2017-02-26 16:11:14.793757+00:00", "description": "The following error occurs when loading an old style model after the \"Load Plugin Models\" operation (either from the menu, or from editing and saving a model):\n{{{\nTraceback (most recent call last):\n File \"/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/fitpage.py\", line 1179, in _on_select_model\n self._on_select_model_helper()\n File \"/Users/pkienzle/Source/sasview-new/src/sas/sasgui/perspectives/fitting/basepage.py\", line 2045, in _on_select_model_helper\n self.model = form_factor()\n File \"/Users/pkienzle/.sasview/plugin_models/polynomial5.py\", line 39, in __init__\n Model1DPlugin.__init__(self, name=self.name) ##DO NOT CHANGE THIS LINE!!!\nTypeError: expected string or buffer\n}}}\n\nThis gives a blank !FitPage.\n\nThe workaround is to request a new fit page, which then makes the old page accessible.", "reporter": "pkienzle", "cc": "", "resolution": "duplicate", "workpackage": "SasView Bug Fixing", "time": "2016-10-13T05:52:50", "component": "SasView", "summary": "blank fit page when selecting old style plugin after reload", "priority": "minor", "keywords": "", "milestone": "SasView 4.1.0", "owner": "butler", "type": "defect" }