View Issue Details

IDProjectCategoryView StatusLast Update
0002649Slicer4Core: Scripting (Wrapping, Python)public2017-06-07 23:27
Reportermgrauer Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002649: Allow distribute to be installed directly using Slicer executable
Description

1) curl -O http://python-distribute.org/distribute_setup.py
2) $ ./Slicer distribute_setup.py

Number of registered modules: 1
Number of instantiated modules: 1
Number of loaded modules: 1
Loading Slicer RC file [/home/jchris/.slicerrc.py]
Slicer RC file loaded [15/10/2012 21:59:09]
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Extracting in /tmp/tmpnZa2AC
Now working in /tmp/tmpnZa2AC/distribute-0.6.28
Installing Distribute
Number of registered modules: 1
Number of instantiated modules: 1
Number of loaded modules: 1
Loading Slicer RC file [/home/jchris/.slicerrc.py]
Slicer RC file loaded [15/10/2012 21:59:14]
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
Something went wrong during the installation.
See the error message above.

TagsNo tags attached.

Relationships

related to 0002636 closedjcfr package pyconfig.h with Slicer to enable pip installation 

Activities

jcfr

jcfr

2012-10-17 14:49

administrator   ~0006606

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

mgrauer

mgrauer

2012-10-29 06:17

reporter   ~0006833

I tested this with the nightly binary build 10-24-2012 on Linux and it worked correctly.

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014544

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

Slicer: 1683-launcher-with-output 53e2875d

2012-10-17 18:48:19

jcfr

Details Diff
BUG: Ensure __file__ attribute is defined when running python script

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

Fixes 0002649

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21208 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Base/QTGUI/qSlicerScriptedLoadableModule.cxx Diff File
mod - Base/QTGUI/qSlicerScriptedLoadableModuleWidget.cxx Diff File
mod - SuperBuild/External_CTK.cmake Diff File

Issue History

Date Modified Username Field Change
2012-10-15 14:07 jcfr New Issue
2012-10-15 14:07 jcfr Status new => assigned
2012-10-15 14:07 jcfr Assigned To => jcfr
2012-10-15 14:08 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-15 14:08 jcfr Relationship added related to 0002636
2012-10-17 09:44 jcfr Reporter jcfr => mgrauer
2012-10-17 14:49 jcfr Note Added: 0006606
2012-10-17 14:49 jcfr Status assigned => resolved
2012-10-17 14:49 jcfr Fixed in Version => Slicer 4.2.0 - coming release
2012-10-17 14:49 jcfr Resolution open => fixed
2012-10-29 06:17 mgrauer Note Added: 0006833
2012-10-29 06:17 mgrauer Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 1683-launcher-with-output 53e2875d
2017-06-07 23:27 jcfr Changeset attached => Slicer 1683-launcher-with-output 9bbd0780
2017-06-07 23:27 jcfr Note Added: 0014544