I am installing pysph on a Cray cluster, and after specifying the different MPI flags on the ~/.compyle/config.py file, I encounter this error (at the end of this message).
Could it be linked to an error when installing Zoltan? Is it a problem due to the version of one of the dependencies?
-----------------------------------------------------------------------------------------
$ python -m pip install --no-cache-dir --no-build-isolation https://github.com/pypr/pyzoltan/zipball/masterCollecting
https://github.com/pypr/pyzoltan/zipball/master Downloading
https://github.com/pypr/pyzoltan/zipball/master \ 843.8 kB 8.4 MB/s 0:00:00
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
Error compiling Cython file:
------------------------------------------------------------
...
cdef Zoltan_Struct* zz = self._zstruct.zz
cdef int err
# Num_Obj_Fn
err = czoltan.Zoltan_Set_Num_Obj_Fn(
zz, &get_number_of_objects, <void*>&self._cdata)
^
------------------------------------------------------------
pyzoltan/core/zoltan.pyx:777:16: Cannot assign type 'int (*)(void *, int *)' to 'ZOLTAN_NUM_OBJ_FN *'
Error compiling Cython file:
------------------------------------------------------------
...
_check_error(err)
# Num_Geom_Fn
err = czoltan.Zoltan_Set_Num_Geom_Fn(
zz, &get_num_geom, <void*>&self._cdata)
^
------------------------------------------------------------
pyzoltan/core/zoltan.pyx:789:16: Cannot assign type 'int (*)(void *, int *)' to 'ZOLTAN_NUM_GEOM_FN *'
Reading configuration options from /home/2024034/bbodin01/.compyle/config.py.
----------------------------------------------------------------------
Using Zoltan from:
/home/2024034/PARTAGE/bbodin01/Zoltan/include
/home/2024034/PARTAGE/bbodin01/Zoltan/lib
----------------------------------------------------------------------
Compiling pyzoltan/core/zoltan.pyx because it changed.
Compiling pyzoltan/core/zoltan_dd.pyx because it changed.
Compiling pyzoltan/core/zoltan_comm.pyx because it changed.
[1/3] Cythonizing pyzoltan/core/zoltan.pyx
Traceback (most recent call last):
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/setuptools/build_meta.py", line 166, in prepare_metadata_for_build_wheel
self.run_setup()
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 416, in <module>
setup_package()
File "setup.py", line 357, in setup_package
ext_modules = cythonize(
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1127, in cythonize
cythonize_one(*args)
File "/home/2024034/PARTAGE/bbodin01/pysph_env/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1250, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pyzoltan/core/zoltan.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.