Opened 9 years ago
Closed 9 years ago
#499 closed defect (fixed)
Error at startup on Linux
Reported by: | Tom Goddard | Owned by: | Greg Couch |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Platform | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
ChimeraX gives the following error on startup on Ubuntu 16.04 LTS.
$ ./chimerax/bin/ChimeraX
INFO: Traceback (most recent call last):
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/PIL/Image.py", line 2285, in open
fp.seek(0)
AttributeError: 'str' object has no attribute 'seek'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/goddard/ucsf/chimerax/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/home/goddard/ucsf/chimerax/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/ChimeraX_main.py", line 639, in <module>
exit_code = init(sys.argv)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/ChimeraX_main.py", line 433, in init
_xdg.install_if_needed(sess, localized_app_name)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/chimerax/core/_xdg.py", line 411, in install_if_needed
install(session, localized_app_name, reinstall=reinstall, info=info)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/chimerax/core/_xdg.py", line 386, in install
install_icons(info, app_data_dir)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/chimerax/core/_xdg.py", line 303, in install_icons
im = Image.open(icon)
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/PIL/Image.py", line 2287, in open
fp = io.BytesIO(fp.read())
AttributeError: 'str' object has no attribute 'read'
ERROR: AttributeError: 'str' object has no attribute 'read'
File "/home/goddard/ucsf/chimerax/lib/python3.5/site-packages/PIL/Image.py", line 2287, in open
fp = io.BytesIO(fp.read())
See log for Python traceback.
Change History (3)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Bug is probably due to the fact that someone actually gave an icon for a data format.
Commenting out this _xdg call in ChimeraX_main.py and ChimeraX works on my ubuntu 16.04 LTS. I may have installed some developer libraries, ie it may not be a stock ubuntu 16.04 system.