View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003065 | Slicer4 | Core: Base Code | public | 2013-04-13 07:56 | 2017-06-07 23:27 |
Reporter | pohl | Assigned To | jcfr | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | MAC | OS | Ron's Machine | OS Version | N/A |
Product Version | |||||
Target Version | Slicer 4.3.0 | Fixed in Version | Slicer 4.3.0 | ||
Summary | 0003065: ImportError: No module named Tkinter | ||||
Description | Running a task in the EMSegmenter the following happens
| ||||
Additional Information | Probably a side effect of the migration to CMake'ified python. | ||||
Tags | No tags attached. | ||||
It turns out that the python extension are not properly fixed up. As illustrated below, the path is: @executable_path/../../Contents/MacOS/<PythonExtension>.so whereas it should be: @executable_path/../../Contents/lib/Python/lib/python2.7/lib-dynload/<PythonExtension>.so Output of otool: factory-south:lib-dynload kitware$ otool -L _tkinter.so |
|
While it could be problematic not to have properly fixed up extension, this is a different issue but not the source of the current problem. The problem was that the "lib-tk" path wasn't appended to the PYTHONPATH definition while compiling getpath.c (unix) or getpathp.c (windows) Topic "add-lib-tk-to-pythonpath" should fix the issue and is currently being tested. |
|
Topic fixed tcl test associate with CMake'ified python. See http://open.cdash.org/buildSummary.php?buildid=2877484 Local build of slicer including the change allow to import Tkinter :) External_python.cmake will be updated soon. |
|
Fixed in r21891 |
|
Closing resolved issues that have not been updated in more than 3 months |
|
Fix committed to 2145-support-for-installing-extension-from-file branch. |
|
Slicer: 2145-support-for-installing-extension-from-file 9d396cb1 2013-04-16 13:09:03 Details Diff |
BUG: Fix import of Tkinter and Fix compilation errors on VS 2010 and 2012 Updated CMake'ified python external project to include the following topics: * 60ee828 - Merge branch 'add-lib-tk-to-pythonpath' * 8a3c51a - Merge branch '8-add-ctestconfig' * 22a0870 - Merge branch 'fix-msvc2012-build-error' * a70729f - Merge branch 'fix-msvc2012-link-error' See https://github.com/davidsansome/python-cmake-buildsystem/pull/13 Fixes python-cmake-buildsystem issue 13 See http://www.na-mic.org/Bug/view.php?id=3065 Fixes 0003065 git-svn-id: http://svn.slicer.org/Slicer4/trunk@21891 3bd1e089-480b-0410-8dfb-8563597acbee |
||
mod - SuperBuild/External_python.cmake | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-04-13 07:56 | pohl | New Issue | |
2013-04-13 07:56 | pohl | Status | new => assigned |
2013-04-13 07:56 | pohl | Assigned To | => jcfr |
2013-04-15 10:45 | jcfr | Note Added: 0008399 | |
2013-04-15 11:13 | jcfr | Note Edited: 0008399 | |
2013-04-15 11:25 | jcfr | Note Edited: 0008399 | |
2013-04-16 07:07 | jcfr | Note Added: 0008403 | |
2013-04-16 07:08 | jcfr | Note Added: 0008404 | |
2013-04-16 07:08 | jcfr | Note Edited: 0008404 | |
2013-04-16 09:12 | jcfr | Note Added: 0008407 | |
2013-04-16 09:12 | jcfr | Status | assigned => resolved |
2013-04-16 09:12 | jcfr | Fixed in Version | => Slicer 4.3.0 |
2013-04-16 09:12 | jcfr | Resolution | open => fixed |
2013-04-16 09:12 | jcfr | Target Version | => Slicer 4.3.0 |
2014-03-06 04:53 | jcfr | Note Added: 0010783 | |
2014-03-06 04:54 | jcfr | Status | resolved => closed |
2017-06-07 23:27 | jcfr | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file 9d396cb1 |
2017-06-07 23:27 | jcfr | Note Added: 0014649 |