Opened 6 years ago

Closed 6 years ago

#2052 closed defect (duplicate)

Opening .pyc: source code string cannot contain null bytes

Reported by: chimerax-bug-report@… Owned by: Greg Couch
Priority: normal Milestone: 1.0
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:        Darwin-18.6.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-06-06)
Description
(Describe the actions that caused this problem to occur here)

Log:
Startup Messages  
---  
note | available bundle cache has not been initialized yet  
  
UCSF ChimeraX version: 0.9 (2019-06-06)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  
Downloading bundle ChimeraX_Atom_Search-1.0-cp36-cp36m-macosx_10_9_x86_64.whl  
ChimeraX_Atom_Search-1.0-cp36-cp36m-macosx_10_9_x86_64.whl is not a supported
wheel on this platform.  
You are using pip version 19.0.3, however version 19.1.1 is available.  
You should consider upgrading via the 'pip install --upgrade pip' command.  
  
Downloading bundle ChimeraX_ISOLDE-0.9.24-cp36-cp36m-macosx_10_9_x86_64.whl  
ChimeraX_ISOLDE-0.9.24-cp36-cp36m-macosx_10_9_x86_64.whl is not a supported
wheel on this platform.  
You are using pip version 19.0.3, however version 19.1.1 is available.  
You should consider upgrading via the 'pip install --upgrade pip' command.  
  
Downloading bundle ChimeraX_ISOLDE-0.9.24-cp36-cp36m-macosx_10_9_x86_64.whl  

Unknown command: pip install  
ChimeraX_ISOLDE-0.9.24-cp36-cp36m-macosx_10_9_x86_64.whl is not a supported
wheel on this platform.  
You are using pip version 19.0.3, however version 19.1.1 is available.  
You should consider upgrading via the 'pip install --upgrade pip' command.  
  

> open "/Volumes/CORSAIR/Centom 9-5-17/Michal/p97/Chemera/All superpos.py"

ChimeraX cannot open a regular Chimera session.  
An exporter from Chimera to ChimeraX is being worked on but is not ready at
this time.  

> open "/Volumes/CORSAIR/Centom 9-5-17/Michal/p97/Chemera/All superpos.pyc"

Traceback (most recent call last):  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 572, in _qt_safe  
run(session, "open " + quote_if_necessary(paths[0]))  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.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
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2632, in run  
result = ci.function(session, **kw_args)  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/open.py", line 64, in open  
path_models = session.models.open(paths, format=format, name=name, **kw)  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/models.py", line 604, in open  
session, filenames, format=format, name=name, **kw)  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/io.py", line 477, in open_multiple_data  
models, status = open_data(session, fspec, format=format, name=name, **kw)  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/io.py", line 431, in open_data  
models, status = open_func(*args, **kw)  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/scripting.py", line 57, in open_python_script  
code = compile(data, file_name, 'exec')  
ValueError: source code string cannot contain null bytes  
  
ValueError: source code string cannot contain null bytes  
  
File
"/private/var/folders/2t/1mjlvrs13gg9wypb6kh6xklh0000gn/T/AppTranslocation/CC259F73-F242-43E1-9C66-C065B92EC5C4/d/ChimeraX-0.9.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/scripting.py", line 57, in open_python_script  
code = compile(data, file_name, 'exec')  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-2.9.26
OpenGL renderer: AMD Radeon HD - FirePro D500 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedInput/Output
Milestone: 1.0
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionOpening .pyc: source code string cannot contain null bytes

Why are we allowing .pyc files to be opened?

comment:2 by Greg Couch, 6 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #1723.

Note: See TracTickets for help on using tickets.