'make test' command for slepc4py installation fails with the following output
Issue #51
resolved
python test/runtests.py < /dev/null
Traceback (most recent call last):
File "test/runtests.py", line 212, in <module>
sys.exit(main())
File "test/runtests.py", line 201, in main
package = import_package(options, 'slepc4py')
File "test/runtests.py", line 85, in import_package
package.init(args, arch=options.arch)
File "build/lib.linux-x86_64-3.5/slepc4py/__init__.py", line 45, in init
SLEPc._initialize(args)
File "SLEPc/SLEPc.pyx", line 229, in slepc4py.SLEPc._initialize (src/slepc4py.SLEPc.c:54898)
File "SLEPc/SLEPc.pyx", line 204, in slepc4py.SLEPc.register (src/slepc4py.SLEPc.c:54628)
File "PETSc/Object.pyx", line 265, in petsc4py.PETSc.PyPetscType_Register (src/petsc4py.PETSc.c:68935)
ValueError: key: 1211217, cannot register: <class 'slepc4py.SLEPc.ST'>, already registered: <class 'petsc4py.PETSc.LGMap'>
makefile:17: recipe for target 'test' failed
make: *** [test] Error 1
build output:
python setup.py build
running build
running build_src
running build_py
running build_ext
SLEPC_DIR: /home/jeremy/softs/slepc
PETSC_DIR: /home/jeremy/softs/petsc
PETSC_ARCH: arch-linux2-c-debug
version: 3.7.3 development
integer-size: 32-bit
scalar-type: complex
precision: double
language: CONLY
compiler: mpicc
linker: mpicc
writing build/lib.linux-x86_64-3.5/slepc4py/lib/slepc.cfg
python setup.py install --prefix='' --user
running install
running build
running build_src
running build_py
running build_ext
SLEPC_DIR: /home/jeremy/softs/slepc
PETSC_DIR: /home/jeremy/softs/petsc
PETSC_ARCH: arch-linux2-c-debug
version: 3.7.3 development
integer-size: 32-bit
scalar-type: complex
precision: double
language: CONLY
compiler: mpicc
linker: mpicc
writing build/lib.linux-x86_64-3.5/slepc4py/lib/slepc.cfg
running install_lib
copying build/lib.linux-x86_64-3.5/slepc4py/lib/slepc.cfg -> /home/jeremy/.local/lib/python3.5/site-packages/slepc4py/lib
running install_egg_info
running egg_info
writing dependency_links to slepc4py.egg-info/dependency_links.txt
writing top-level names to slepc4py.egg-info/top_level.txt
writing slepc4py.egg-info/PKG-INFO
writing requirements to slepc4py.egg-info/requires.txt
reading manifest file 'slepc4py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'docs/*.html'
warning: no files found matching 'docs/*.pdf'
warning: no files found matching 'docs/*.info'
warning: no files found matching 'docs/*.[137]'
warning: no files found matching '*' under directory 'docs/usrman'
warning: no files found matching '*' under directory 'docs/apiref'
writing manifest file 'slepc4py.egg-info/SOURCES.txt'
removing '/home/jeremy/.local/lib/python3.5/site-packages/slepc4py-3.7.0-py3.5.egg-info' (and everything under it)
Copying slepc4py.egg-info to /home/jeremy/.local/lib/python3.5/site-packages/slepc4py-3.7.0-py3.5.egg-info
running install_scripts
Comments (3)
-
-
reporter Okay, I just solved that Rebuilt adding openmpi libs to LD_LIBRARY_PATH, now running smoothly.
Thanks for the help
-
reporter - changed status to resolved
added path to openmpi libraries to LD_LIBRARY_PATH
- Log in to comment
Just tried, and I cannot reproduce your issue. Have you built PETSc and SLEPc with shared libraries? Are you sure your SLEPc is built with the same PETSc you used to build petsc4py?