Opened 7 years ago
Closed 7 years ago
#1219 closed defect (fixed)
UnicodeEncodeError writing WaveFront OBJ
| Reported by: | Owned by: | Tom Goddard | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | Input/Output | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description (last modified by )
The following bug report has been submitted:
Platform: Darwin-17.7.0-x86_64-i386-64bit
ChimeraX Version: 0.7 (2018-07-31)
Description
Was saving out to OBJ format. Note: objects were clipped with the clip rotate tool before hand. Don't know if that matters. Intending to import into Cinema 4D, in which other attempts weren't able to be opened. STL worked. Thank you!
Log:
Startup Messages
---
note | available bundle cache has not been initialized yet
UCSF ChimeraX version: 0.7 (2018-07-31)
OpenGL version: 4.1 ATI-1.68.20
OpenGL renderer: AMD Radeon Pro Vega 64 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.
How to cite UCSF ChimeraX
open
/Volumes/CCFV_Work/MLG_1511_561_3D_RA_March2016/MGoldbergM4600_MG/3D/STAT_DNA/1bf5.pdb
Opened PDB data containing 5117 atoms and 5297 bonds
Chain information for 1bf5.pdb #1
---
Chain | Description
A | signal transducer and activator of transcription 1-α/β
B | DNA (5'- D(*ap*cp*ap*gp*tp*tp*tp*cp*cp*cp*gp*tp*ap*ap*ap*tp*G P*C)- 3')
C | DNA (5'- D(*tp*gp*cp*ap*tp*tp*tp*ap*cp*gp*gp*gp*ap*ap*ap*cp*T P*G)- 3')
style selAtoms sphere
Changed 5117 atom styles
style selAtoms sphere
Changed 5117 atom styles
style selAtoms stick
Changed 5117 atom styles
style selAtoms sphere
Changed 5117 atom styles
style selAtoms stick
Changed 5117 atom styles
style selAtoms ball
Changed 5117 atom styles
color selAtoms byhetero
color selAtoms bychain
hbonds selAtoms
Traceback (most recent call last):
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/tool.py", line 50, in button_press_cb
ks.run_shortcut(keys)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/shortcuts.py", line 375, in run_shortcut
sc.run(self.session, status = self._enabled)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/shortcuts.py", line 272, in run
commands.run(s, f)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/run.py", line 31, in run
results = command.run(text, log=log)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2561, in run
result = ci.function(session, **kw_args)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/cmd.py", line 83, in cmd_hbonds
result = hb_func(session, struct_info, dist_slop=dist_slop,
angle_slop=angle_slop, **base_kw)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hbond.py", line 560, in find_hbonds
donor_hyds = hyd_positions(donor_atom)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hydpos.py", line 39, in hyd_positions
bonded_locs.append(b_heavy._hb_coord)
AttributeError: 'Atom' object has no attribute '_hb_coord'
AttributeError: 'Atom' object has no attribute '_hb_coord'
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hydpos.py", line 39, in hyd_positions
bonded_locs.append(b_heavy._hb_coord)
See log for complete Python traceback.
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.
style selAtoms sphere
Changed 5117 atom styles
show selAtoms ribbons
hide selAtoms ribbons
show selAtoms ribbons
hide selAtoms ribbons
show selAtoms surfaces
ui mousemode rightMode rotate
ui mousemode rightMode translate
ui mousemode rightMode zoom
ui mousemode rightMode zoom
ui mousemode rightMode zoom
ui mousemode rightMode move planes
ui mousemode rightMode place marker
ui mousemode rightMode select
ui mousemode rightMode rotate
ui mousemode rightMode translate
view orient cofr false
set silhouettes true
set silhouettes false
lighting flat
lighting flat
set silhouettes false
set silhouettes true
lighting flat
lighting full
set silhouettes false
lighting soft
lighting full
lighting soft
lighting shadows true intensity 0.5
lighting shadows false
lighting shadows true
lighting simple
lighting simple
lighting simple
lighting shadows true
lighting shadows false
lighting shadows true
lighting simple
lighting shadows true
lighting soft
lighting shadows true intensity 0.5
lighting soft
lighting shadows true intensity 0.5
lighting soft
lighting shadows true intensity 0.5
lighting soft
lighting shadows true intensity 0.5
lighting simple
lighting shadows true
lighting soft
lighting simple
lighting soft
lighting full
lighting full
lighting full
lighting soft
lighting full
lighting soft
lighting shadows true intensity 0.5
lighting shadows false
lighting shadows true
lighting simple
lighting simple
lighting shadows true
lighting simple
lighting soft
lighting shadows true intensity 0.5
lighting simple
lighting shadows true
lighting simple
lighting shadows true
lighting simple
lighting shadows true
lighting simple
lighting shadows true
lighting simple
lighting shadows true
lighting soft
lighting simple
lighting soft
lighting simple
lighting shadows true
lighting simple
lighting simple
lighting shadows true
lighting soft
lighting full
set bgColor black
set bgColor gray
set bgColor white
set bgColor black
view cofr false
color selAtoms bychain
color selAtoms byhetero
color selAtoms bychain
color selAtoms byhetero
show selAtoms surfaces
show selAtoms surfaces
hide selAtoms surfaces
hide selAtoms surfaces
show selAtoms surfaces
hide selAtoms ribbons
hide selAtoms ribbons
show selAtoms ribbons
show selAtoms ribbons
hide selAtoms
hide selAtoms
show selAtoms
show selAtoms
style selAtoms stick
Changed 5117 atom styles
style selAtoms sphere
Changed 5117 atom styles
style selAtoms ball
Changed 5117 atom styles
color selAtoms byhetero
color selAtoms bychain
hbonds selAtoms
Traceback (most recent call last):
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/tool.py", line 50, in button_press_cb
ks.run_shortcut(keys)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/shortcuts.py", line 375, in run_shortcut
sc.run(self.session, status = self._enabled)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/shortcuts/shortcuts.py", line 272, in run
commands.run(s, f)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/run.py", line 31, in run
results = command.run(text, log=log)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2561, in run
result = ci.function(session, **kw_args)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/cmd.py", line 83, in cmd_hbonds
result = hb_func(session, struct_info, dist_slop=dist_slop,
angle_slop=angle_slop, **base_kw)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hbond.py", line 560, in find_hbonds
donor_hyds = hyd_positions(donor_atom)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hydpos.py", line 39, in hyd_positions
bonded_locs.append(b_heavy._hb_coord)
AttributeError: 'Atom' object has no attribute '_hb_coord'
AttributeError: 'Atom' object has no attribute '_hb_coord'
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/atomic/hbonds/hydpos.py", line 39, in hyd_positions
bonded_locs.append(b_heavy._hb_coord)
See log for complete Python traceback.
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.
ui mousemode rightMode distance
ui mousemode rightMode distance
distance /C:2011@C8 /A:629@CB
Distance between /C DG 2011 C8 and /A HIS 629 CB: 41.336Å
distance /B:1015@N6 /A:652@CB
Distance between /B DA 1015 N6 and /A LYS 652 CB: 42.390Å
distance /A:588@NH2 /C:2001@O5'
Distance between /A ARG 588 NH2 and /C DT 2001 O5': 42.515Å
distance /B:1004@OP1 /B:1005@C7
Distance between /B DG 1004 OP1 and DT 1005 C7: 7.143Å
ui mousemode rightMode clip rotate
No model specified for saving map
Exception ignored in: <bound method Buffer.__del__ of
<chimerax.core.graphics.opengl.Buffer object at 0x124b611d0>>
Traceback (most recent call last):
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 1900, in __del__
raise RuntimeError('OpenGL buffer was not deleted before core.graphics.Buffer
destroyed')
RuntimeError: OpenGL buffer was not deleted before core.graphics.Buffer
destroyed
No model specified for saving map
Traceback (most recent call last):
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/ui/gui.py", line 744, in <lambda>
save_action.triggered.connect(lambda arg, s=self, sess=session:
s.file_save_cb(sess))
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/ui/gui.py", line 532, in file_save_cb
self.save_dialog.display(self, session)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/ui/save_dialog.py", line 141, in display
fmt.save(session, filename)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/ui/save_dialog.py", line 40, in save
return self._save(session, filename)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/ui/save_dialog.py", line 66, in <lambda>
fmt.export(ses, _add_missing_suffix(fn, fmt), fmt.name))
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/io.py", line 198, in export
result = self.export_func(session, path, **kw)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/wavefront_obj/__init__.py", line 37, in save_file
return obj.write_obj(session, path, models)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/wavefront_obj/obj.py", line 204, in write_obj
write_object(file, name, va, na, tca, ta, pos, obj_to_unity)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/wavefront_obj/obj.py", line 219, in write_object
file.write('o %s\n' % name)
UnicodeEncodeError: 'ascii' codec can't encode character '\xc5' in position
31: ordinal not in range(128)
UnicodeEncodeError: 'ascii' codec can't encode character '\xc5' in position
31: ordinal not in range(128)
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/wavefront_obj/obj.py", line 219, in write_object
file.write('o %s\n' % name)
See log for complete Python traceback.
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.
ui mousemode rightMode clip rotate
ui mousemode rightMode clip rotate
OpenGL version: 4.1 ATI-1.68.20
OpenGL renderer: AMD Radeon Pro Vega 64 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.
Change History (2)
comment:1 by , 7 years ago
| Component: | Unassigned → Input/Output |
|---|---|
| Description: | modified (diff) |
| Milestone: | → 1.0 |
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → UnicodeEncodeError writing WaveFront OBJ |
comment:2 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed.
The atom distance labels caused the error saving OBJ format because the label text contained a non-ascii Angstrom symbol.
Note:
See TracTickets
for help on using tickets.
Reported by Arik Thuesen