CellProfiler/CellProfiler — Issue #66: JIRA [IMG-1498] Compiled CP error
Author: thouis
Created: 2011-11-23 20:49:47+00:00
State: open

8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050]
Traceback (most recent call last):
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/Applications/CellProfiler2.0.app/Contents/Resources/__boot__.py",
line 162, in<module>
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050]
_run('CellProfiler.py')
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/Applications/CellProfiler2.0.app/Contents/Resources/__boot__.py",
line 134, in _run
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050]
execfile(path, globals(), globals())
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/Applications/CellProfiler2.0.app/Contents/Resources/CellProfiler.py",
line 224, in<module>
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050]
show_splashbox = True)
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/cellprofilerapp.py", line
16, in __init__
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"wx/_core.pyc", line 7978, in __init__
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"wx/_core.pyc", line 7552, in _BootstrapApp
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/cellprofilerapp.py", line
42, in OnInit
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/gui/cpframe.py", line
142, in __init__
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/gui/cpframe.py", line
583, in __attach_views
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/gui/preferencesview.py",
line 38, in __init__
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050] File
"/cc/release_10953/CellProfiler/cellprofiler/preferences.py", line
200, in get_default_image_directory
8/15/11 11:13:56 AM
[0x0-0xd50d5].org.pythonmac.unspecified.CellProfiler2.0[15050]
TypeError: encode() argument 1 must be string, not None
After I downloaded the version from the website again, it worked. But it was just crashing here and not opening CP at all.

Original reporter: klmadden
Jira link: https://jira.broadinstitute.org/browse/IMG-1498
Assignee: leek

**Comment from leek on Tue, 30 Aug 2011 15:29:52 -0400:**
This code has changed substantially since 10953 - I unicode preference strings now. The line that has the error in the 10953 release doesn't cast to str anymore, so the current code shouldn't do this.