Opened 6 years ago

Closed 6 years ago

#1996 closed defect (duplicate)

Help Viewer html widget link clicked: local variable 'path' referenced before assignment

Reported by: papai@… Owned by: Conrad Huang
Priority: normal Milestone:
Component: General Controls Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-17.7.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-06-01)
Description
Help user/commands - files are not found

Log:
UCSF ChimeraX version: 0.91 (2019-06-01)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open /Users/gabor/work/manuscript/SAGA-2019/first-ima/Taf12-connection.cxs

opened ChimeraX session  

> ui mousemode rightMode zoom

> help help:user

Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 250, in interceptRequest  
self._callback(info)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 143, in intercept  
return self._intercept_cb(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/help_viewer/tool.py", line 104, in link_clicked  
super().link_clicked(request_info, *args)  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
UnboundLocalError: local variable 'path' referenced before assignment  
  
UnboundLocalError: local variable 'path' referenced before assignment  
  
File
"/Users/gabor/Chimera/ChimeraX_Daily-030619.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/htmlview.py", line 293, in link_clicked  
if path.startswith(hd):  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-1.68.22
OpenGL renderer: AMD Radeon HD 6770M OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedGeneral Controls
Owner: set to Conrad Huang
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionHelp Viewer html widget link clicked: local variable 'path' referenced before assignment

comment:2 by pett, 6 years ago

Resolution: duplicate
Status: assignedclosed

Hi Gabor,

Thanks for reporting this. Like the other error you encountered, this is also fixed in later builds, but just like the other one: in order to get a working version you either have to wait for tomorrow's daily build or use the 0.9 release candidate.

--Eric

Note: See TracTickets for help on using tickets.