[Tutor] where does the ViewerFrameWorkGUI come from

Steven D'Aprano steve at pearwood.info
Sun Dec 18 09:32:34 CET 2011


lina wrote:
> Hi,
> 
> I met below issue:
> 
> File "/usr/lib/python2.7/dist-packages/ViewerFramework/VF.py", line
> 369, in __init__
>     self.GUI = ViewerFrameworkGUI(self, title=title,
> NameError: global name 'ViewerFrameworkGUI' is not defined

Is VF.py your code?

If so, you have a bug in the code.

If not, then *possibly* there is a bug in the ViewerFramework package. Or more 
likely you are aren't using it correctly. My guess is that you haven't 
initialised the framework correctly. Read the documentation for it.


> can someone tell me how to examine,
> 
> I mean, how to examine, what would you do when you face the problem?

Read the documentation.
Check your code.
Google for the error message and see if other people are having it.
What are you doing that leads to the error? Do something different.
If there is a forum specifically for the ViewerFramework package, ask there.
If not, write to the author.



-- 
Steven



More information about the Tutor mailing list