Package Details: python-scikit-sparse 0.4.6-1

Git Clone URL: https://aur.archlinux.org/python-scikit-sparse.git (read-only, click to copy)
Package Base: python-scikit-sparse
Description: Scikit sparse matrix package
Upstream URL: https://pypi.python.org/pypi/scikit-sparse/
Licenses: GPL
Submitter: anntzer
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 2
Popularity: 0.002622
First Submitted: 2016-02-25 20:11 (UTC)
Last Updated: 2021-11-03 19:18 (UTC)

Latest Comments

gnaggnoyil commented on 2021-11-10 11:44 (UTC)

I ran into following error when I was trying to build this:

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'pytest')
----------------------------------------------------------------------
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 416, 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 "/home/gnaggnoyil/.cache/yay/python-scikit-sparse/src/scikit-sparse-0.4.6/sksparse/test_cholmod.py", line 43, in <module>
    from pytest import raises as assert_raises
ModuleNotFoundError: No module named 'pytest'

----------------------------------------------------------------------
Ran 1 test in 0.003s

FAILED (errors=1)
==> 错误: 在 check() 中发生一个错误。
    正在放弃...
 -> 生成时出错: python-scikit-sparse

I then installed package python-pytest and rebuild the package. This time package was built and installed successfully. I think python-pytest might be needed as makedepends.

deu439 commented on 2020-12-10 09:35 (UTC) (edited on 2020-12-10 09:36 (UTC) by deu439)

With python 3.9.0-1 I got this error:

error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’

It can be fixed by patching PKGBUILD with (issue37250):

--- PKGBUILD    2020-12-10 10:24:34.098258189 +0100
+++ PKGBUILD_patched    2020-12-10 10:36:14.359479863 +0100
@@ -17,6 +17,7 @@
 prepare() {
   cd "$srcdir/$_pyname-$pkgver"
   rm -rf scikit_sparse.egg-info
+  sed -i '1s/^/#define tp_print tp_vectorcall\n/' sksparse/cholmod.c
 }

 build() {

anntzer commented on 2016-03-07 06:11 (UTC)

The python package "scikits.sparse" has been deprecated in favor of "scikit-sparse". I have requested that this package be merged into "python-scikit-sparse" or deleted, and am disowning it.