Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to bundle Colors.py with extension #10

Closed
pieper opened this issue Apr 17, 2016 · 1 comment
Closed

fail to bundle Colors.py with extension #10

pieper opened this issue Apr 17, 2016 · 1 comment

Comments

@pieper
Copy link
Collaborator

pieper commented Apr 17, 2016

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

@acil-bwh @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 "<string>", line 1, in <module>
  File "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP_TracheaStentPlanning.py", line 26, in <module>
    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 <module>
    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" 
@jonieva
Copy link
Collaborator

jonieva commented Apr 17, 2016

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
62afe4c

@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
#10

@jonieva jonieva closed this as completed Jul 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants