View Issue Details

IDProjectCategoryView StatusLast Update
0003052Slicer4Core: Building (CMake, Superbuild)public2017-06-07 23:27
Reporterpieper Assigned Tojcfr  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0003052: cannot load any sample data - urllib not build correctly
Description

With a fresh mac build that uses the new cmakeified python I cannot download sample data

Steps To Reproduce

Start slicer
Go to sample data
Click Download MRHead <- Bug: nothing happens!

Additional Information

Here's the info in the terminal where I started slicer:

Show module (name): "SampleData"
Traceback (most recent call last):
File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 128, in downloadMRHead
filePath = self.downloadFileIntoCache('http://www.slicer.org/slicerWiki/images/4/43/MR-head.nrrd', 'MR-head.nrrd')
File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 171, in downloadFileIntoCache
return self.downloadFile(uri, destFolderPath, name)
File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 192, in downloadFile
import urllib
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib.py", line 1379, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy

TagsNo tags attached.

Relationships

related to 0003055 closedjcfr SimpleITK python bindings won't install 

Activities

pieper

pieper

2013-04-05 06:51

administrator   ~0008317

Note the same issue prevents SimpleITK's python wrapping from building. The following build error occurred after enabling SimpleITK on a build of slicer that otherwise completed and ran.

Scanning dependencies of target SimpleITK_PYTHON
[100%] Building CXX object Wrapping/CMakeFiles/SimpleITK_PYTHON.dir/SimpleITKPYTHON_wrap.cxx.o
Linking CXX shared module ../lib/_SimpleITK.so
[100%] Built target SimpleITK_PYTHON
[ 96%] Performing install step for 'SimpleITK'
Traceback (most recent call last):
File "/Users/pieper/slicer4/latest/Slicer-superbuild/SimpleITK-build/Wrapping/PythonPackage/setup.py", line 2, in <module>
use_setuptools()
File "/Users/pieper/slicer4/latest/Slicer-superbuild/SimpleITK-build/Wrapping/PythonPackage/distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/Users/pieper/slicer4/latest/Slicer-superbuild/SimpleITK-build/Wrapping/PythonPackage/distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "/Users/pieper/slicer4/latest/Slicer-superbuild/SimpleITK-build/Wrapping/PythonPackage/distribute_setup.py", line 186, in download_setuptools
from urllib2 import urlopen
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib2.py", line 111, in <module>
from urllib import (unwrap, unquote, splittype, splithost, quote,
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib.py", line 1379, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy
[ 96%] Completed 'SimpleITK'
[ 96%] Built target SimpleITK
[ 97%] Creating directories for 'Slicer'
[ 97%] No download step for 'Slicer'
[ 97%] [ 98%] No update step for 'Slicer'
No patch step for 'Slicer'
[ 99%] Performing configure step for 'Slicer'
-- The C compiler identification is Clang 4.0.0
CMake Error at /usr/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake:67 (message):
Could not find install_name_tool, please check your installation.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:165 (include)
CMakeLists.txt:10 (project)

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/CMakeFiles/2.8.10.20130215-g57833/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Could not find cmake module file:/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/CMakeFiles/2.8.10.20130215-g57833/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!
make[2]: [Slicer-prefix/src/Slicer-stamp/Slicer-configure] Error 1
make[1]:
[CMakeFiles/Slicer.dir/all] Error 2
make: *** [all] Error 2

0000006 Slicer-superbuild $

jcfr

jcfr

2013-04-05 08:10

administrator   ~0008319

Fixed in r21869
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=21869

BUG: Fix import of urllib MacOsx by updating CMake'ified python

Thanks to Steve Pieper for reporting the issue.

Following Slicer commit r21863 and commit r21867, CMake'ified python is
used to build Slicer. This commit update the python project so that the
python extension _scproxy is also built.

// ---------
The error being fixed was:

File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 192, in downloadFile
import urllib
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib.py", line 1379, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy
// ---------

The associated commit in CMake'ified python is:
https://github.com/davidsansome/python-cmake-buildsystem/commit/a813b59647eb40b8c6a3411eee83268ae98c9452

See http://na-mic.org/Bug/view.php?id=3052
Fixes 0003052

pieper

pieper

2013-04-05 10:21

administrator   ~0008322

Thanks for the quick fix!

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014651

Fix committed to 2145-support-for-installing-extension-from-file branch.

Related Changesets

Slicer: 2145-support-for-installing-extension-from-file 9a1d72e0

2013-04-05 12:09:51

jcfr

Details Diff
BUG: Fix import of urllib MacOsx by updating CMake'ified python

Thanks to Steve Pieper for reporting the issue.

Following Slicer commit r21863 and commit r21867, CMake'ified python is
used to build Slicer. This commit update the python project so that the
python extension _scproxy is also built.

// ---------
The error being fixed was:

File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 192, in downloadFile
import urllib
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib.py", line 1379, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy
// ---------

The associated commit in CMake'ified python is:
https://github.com/davidsansome/python-cmake-buildsystem/commit/a813b59647eb40b8c6a3411eee83268ae98c9452

See http://na-mic.org/Bug/view.php?id=3052
Fixes 0003052

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21869 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_python.cmake Diff File

Issue History

Date Modified Username Field Change
2013-04-05 06:23 pieper New Issue
2013-04-05 06:23 pieper Status new => assigned
2013-04-05 06:23 pieper Assigned To => jcfr
2013-04-05 06:51 pieper Note Added: 0008317
2013-04-05 08:10 jcfr Note Added: 0008319
2013-04-05 08:10 jcfr Status assigned => resolved
2013-04-05 08:10 jcfr Fixed in Version => Slicer 4.3.0
2013-04-05 08:10 jcfr Resolution open => fixed
2013-04-05 10:21 pieper Relationship added related to 0003055
2013-04-05 10:21 pieper Note Added: 0008322
2013-04-05 10:21 pieper Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 2145-support-for-installing-extension-from-file 9a1d72e0
2017-06-07 23:27 jcfr Note Added: 0014651