physlr icon indicating copy to clipboard operation
physlr copied to clipboard

AttributeError: module 'scipy.sparse' has no attribute 'coo_array'

Open aafshinfard opened this issue 1 year ago • 6 comments

This is due to scipy and networkx conflicts.

Solution: As a workaround, I figured out that we should either have scipy and networkx recent versions, scipy v1.8 at least or downgrade networkx to networkx v2.6.3.

aafshinfard avatar Jul 27 '22 17:07 aafshinfard

We may try to somehow formulate this in our Conda recipes? doing simple scipy >= v1.8 is too constraining.

aafshinfard avatar Jul 27 '22 17:07 aafshinfard

@aafshinfard - So if you have both most recent versions of scipy and networkx, you get that error? And on the conda side, they are compatible? (ie. would be installed at the same time, no constraints that would change the version of either?)

lcoombe avatar Jul 27 '22 17:07 lcoombe

If you have the most recent versions, you're good to run but scipy v1.8 requires python >= 3.9.sth and seems like pypy is not available for that and more recent versions ... so you will have to run with python instead of pypy.

I have not build a recipe with both pypy and scipy>1.8 but based on experiments I am guessing that it would not work at the same time. Maybe an incorrect guess, but will come back to check it soon. Just wanted to have a record of it here for ourselves and the users.

aafshinfard avatar Jul 27 '22 17:07 aafshinfard

currently, we have no constraints on scipy. When I tried, it installed scipy v1.7 for me with python 3.7 and I got that error running Physlr. I downgraded networkx and its working alright again.

aafshinfard avatar Jul 27 '22 17:07 aafshinfard

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your interest in Physlr!

github-actions[bot] avatar Aug 27 '22 02:08 github-actions[bot]

Great news is that according to this post, pypy now works for python 3.9. Just double-checking if everything works fine with python v 3.9 and I will update conda recipes to require python>3.9 and avoid the issues mentioned above.

aafshinfard avatar Jan 13 '23 00:01 aafshinfard