View Issue Details

IDProjectCategoryView StatusLast Update
0002636Slicer4Core: Scripting (Wrapping, Python)public2017-06-07 23:27
Reportermgrauer Assigned Tojcfr  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionSlicer 4.1.1 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002636: package pyconfig.h with Slicer to enable pip installation
Description

To install pip in my Slicer Python, I needed pyconfig.h at the following location

SLICER_INSTALL_DIR/lib/Python/include/python2.6/pyconfig.h

Could this file be packaged with the nightly binary builds?

An alternative would be to include pip with the nightly binary, but perhaps installing other Python modules would need pyconfig.h.

TagsNo tags attached.

Relationships

related to 0002637 acknowledgedjcfr Include all Python header files with nightly binary build 
related to 0002649 closedjcfr Allow distribute to be installed directly using Slicer executable 

Activities

jcfr

jcfr

2012-10-15 14:29

administrator   ~0006552

Fixed in r21191
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21191

mgrauer

mgrauer

2012-10-16 08:06

reporter   ~0006565

I tested this with nightly binary from 10-16-2012, it works great, thanks.

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014549

Fix committed to 1683-launcher-with-output branch.

Related Changesets

Slicer: 1683-launcher-with-output 9bbd0780

2012-10-15 18:28:52

jcfr

Details Diff
COMP: Install pyconfig.h required to install distribute in an installed tree

It will fix the following error:

error: invalid Python installation: unable to open /home/jchris/Projects/Slicer4-Superbuild-Debug/Slicer-build/_CPack_Packages/linux-amd64/TGZ/Slicer-4.1.0-2012-10-15-linux-amd64/lib/Python/include/python2.6/pyconfig.h (No such file or directory)
Something went wrong during the installation.

occurring when install distribute applying the following steps:

1) curl -O http://python-distribute.org/distribute_setup.py
2) ./Slicer --launch /usr/bin/python2.6 distribute_setup.py

Note: A different error occurs when "distribute_setup.py" is executed
directly using Slicer executable:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 8, in <module>
os.chdir(os.path.dirname(os.path.abspath(__file__)))
NameError: name '__file__' is not defined

This is tracked by issue 0002649

See http://www.na-mic.org/Bug/view.php?id=2636

Fixes 0002636

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

Issue History

Date Modified Username Field Change
2012-10-12 10:29 mgrauer New Issue
2012-10-12 10:29 mgrauer Status new => assigned
2012-10-12 10:29 mgrauer Assigned To => jcfr
2012-10-12 11:05 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-12 11:05 jcfr Relationship added related to 0002637
2012-10-15 14:08 jcfr Relationship added related to 0002649
2012-10-15 14:29 jcfr Note Added: 0006552
2012-10-15 14:29 jcfr Status assigned => resolved
2012-10-15 14:29 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-15 14:29 jcfr Resolution open => fixed
2012-10-16 08:06 mgrauer Note Added: 0006565
2012-10-16 08:06 mgrauer Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 1683-launcher-with-output 9bbd0780
2017-06-07 23:27 jcfr Note Added: 0014549