Opened 7 years ago

Closed 7 years ago

#1821 closed defect (fixed)

surface-center marker placement: cannot import name 'surface' from 'chimerax.core'

Reported by: brandon.scott@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Volume Data Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17134
ChimeraX Version: 0.9 (2019-03-08)
Description
Loaded in data and viewed as a surface, Tried to place markers, all other modes worked except when I changed mouse mode to "Place marker at center of connected surface" 

Log:
UCSF ChimeraX version: 0.9 (2019-03-08)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open
"X:\\\Macropinocytosis\\\NewMediaFormCell\\\Cropped\\\cell_CamB_ch0_stack0000_488nm_0000000msec_0013532775msecAbs_decon.tif"

Opened cell_CamB_ch0_stack0000_488nm_0000000msec_0013532775msecAbs_decon.tif,
grid size 719,745,232, pixel 1, shown at step 2, values uint16  

> ui mousemode rightMode "place marker"

Traceback (most recent call last):  
File "C:\Apps\ChimeraX\bin\lib\site-
packages\chimerax\mouse_modes\mousemodes.py", line 440, in <lambda>  
gw.mousePressEvent = lambda e, s=self: s._dispatch_mouse_event(e,
"mouse_down")  
File "C:\Apps\ChimeraX\bin\lib\site-
packages\chimerax\mouse_modes\mousemodes.py", line 371, in
_dispatch_mouse_event  
f(MouseEvent(event))  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\markers\mouse.py", line
59, in mouse_down  
self.place_on_surface(event)  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\markers\mouse.py", line
74, in place_on_surface  
c, vol = connected_center(p.triangle_pick)  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\markers\mouse.py", line
264, in connected_center  
from chimerax.core import surface  
ImportError: cannot import name 'surface' from 'chimerax.core'
(C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\core\\__init__.py)  
  
ImportError: cannot import name 'surface' from 'chimerax.core'
(C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\core\\__init__.py)  
  
File "C:\Apps\ChimeraX\bin\lib\site-packages\chimerax\markers\mouse.py", line
264, in connected_center  
from chimerax.core import surface  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 419.67
OpenGL renderer: Quadro M4000/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (3)

comment:1 by pett, 7 years ago

Component: UnassignedVolume Data
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionsurface-center marker placement: cannot import name 'surface' from 'chimerax.core'

comment:2 by pett, 7 years ago

Hi Brandon,

Thanks for reporting this error. I have corrected the code and the fix will be in tomorrow's build.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:3 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.