Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1538 closed defect (fixed)

NameError: name 'p' is not defined

Reported by: s.piper@… Owned by:
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hi ChimeraX team,
I want to use ChimeraX version 0.6 to be able to use the plugin Isolde.
However, I get an error when opening my files (both .pdb files and .mrc files) in ChimeraX (not in any other versions, but only in 0.6), see below.

Do you know if there is something wrong with my files or is it a bug in the version? Since I can open these same files in other version of ChimeraX (e.g. 0.1 and 0.7), I don’t think it has necessarily to do with my files themselves.

Many thanks for your help!

Here the error file:

UCSF ChimeraX version: 0.6 (2018-04-06)
OpenGL version: 4.1 INTEL-10.25.17
OpenGL renderer: Intel(R) Iris(TM) Graphics 6100
OpenGL vendor: Intel Inc.
How to cite UCSF ChimeraX<cxcmd:help%20help:credits.html>
Traceback (most recent call last):
  File "/Applications/ChimeraX 3.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/gui.py", line 402, in dropEvent
    _open_dropped_file(self.session, p)
  File "/Applications/ChimeraX 3.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/gui.py", line 883, in _open_dropped_file
    run(session, 'open %s' % quote_if_necessary(p))
NameError: name 'p' is not defined


NameError: name 'p' is not defined

File "/Applications/ChimeraX 3.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/gui.py", line 883, in _open_dropped_file
run(session, 'open %s' % quote_if_necessary(p))

Change History (3)

comment:1 by Tristan Croll, 7 years ago

Platform: all
Project: ChimeraX

Hi Sarah,

There's no need to be using that old version any more. I'll have an "official" new version (built for ChimeraX 0.8) coming out in a week or so, but I'd be happy to send you an advance copy.

Best regards,

Tristan

comment:2 by Eric Pettersen, 7 years ago

Component: UnassignedInput/Output
Resolution: fixed
Status: newclosed

Hi Sarah,

Also. this problem was fixed in April, but only affects files that you drag-and-drop onto ChimeraX. If you open the file via the File→Open.. menu entry then it will work. You can also use the "open" command to open your file ("open browse" will also being up a file browser if you don't want to have to type in the whole file name).

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

in reply to:  3 ; comment:3 by s.piper@…, 7 years ago

Thank you so much Eric and Tristan for your quick replies.
This was indeed a very easy fix and open browse worked like a charm!
Many thanks,

Sarah


On 18 Dec 2018, at 5:37 am, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu<mailto:ChimeraX-bugs-admin@cgl.ucsf.edu>> wrote:

#1538: NameError: name 'p' is not defined
-----------------------------------+--------------------
         Reporter:  s.piper@…     |      Owner:  (none)
             Type:  defect        |     Status:  closed
         Priority:  normal        |  Milestone:
        Component:  Input/Output  |    Version:
       Resolution:  fixed         |   Keywords:
       Blocked By:                |   Blocking:
Notify when closed:                |   Platform:  all
          Project:  ChimeraX      |
-----------------------------------+--------------------
Changes (by pett):

* status:  new => closed
* resolution:   => fixed
* component:  Unassigned => Input/Output


Comment:

Hi Sarah,
        Also. this problem was fixed in April, but only affects files that
you drag-and-drop onto ChimeraX.  If you open the file via the File→Open..
menu entry then it will work.  You can also use the "open" command to open
your file ("open browse" will also being up a file browser if you don't
want to have to type in the whole file name).

--Eric

        Eric Pettersen
        UCSF Computer Graphics Lab

--
Ticket URL: <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/1538#comment:2>
ChimeraX <http://www.rbvi.ucsf.edu/chimerax/>
ChimeraX Issue Tracker

…………………………………………………………………..
Sarah Piper, PhD student
Landsberg/King labs, Institute for Molecular Bioscience
University of Queensland, St Lucia, 4072 QLD, Australia

Phone: +61 7 3346 2022
Email: sarah.piper@uq.edu.au<mailto:sarah.piper@uq.edu.au>
LinkedIn: www.linkedin.com/in/sjpiper89/<https://www.linkedin.com/in/sjpiper89/>


Note: See TracTickets for help on using tickets.