[Debian-med-packaging] Bug#652489: NameError: global name 'ViewerFrameworkGUI' is not defined

lina lina.lastname at gmail.com
Sun Dec 18 15:24:50 UTC 2011


On Sun, Dec 18, 2011 at 10:46 PM, Andreas Tille <tille at debian.org> wrote:
> Hi,
>
> On Sun, Dec 18, 2011 at 01:59:06PM +0800, lina wrote:
>> On Sun, Dec 18, 2011 at 2:32 AM, lina <lina.lastname at gmail.com> wrote:
>> > Package: autodocktools
>> > Version: 1.5.6~rc2+cvs.20110926-1
>> > Severity: serious
>> >
>> > Dear Maintainer,
>> > *** Please consider answering these questions, where appropriate ***
>> > $ autodocktools
>> > Run ADT from  /usr/lib/python2.7/dist-packages/AutoDockTools
>> > Traceback (most recent call last):
>> >  File "/usr/lib/python2.7/dist-packages/AutoDockTools/__init__.py", line 433, in runADT
>> >    title=title, withShell= not interactive, verbose=False, gui=gui)
>> >  File "/usr/lib/python2.7/dist-packages/Pmv/moleculeViewer.py", line 888, in __init__
>> >    trapExceptions=trapExceptions)
>> >  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
>> > hit enter to continue
>> >
>> > once press enter, the autodocktools interface just disappeared, I mean, terminated.
>>
>> The problem was solved by uninstall the python2.6 and reinstall the
>> autodocktools.
>
> Thanks for this additional information.  However, I admit I do not
> exactly know how to prevent this problem for the future.  Do you think
> that a strict Dependency from python2.7 only would help?

$ cat /usr/lib/python2.7/dist-packages/ViewerFramework/VF.py | grep
ViewerFrameworkGUI
    from ViewerFramework.VFGUI import ViewerFrameworkGUI
            self.GUI = ViewerFrameworkGUI(self, title=title,

see there is a ViewerFrameworkGUI in the VF.py script.

well... before due to historical reason, when you have python2.6
there, there is a VF.py
this one use ViewerFramework(self, ...) which why the wrong message
saying: global name 'ViewerFrameworkGUI' is not defined

VF.py which is linked to /usr/share/pyshared/ViewerFramework/VF.py

I guess it's related to the update of VF.py (might be wrong)

>
> Sorry, I can not reproduce the problem on my machine and I would like
> to see the problem reasonable understood before closing the bug.
you may remove all python and tried to monitor the VF.py under
/usr/share/pyshared/ViewerFramework/ when some version of python was
installed.

>
> Kind regards

Best regards,
>
>    Andreas.
>
>
> --
> http://fam-tille.de





More information about the Debian-med-packaging mailing list