Yes. I'm just raising the question because I was considering adding new features, let's see if I come this point.
ok as discussed today, it's probably much more work due to the ROOT tail
can you proceed with an older version?
Just did, same sh*t bro.
I'm trying to get it work, but somehow I'm failing.
Ahm... can you try to source the setenv.sh
of Jpp before compilation?
I can't get Jppy to compile on my machine, using recent Jpp version (tried on both 18.5.0 from a sandboxed container. As only header are used, that should be ok. I also tried with a fresh master clone, and it leads to the same error).
(venv) vpestel@vpestel-X1:~/Private/KM3NeT/Software/jppy$ pip install ./
Processing /home/vpestel/Private/KM3NeT/Software/jppy
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pybind11>=2.4 in ./venv/lib/python3.11/site-packages (from jppy==3.5.0) (2.11.1)
Requirement already satisfied: setuptools>=40.6.2 in ./venv/lib/python3.11/site-packages (from jppy==3.5.0) (65.5.0)
Collecting setuptools-scm (from jppy==3.5.0)
Obtaining dependency information for setuptools-scm from https://files.pythonhosted.org/packages/0e/a3/b9a8b0adfe672bf0df5901707aa929d30a97ee390ba651910186776746d2/setuptools_scm-8.0.4-py3-none-any.whl.metadata
Using cached setuptools_scm-8.0.4-py3-none-any.whl.metadata (6.4 kB)
Collecting toml (from jppy==3.5.0)
Obtaining dependency information for toml from https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl.metadata
Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
Collecting packaging>=20 (from setuptools-scm->jppy==3.5.0)
Obtaining dependency information for packaging>=20 from https://files.pythonhosted.org/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl.metadata
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting typing-extensions (from setuptools-scm->jppy==3.5.0)
Obtaining dependency information for typing-extensions from https://files.pythonhosted.org/packages/f9/de/dc04a3ea60b22624b51c703a84bbe0184abcd1d0b9bc8074b5d6b7ab90bb/typing_extensions-4.10.0-py3-none-any.whl.metadata
Using cached typing_extensions-4.10.0-py3-none-any.whl.metadata (3.0 kB)
Using cached setuptools_scm-8.0.4-py3-none-any.whl (42 kB)
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Building wheels for collected packages: jppy
Building wheel for jppy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for jppy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
running bdist_wheel
running build
running build_py
copying src/jppy/pdf_evaluator.py -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/version.py -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/__init__.py -> build/lib.linux-x86_64-cpython-311/jppy
running egg_info
writing src/jppy.egg-info/PKG-INFO
writing dependency_links to src/jppy.egg-info/dependency_links.txt
writing requirements to src/jppy.egg-info/requires.txt
writing top-level names to src/jppy.egg-info/top_level.txt
adding license file 'LICENSE'
writing manifest file 'src/jppy.egg-info/SOURCES.txt'
copying src/jppy/.gitkeep -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/JppyOscProbInterpolator.hh -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/constants.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/geane.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/lang.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/npe.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/oscprob.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/pdf.cc -> build/lib.linux-x86_64-cpython-311/jppy
copying src/jppy/utils.hh -> build/lib.linux-x86_64-cpython-311/jppy
running build_ext
x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vpestel/Private/KM3NeT/Software/jppy/venv/include -I/usr/include/python3.11 -c /tmp/tmp5dnd_wb4.cpp -o tmp/tmp5dnd_wb4.o -std=c++14
x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vpestel/Private/KM3NeT/Software/jppy/venv/include -I/usr/include/python3.11 -c /tmp/tmp1jdj3b5q.cpp -o tmp/tmp1jdj3b5q.o -fvisibility=hidden
building 'jppy.oscprob' extension
x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-e8zrtrrm/overlay/lib/python3.11/site-packages/pybind11/include -I/tmp/pip-build-env-e8zrtrrm/overlay/lib/python3.11/site-packages/pybind11/include -I/data/singularity/sandboxes/Jpp_v18.5.0/Jpp/software -I/home/vpestel/Private/KM3NeT/Software/jppy/venv/include -I/usr/include/python3.11 -c src/jppy/oscprob.cc -o build/temp.linux-x86_64-cpython-311/src/jppy/oscprob.o -DVERSION_INFO=\"3.5.0\" -std=c++14 -fvisibility=hidden
In file included from src/jppy/oscprob.cc:9:
/data/singularity/sandboxes/Jpp_v18.5.0/Jpp/software/JOscProb/JOscChannel.hh:6:10: fatal error: km3net-dataformat/offline/Trk.hh: No such file or directory
6 | #include "km3net-dataformat/offline/Trk.hh"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jppy
Failed to build jppy
ERROR: Could not build wheels for jppy, which is required to install pyproject.toml-based projects
I don't really know what to try without going into really dirty tricks. Any suggestion @tgal ?
Version 3.5.0 is in the pipeline
Tamas Gal (c2a849b4) at 07 Nov 08:22
Update changelog
Tamas Gal (609aee22) at 07 Nov 08:22
Update changelog
No worries. Thanks Tam!
Jurjan Bootsma (89022fa5) at 07 Nov 08:21
Tamas Gal (d010c935) at 07 Nov 08:21
Merge branch 'add_JOscProb' into 'master'
... and 1 more commit
This addition brings some tools from JOscprob from Jpp to jppy, made by me and @bjjung . In particular the oscprobinterpolator, which interpolates over the 6 oscillation parameters, the energy and the zenith angle to calculate oscillation probabilities. By using Pybind11 this is implemented for python as well. On top of that there is a jupyter notebook, examples/interactive_oscprob.ipynb, which lets the users change the values of the oscillation parameters, the zenith angle and the energy and shows the effect on the oscillation probabilities. This can give physicists a more intuitive understanding of the impact of the parameters.
This addition brings some tools from JOscprob from Jpp to jppy, made by me and @bjjung . In particular the oscprobinterpolator, which interpolates over the 6 oscillation parameters, the energy and the zenith angle to calculate oscillation probabilities. By using Pybind11 this is implemented for python as well. On top of that there is a jupyter notebook, examples/interactive_oscprob.ipynb, which lets the users change the values of the oscillation parameters, the zenith angle and the energy and shows the effect on the oscillation probabilities. This can give physicists a more intuitive understanding of the impact of the parameters.
This addition brings some tools from JOscprob from Jpp to jppy, made by me and @bjjung . In particular the oscprobinterpolator, which interpolates over the 6 oscillation parameters, the energy and the zenith angle to calculate oscillation probabilities. By using Pybind11 this is implemented for python as well. On top of that there is a jupyter notebook, examples/interactive_oscprob.ipynb, which lets the users change the values of the oscillation parameters, the zenith angle and the energy and shows the effect on the oscillation probabilities. This can give physicists a more intuitive understanding of the impact of the parameters.
This addition brings some tools from JOscprob from Jpp to jppy, made by me and @bjjung . In particular the oscprobinterpolator, which interpolates over the 6 oscillation parameters, the energy and the zenith angle to calculate oscillation probabilities. By using Pybind11 this is implemented for python as well. On top of that there is a jupyter notebook, examples/interactive_oscprob.ipynb, which lets the users change the values of the oscillation parameters, the zenith angle and the energy and shows the effect on the oscillation probabilities. This can give physicists a more intuitive understanding of the impact of the parameters.
Jurjan Bootsma (a972a7c6) at 31 Oct 14:02
Interactive Oscprob
BoukeJisse Jung (751acd2e) at 30 Oct 19:22
Use Jpp v17.0.0-rc.1-172-g2b9d6e0cb header-files
... and 51 more commits