Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3518 closed defect (fixed)

3D label: name 'session' is not defined

Reported by: j.r.lewandowski@… Owned by: Greg Couch
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc: Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.7.0-x86_64-i386-64bit
ChimeraX Version: 1.1.dev202007120755 (2020-07-12 07:55:44 UTC)
Description
Selected an atom and asked for the 3D label to be displayed. 

Log:
UCSF ChimeraX version: 1.1.dev202007120755 (2020-07-12)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 2qmt format mmcif fromDatabase pdb

2qmt title:  
Crystal Polymorphism of Protein GB1 Examined by Solid-state NMR and X-ray
Diffraction [more info...]  
  
Chain information for 2qmt #1  
---  
Chain | Description  
A | Immunoglobulin G-binding protein G  
  
Non-standard residues in 2qmt #1  
---  
IPA — isopropyl alcohol (2-propanol)  
MRD — (4R)-2-methylpentane-2,4-diol  
PO4 — phosphate ion  
  

> select clear

> select /A:102@O4

1 atom, 1 model selected  

> label sel atoms

Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 1238, in <lambda>  
% text: run(ses, cmd % sel_or_all(ses, ['atoms'], allow_empty_spec=False)))  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/run.py", line 31, in run  
results = command.run(text, log=log)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2805, in run  
result = ci.function(session, **kw_args)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 119, in label  
lm.add_labels(mobjects, object_class, view, settings, on_top)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 361, in add_labels  
ol[o] = lo = label_class(o, view, **settings)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 773, in __init__  
size=size, height=height, font=font)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 619, in __init__  
has_graphics = session.main_view.render is not None  
NameError: name 'session' is not defined  
  
NameError: name 'session' is not defined  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 619, in __init__  
has_graphics = session.main_view.render is not None  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 NVIDIA-12.0.24 355.11.10.50.10.103
OpenGL renderer: NVIDIA GeForce GT 750M OpenGL Engine
OpenGL vendor: NVIDIA CorporationHardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro11,3
      Processor Name: Intel Core i7
      Processor Speed: 2.5 GHz
      Number of Processors: 1
      Total Number of Cores: 4
      L2 Cache (per Core): 256 KB
      L3 Cache: 6 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      Boot ROM Version: 151.0.0.0.0
      SMC Version (system): 2.19f12

Software:

    System Software Overview:

      System Version: macOS 10.14.6 (18G5033)
      Kernel Version: Darwin 18.7.0
      Time since boot: 2 days 3:26

Graphics/Displays:

    Intel Iris Pro:

      Chipset Model: Intel Iris Pro
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel
      Device ID: 0x0d26
      Revision ID: 0x0008
      Automatic Graphics Switching: Supported
      gMux Version: 4.0.8 [3.2.8]
      Metal: Supported, feature set macOS GPUFamily1 v4

    NVIDIA GeForce GT 750M:

      Chipset Model: NVIDIA GeForce GT 750M
      Type: GPU
      Bus: PCIe
      PCIe Lane Width: x8
      VRAM (Total): 2 GB
      Vendor: NVIDIA (0x10de)
      Device ID: 0x0fe9
      Revision ID: 0x00a2
      ROM Revision: 3776
      Automatic Graphics Switching: Supported
      gMux Version: 4.0.8 [3.2.8]
      Metal: Supported, feature set macOS GPUFamily1 v4
      Displays:
        Color LCD:
          Display Type: Built-In Retina LCD
          Resolution: 2880 x 1800 Retina
          Framebuffer Depth: 24-Bit Color (ARGB8888)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Rotation: Supported
          Automatically Adjust Brightness: No

PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.9

Change History (3)

comment:1 by Eric Pettersen, 5 years ago

Cc: Tom Goddard added
Component: UnassignedGraphics
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission3D label: name 'session' is not defined

Reported by Jozef Lewandowski

comment:2 by Greg Couch, 5 years ago

Resolution: fixed
Status: assignedclosed

This was fixed the day after you downloaded ChimeraX. Please download a newer daily build.

in reply to:  3 ; comment:3 by J.R.Lewandowski@…, 5 years ago

Will do. Thank you.
Józef
________________________________
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
Sent: Wednesday, July 15, 2020 5:26 PM
Cc: goddard@cgl.ucsf.edu <goddard@cgl.ucsf.edu>; gregc@cgl.ucsf.edu <gregc@cgl.ucsf.edu>; Lewandowski, Jozef <J.R.Lewandowski@warwick.ac.uk>
Subject: Re: [ChimeraX] #3518: 3D label: name 'session' is not defined

#3518: 3D label: name 'session' is not defined
----------------------------------------+------------------------
          Reporter:  j.r.lewandowski@…  |      Owner:  Greg Couch
              Type:  defect             |     Status:  closed
          Priority:  normal             |  Milestone:
         Component:  Graphics           |    Version:
        Resolution:  fixed              |   Keywords:
        Blocked By:                     |   Blocking:
Notify when closed:                     |   Platform:  all
           Project:  ChimeraX           |
----------------------------------------+------------------------
Changes (by Greg Couch):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 This was fixed the day after you downloaded ChimeraX.  Please download a
 newer daily build.

--
Ticket URL: <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3518#comment:2>
ChimeraX <http://www.rbvi.ucsf.edu/chimerax/>
ChimeraX Issue Tracker
Note: See TracTickets for help on using tickets.