﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
3518	3D label: name 'session' is not defined	j.r.lewandowski@…	Greg Couch	"{{{
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

}}}
"	defect	closed	normal		Graphics		fixed		Tom Goddard				all	ChimeraX
