nipreps / mriqc

Automated Quality Control and visual reports for Quality Assessment of structural (T1w, T2w) and functional MRI of the brain
http://mriqc.readthedocs.io
Apache License 2.0
300 stars 132 forks source link

Dependency issue with networkx #1136

Closed celprov closed 1 year ago

celprov commented 1 year ago

What happened?

For some good reason not relevant here, I'm trying to run MRIQC locally. However, I'm getting dependency error with networkx.

Locally, the pip installation installs networkx v.3.1. However, in that version the function 'to_scipy_sparse_matrix' has changed name to 'to_scipy_sparse_array'

What command did you use?

I created a new environment to host my MRIQC v23.1.0 installation

conda create -n mriqc-23.1.0 python
conda activate mriqc-23.1.0

I then install MRIQC and dependencies with pip python -m pip install -U mriqc==23.1.0

and run MRIQC barebone

What version of the software are you running?

mriqc 23.1.0 or 23.0.1, networkx 3.1

How are you running this software?

Local installation ("bare-metal")

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

AttributeError: module 'networkx' has no attribute 'to_scipy_sparse_matrix'

Additional information / screenshots

No response