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
Slicer fails to load SegmentEditorExtraEffects from SilceTracker #37
Comments
I cannot reproduce the error using Slicer 4.11.20200930 (revision 29402 / 002be18) linux-amd64 - installed release. If I type this into the Python console then I don't get any error:
What did you do when this error showed up for you? |
Thanks for trying. I simply downloaded the release, installed SliceTracker and all necessary extensions from the Extensions Manager, and restarted. There were other messages before the quoted message. See my posting on the Slicer Discourse. |
I was able to reproduce the problem and it was caused by having So, instead of changing the import strategy in all segment editor effects (in this extension and several others), a less intrusive and more robust solution is to move |
Thanks for the suggestion. I like the less invasive way you suggested. By the way, the change I proposed was actually coming from one of the templates for slicerExtensionWizard: While working on the issue, I realized that the code was originally generated by the wizard, and the current version of the ScriptedSegmentEditorEffect does absolute import. So I thought it would make sense to change the import strategy in this extension. |
I agree, explicit relative import is probably the right thing to do, but I would rather do it when we must change something around these imports anyway (I would like to avoid spending time now with testing potential side effects of this change). |
Sounds good. Thank you! |
While invistigating the SliceTracker issue on the new Slicer release( https://discourse.slicer.org/t/slicetracker-module-cannot-be-loaded-on-slicer-4-11-20200930/13895/3 ), I found that Slicer fails to load SegmentEditorExtraEffects from SilceTracker:
The text was updated successfully, but these errors were encountered: