Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2441 closed defect (duplicate)

ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'

Reported by: hansenbry@… Owned by: Greg Couch
Priority: normal Milestone:
Component: Input/Output 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.18362
ChimeraX Version: 0.91 (2019-09-20)
Description
All *.ims and *.vrml out of Imaris program are failing with a 'FileNameArgument' error

Log:
UCSF ChimeraX version: 0.91 (2019-09-20)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
(C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\\__init__.py)  
  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py",
line 587, in _qt_safe  
from chimerax.core.commands import run, FileNameArg  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 419.72
OpenGL renderer: GeForce GTX 1080/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (4)

comment:1 by pett, 6 years ago

Component: UnassignedInput/Output
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'

comment:2 by pett, 6 years ago

Resolution: duplicate
Status: assignedclosed

Hi Bryan,

This bug was only in the daily build for less than a day and has been fixed. If you get a new daily build, things should be fine. The error only happens if you use the File→Open dialog to open a file, rather than the file history icons or the "open" command, which is why you may not have run into it before this. Sorry for the inconvenience.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

in reply to:  3 ; comment:3 by hansenbry@…, 6 years ago

Awesome! Thanks for the update. I'll download the new daily build tomorrow and try again.

-----Original Message-----
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> 
Sent: Wednesday, September 25, 2019 3:48 PM
Cc: gregc@cgl.ucsf.edu; Hansen, Bryan (NIH/NIAID) [E] <hansenbry@niaid.nih.gov>
Subject: Re: [ChimeraX] #2441: ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'

#2441: ImportError: cannot import name 'FileNameArg' from 'chimerax.core.commands'
-----------------------------------+------------------------
          Reporter:  hansenbry@…   |      Owner:  Greg Couch
              Type:  defect        |     Status:  closed
          Priority:  normal        |  Milestone:
         Component:  Input/Output  |    Version:
        Resolution:  duplicate     |   Keywords:
        Blocked By:                |   Blocking:
Notify when closed:                |   Platform:  all
           Project:  ChimeraX      |
-----------------------------------+------------------------
Changes (by Eric Pettersen):

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


Comment:

 Hi Bryan,
         This bug was only in the daily build for less than a day and has  been fixed.  If you get a new daily build, things should be fine.  The  error only happens if you use the File→Open dialog to open a file, rather  than the file history icons or the "open" command, which is why you may  not have run into it before this.  Sorry for the inconvenience.

 --Eric

         Eric Pettersen
         UCSF Computer Graphics Lab

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

comment:4 by pett, 6 years ago

I guess I didn't make it clear, but this bug was fixed a few days ago, so you could download the daily build right now and get the fix...

Note: See TracTickets for help on using tickets.