-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hello there,
I have just installed PyRatp by following the developers installation instructions on GitHub (https://github.com/openalea/PyRATP). I only did copy & paste the two instructions blocks in the "For developers" section, nothing more. I would like to run the examples available in PyRATP/example/ratp and PyRATP/example/ratp_script.py. I am encountering several errors that seem to be related, among other things, to the compilation of the Fortran part (?). So, if someone could guide me through debugging (if needed) and running the examples, that would be greatly appreciated!
Thank you!
Cyril Bozonnet (INRAE, UMR PIAF)
python run_script.py
ninja: error: '/tmp/pip-build-env-earo_q1r/overlay/lib/python3.12/site-packages/numpy/f2py/src/fortranobject.c', needed by 'src/openalea/ratp/pyratp.cpython-312-x86_64-linux-gnu.so.p/595e63171cc8421eb97e8e07e33c1e227e9cb781_.._.._f2py_src_fortranobject.c.o', missing and no known rule to make it
Traceback (most recent call last):
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 345, in _rebuild
subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=subprocess.DEVNULL, check=True)
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/cbozonnet/miniconda3/envs/pyratp/bin/ninja']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/cbozonnet/Documents/RATP/PyRATP/example/ratp_script.py", line 2, in <module>
from openalea.ratp.pyratp.skyvault import Skyvault
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 311, in find_spec
tree = self._rebuild()
^^^^^^^^^^^^^^^
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 347, in _rebuild
raise ImportError(f're-building the {self._name} meson-python editable wheel package failed') from exc
ImportError: re-building the openalea.ratp meson-python editable wheel package failed
python ratp/test.py
ninja: error: '/tmp/pip-build-env-earo_q1r/overlay/lib/python3.12/site-packages/numpy/f2py/src/fortranobject.c', needed by 'src/openalea/ratp/pyratp.cpython-312-x86_64-linux-gnu.so.p/595e63171cc8421eb97e8e07e33c1e227e9cb781_.._.._f2py_src_fortranobject.c.o', missing and no known rule to make it
Traceback (most recent call last):
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 345, in _rebuild
subprocess.run(self._build_cmd, cwd=self._build_path, env=env, stdout=subprocess.DEVNULL, check=True)
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/cbozonnet/miniconda3/envs/pyratp/bin/ninja']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/cbozonnet/Documents/RATP/PyRATP/example/ratp/test.py", line 5, in <module>
from openalea.ratp.pyratp import ratp
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 311, in find_spec
tree = self._rebuild()
^^^^^^^^^^^^^^^
File "/home/cbozonnet/miniconda3/envs/pyratp/lib/python3.12/site-packages/_openalea_ratp_editable_loader.py", line 347, in _rebuild
raise ImportError(f're-building the {self._name} meson-python editable wheel package failed') from exc
ImportError: re-building the openalea.ratp meson-python editable wheel package failed
python ratp/alea_presentation.py
Traceback (most recent call last):
File "/home/cbozonnet/Documents/RATP/PyRATP/example/ratp/alea_presentation.py", line 16, in <module>
from amlPy import *
ModuleNotFoundError: No module named 'amlPy'
Metadata
Metadata
Assignees
Labels
No labels