-
Notifications
You must be signed in to change notification settings - Fork 24
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
TypeError: umfpack_di_symbolic() missing 1 required positional argument: 'Info' #98
Comments
Are you on Mac by any chance? I have the same error on my mac, but I can't reproduce on Linux. |
My guess is that you have a much newer version of SuiteSparse installed - I can reproduce this on 7.3.1. Installing an older version, like the one installed in the CI pipeline (v5.10) clears this up. An easy way to install this on Mac is via conda-forge: https://anaconda.org/conda-forge/suitesparse. CC @rc - it looks like the interface of these functions changed on SuiteSparse 7+. Unfortunately, the versions of SuiteSparse available via package repositories is all over the place - Brew offers 7.3.1, Macports offers 5.13.0, the CI installs 5.10.1 via apt. Might be worth a note in the README about explicitly supported SuiteSparse versions. |
Yes, I have tried it on both SuiteSparse 7.1.0 and later 7.3.1 (both installed via Brew on Mac). Might have to try an older version by source installation. |
I haven't changed the API to umfpack_di_symbolic; it's been the same since at least 2006 and probably earlier. I just checked SuiteSparse v2.1.1 (the oldest copy I have on github) and umfpack_di_symbolic is the same there as it is in the current SuiteSparse 7.4.0.beta12 prerelease. I have changed how the include files are provided; I used to have a set of files and a single top-level umfpack.h that included them all. I now just have one file. That might account for the difference you're seeing. But the contents have been very stable. |
Yes, it's a little challenging to reproduce this, since the meson build file looks in a lot of places before looking in the user-specified nativefile. However, if you delete those other paths in the build file, it's a bit easier to test. This bug did indeed begin after the include file change. |
I'm close to releasing a stable SuiteSparse 7.4.0. Its build system is much better now and some of these issues may be resolved when using that version. Let me know if there's anything I can do to revise 7.4.0 to help resolve this issue. |
FYI: I've installed SuiteSparse version 7.4.0 via |
Here is the output of pip/meson-python compiling a wheel on openSUSE Linux with suitesparse 7.5.1 resulting in the same error above:
Haven't tried updating to suitesparse 7.6 yet |
I am also experiencing this on error on 7.6.1-1 |
@leuraph Could you describe how you got it working? Did you have |
@cmutel Sure! In the end, I did not use |
First time getting a successful installation with this package after the update 0.4.1, but I get this recurring error when I try to use spsolve. When running "pytest --pyargs scikits.umfpack" I get "TypeError: umfpack_di_symbolic() missing 1 required positional argument: 'Info'" in almost every test. Someone knows what the issue is? This is a subset of the output (doesn't look that pretty when copy-pasted from the terminal):
__________________________________________________________________________________ TestSolvers.test_solve_umfpack __________________________________________________________________________________
self = <scikits.umfpack.tests.test_interface.TestSolvers testMethod=test_solve_umfpack>
/usr/local/lib/python3.11/site-packages/scikits/umfpack/tests/test_interface.py:62:
/usr/local/lib/python3.11/site-packages/scikits/umfpack/interface.py:62: in spsolve
x = UmfpackLU(A).solve(b)
/usr/local/lib/python3.11/site-packages/scikits/umfpack/interface.py:206: in init
self.umf.numeric(A)
/usr/local/lib/python3.11/site-packages/scikits/umfpack/umfpack.py:555: in numeric
self.symbolic(mtx)
self = <scikits.umfpack.umfpack.UmfpackContext object at 0x114f37f10>, mtx = <5x5 sparse matrix of type '<class 'numpy.float64'>'
with 9 stored elements in Compressed Sparse Column format>
E TypeError: umfpack_di_symbolic() missing 1 required positional argument: 'Info'
/usr/local/lib/python3.11/site-packages/scikits/umfpack/umfpack.py:522: TypeError
The text was updated successfully, but these errors were encountered: