test_widgetRepresentation (qSlicerSequenceRegistrationModuleGenericTest.qSlicerSequenceRegistrationModuleGenericTest) ... Traceback (most recent call last):
File "/Volumes/Dashboards/Stable/S-4102-E-b/SequenceRegistration-build/lib/Slicer-4.10/qt-scripted-modules/SequenceRegistration.py", line 42, in setup
self.logic = SequenceRegistrationLogic()
File "/Volumes/Dashboards/Stable/S-4102-E-b/SequenceRegistration-build/lib/Slicer-4.10/qt-scripted-modules/SequenceRegistration.py", line 490, in __init__
import Elastix
ImportError: No module named Elastix
ok
The .s4ext files on the 4.10 branch do specify SlicerElastix as a dependency. SequenceRegistration specifies SlicerElastix as a dependency here. Anyone have an idea about why it is failing to import Elastix? Something specific to the build/test process on the nightly builds of extensions?
If SlicerElastix extension is installed them import Elastix should not throw an error. SlicerElastix is built successfully for Slicer-4.10.x and also for recent Slicer-4.11.x releases. I only see occasional build errors on Linux (dashboard upload fails, so it is not really a build error but some issue on the factory machine).
If an extension uses SlicerElastix and does not list it as a dependency then maybe the expectation is that the user will install it manually? Probably it would be better to list it as a dependency.
I didn’t see any import issues with the extension installed, but it appears the failing test for ImportError: No module named Elastix has been happening since at least 2018.
The extensions are both listing SlicerElastix as a dependency.
@jcfr Is this some issue with the factory machine?
Thanks for your effort. I got this error, while I am testing your modifications now. I got this error:
CochleaReg.py", line 398, in testSlicerCochleaRegistration
checksums='SHA256:d7cda4e106294a59591f03e74fbe9ecffa322dd1a9010b4d0590b377acc05eb5')[0]
TypeError: downloadFromURL() got an unexpected keyword argument 'checksums'
Reload and Test: Exception!
downloadFromURL() got an unexpected keyword argument 'checksums'
Since the downloaded data are for testing … keeping the storage node would not give the opportunity for the user to save in a location different from the tmp folder.
Updating the CochleaReg module, I noticed you were relaying on the filename associated with the storage node to restore the node name.
Without revisiting the approach, here what i did to make sure the storage node was available: