No error from my side when with env
command it does not list petsc or slepc variables. For example, when run this script.
from slepc4py import SLEPc
from petsc4py import PETSc
Git Clone URL: | https://aur.archlinux.org/slepc.git (read-only, click to copy) |
---|---|
Package Base: | slepc |
Description: | Scalable library for Eigenvalue problem computations |
Upstream URL: | https://slepc.upv.es |
Licenses: | BSD-2-Clause |
Provides: | slepc4py |
Submitter: | heitzmann |
Maintainer: | carlosal1015 |
Last Packager: | carlosal1015 |
Votes: | 8 |
Popularity: | 0.000000 |
First Submitted: | 2018-02-24 11:36 (UTC) |
Last Updated: | 2024-07-08 14:16 (UTC) |
No error from my side when with env
command it does not list petsc or slepc variables. For example, when run this script.
from slepc4py import SLEPc
from petsc4py import PETSc
Getting a failure after the last update
==> Starting build()...
--with-clean --with-slepc4py=1
Checking environment... done
Checking PETSc installation... done
Processing slepc4py... Traceback (most recent call last):
File "/home/user/.cache/aurutils/sync/slepc/src/slepc-3.21.1/./configure", line 12, in <module>
exec(f.read())
File "<string>", line 263, in <module>
File "/home/user/.cache/aurutils/sync/slepc/src/slepc-3.21.1/config/packages/slepc4py.py", line 53, in Process
from petsc4py import PETSc
File "/opt/petsc/linux-c-opt/lib/petsc4py/PETSc.py", line 4, in <module>
PETSc = ImportPETSc(ARCH)
^^^^^^^^^^^^^^^^^
File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 30, in ImportPETSc
return Import('petsc4py', 'PETSc', path, arch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 97, in Import
module = import_module(pkg, name, path, arch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/petsc/linux-c-opt/lib/petsc4py/lib/__init__.py", line 74, in import_module
module = importlib.util.module_from_spec(spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 570, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
==> ERROR: A failure occurred in build().
Aborting...
PETSc can however be imported:
% python
Python 3.12.4 (main, Jun 7 2024, 06:33:07) [GCC 14.1.1 20240522] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import petsc
>>> import petsc4py
Sorry to delete the request, I clicked it wrong....
Done @yuhldr, let us if it is working fine.
Feel free to delete slepc4py as petsc4py 1 year ago.
Could you add slepc4py like petsc?
build()
python ./configure --prefix=${pkgdir}${_install_dir} --with-clean --with-slepc4py=1
package()
echo export PYTHONPATH=${_install_dir}/lib:'${PYTHONPATH}' >> ${pkgdir}/etc/profile.d/slepc.sh
Thank you for confirm good news. This could suggest, change depends=("petsc>=${pkgver:0:4}")
to depends=("petsc=${pkgver}")
.
Edited: 05/24/2022 I tested with petsc-complex
and compiles well.
It works now with the upgrade to petsc 3.17.1.
Right, alad-edu/petsc
was built from the aur/petsc
PKGBUILD. I can test it later with petsc-complex
, when I get back to my Arch install.
edit: same issue with petsc-complex (which needed upgrading to 3.17).
Thank you very much, I tested with PETSc installed without sourcing /etc/profile.d/petsc.sh
, I will think about this for solve it and take a look if we need add and if-else conditional statement for slepc like openfoam. Is alad-edu/petsc
the same for aur/petsc
, looks like more to an updated petsc-complex
from petronny. It is ok, slepc
must be supporting both versions (real and complex valued scalars).
Thanks, I can clone the repository now. Unfortunately 3.17.1 results in a build failure:
==> Making package: slepc 3.17.1-1 (Thu 14 Apr 2022 08:23:38 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Package (4) New Version Net Change
extra/boost 1.78.0-1 169.58 MiB
extra/cblas 3.10.0-1 0.20 MiB
extra/python-numpy 1.22.3-1 33.24 MiB
alad-edu/petsc 3.17.0-1 79.96 MiB
Total Installed Size: 282.97 MiB
:: Proceed with installation? [Y/n]
(4/4) checking keys in keyring [######################################] 100%
(4/4) checking package integrity [######################################] 100%
(4/4) loading package files [######################################] 100%
(4/4) checking for file conflicts [######################################] 100%
(4/4) checking available disk space [######################################] 100%
:: Processing package changes...
(1/4) installing cblas [######################################] 100%
(2/4) installing python-numpy [######################################] 100%
Optional dependencies for python-numpy
openblas: faster linear algebra [installed]
(3/4) installing boost [######################################] 100%
Optional dependencies for boost
python: for python bindings [installed]
(4/4) installing petsc [######################################] 100%
source /etc/profile.d/petsc.sh to set environment variables
Optional dependencies for petsc
trilinos: support for trilinos
ptscotch: support for ptscotch sequential and parallel graph partitioning library
parmetis: support for parmetis parallel graph partitioning library
metis: support for metis graph partitioning library [installed]
pastix: support for the pastix solver
superlu: support for the superlu sparse solver
hypre: support for the hypre sparse system solver
hdf5-openmpi: support for the parallel version of HDF5 [installed]
mumps: support for the mumps sparse solver
fftw: support for the FFTW fast Fourier transform [installed]
triangle: support for the two-dimensional quality mesh generator and Delaunay triangulator
suitesparse: support for the suitesparse sparse matrix libraries [installed]
valgrind: support for valgrind to help find memory-management problems in programs [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading slepc-3.17.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5322k 100 5322k 0 0 6193k 0 --:--:-- --:--:-- --:--:-- 6196k
==> Validating source files with md5sums...
slepc-3.17.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting slepc-3.17.1.tar.gz with bsdtar
==> Starting build()...
Checking environment... done
Checking PETSc installation...
ERROR: Unable to link with PETSc
ERROR: See "installed-arch-linux2-c-debug/lib/slepc/conf/configure.log" file for details
==> ERROR: A failure occurred in build().
Aborting...
==> Removing installed dependencies...
checking dependencies...
Package (4) Old Version Net Change
boost 1.78.0-1 -169.58 MiB
cblas 3.10.0-1 -0.20 MiB
petsc 3.17.0-1 -79.96 MiB
python-numpy 1.22.3-1 -33.24 MiB
Total Removed Size: 282.97 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
removing petsc...
removing python-numpy...
removing cblas...
removing boost...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
configure.log
mentioned in the output: https://gist.github.com/AladW/50bd935e8e65de00a216a9fe2af57508
Pinned Comments