You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: Failure: ImportError (cannot import name 'intvol' from partially initialized module 'nipy.algorithms.statistics' (most likely due to a circular import) (/var/tmp/portage/sci-libs/nipy-0.5.0/work/nipy-0.5.0/nipy/algorithms/statistics/__init__.py))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.9/site-packages/nose/loader.py", line 418, in loadTestsFromName
module = self.importer.importFromPath(
File "/usr/lib/python3.9/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.9/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.9/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.9/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 711, in _load
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/var/tmp/portage/sci-libs/nipy-0.5.0/work/nipy-0.5.0/nipy/labs/spatial_models/tests/test_parcel.py", line 7, in <module>
from nipy.algorithms.graph.field import field_from_coo_matrix_and_data
File "/var/tmp/portage/sci-libs/nipy-0.5.0/work/nipy-0.5.0/nipy/algorithms/__init__.py", line 8, in <module>
from . import statistics
File "/var/tmp/portage/sci-libs/nipy-0.5.0/work/nipy-0.5.0/nipy/algorithms/statistics/__init__.py", line 9, in <module>
from . import intvol, rft, onesample, formula
ImportError: cannot import name 'intvol' from partially initialized module 'nipy.algorithms.statistics' (most likely due to a circular import) (/var/tmp/portage/sci-libs/nipy-0.5.0/work/nipy-0.5.0/nipy/algorithms/statistics/__init__.py)
But there are others as well. I assume it's an issue with accessing its own modules somehow?
The text was updated successfully, but these errors were encountered:
@TheChymera I can reproduce this by running from within the source directory. Moving to the src/ layout would resolve this, but you can also cd to some other directory before running tests with --pyargs nipy.
This is the whole build and test log: https://ppb.chymera.eu/5492b9.log
Most of the errors seem to be related to
intvol
:But there are others as well. I assume it's an issue with accessing its own modules somehow?
The text was updated successfully, but these errors were encountered: