Closed pieper closed 7 years ago
Tx Steve.
Fixed
Jorge Onieva
On Sun, Apr 17, 2016 at 4:03 PM, Steve Pieper notifications@github.com wrote:
Installing the latest CIP fails with messages like the one below (on linux, but probably the same everywhere).
Key error is: ImportError: No module named Colors
I manually copied the Colors.py file into the logic folder and this resolved the problem for my installation.
The fix would be to explicitly include the Colors.py file in the installation:
https://github.com/acil-bwh/SlicerCIP/blob/develop/Scripted/CIP_Common/CMakeLists.txt#L5
Looks like the problem arose with this commit: 62afe4c https://github.com/acil-bwh/SlicerCIP/commit/62afe4c324165b316a1f37f2cbe0d87069ae4de9
@acil-bwh https://github.com/acil-bwh @rjosest https://github.com/rjosest
The following path was manually added to the PythonPath in CIP_TracheaStentPlanning: /home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP Traceback (most recent call last): File "
", line 1, in File "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP_TracheaStentPlanning.py", line 26, in from CIP.logic.SlicerUtil import SlicerUtil File "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP/logic/init.py", line 6, in from Colors import * ImportError: No module named Colors loadSourceAsModule - Failed to load file "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP_TracheaStentPlanning.py" as module "CIP_TracheaStentPlanning" ! Fail to instantiate module "CIP_TracheaStentPlanning" — You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/acil-bwh/SlicerCIP/issues/10
Installing the latest CIP fails with messages like the one below (on linux, but probably the same everywhere).
Key error is: ImportError: No module named Colors
I manually copied the Colors.py file into the logic folder and this resolved the problem for my installation.
The fix would be to explicitly include the Colors.py file in the installation:
https://github.com/acil-bwh/SlicerCIP/blob/develop/Scripted/CIP_Common/CMakeLists.txt#L5
Looks like the problem arose with this commit: https://github.com/acil-bwh/SlicerCIP/commit/62afe4c324165b316a1f37f2cbe0d87069ae4de9
@acil-bwh @rjosest