Search Criteria
Package Details: python-dolfin 2019.1.0.post0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-dolfin.git (read-only, click to copy) |
---|---|
Package Base: | python-dolfin |
Description: | The Python interface of FEniCS |
Upstream URL: | https://bitbucket.org/fenics-project/dolfin |
Licenses: | LGPL-3.0-or-later |
Submitter: | sigvald |
Maintainer: | carlosal1015 |
Last Packager: | carlosal1015 |
Votes: | 5 |
Popularity: | 0.000000 |
First Submitted: | 2018-06-23 09:12 (UTC) |
Last Updated: | 2024-02-29 20:55 (UTC) |
Dependencies (14)
- dolfinAUR (dolfin-hpcAUR)
- python-mpi4py (python-mpi4py-intelAUR)
- python-pkgconfig
- python-ply
- cmake (cmake-gitAUR) (make)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools (make)
- python-wheel (make)
- python-decorator (check)
- python-pytest (check)
- petscAUR (petsc-gitAUR, petsc-complexAUR) (optional) – interface with PETSc from python
- python-matplotlib (python-matplotlib-gitAUR) (optional) – plotting support
- slepcAUR (slepc-gitAUR) (optional) – interface with SLEPc from python
Latest Comments
1 2 Next › Last »
carlosal1015 commented on 2022-06-30 03:19 (UTC)
This modified PKGBUILD is working from my side.
carlosal1015 commented on 2022-06-22 14:16 (UTC) (edited on 2022-06-22 14:27 (UTC) by carlosal1015)
I will try the advice, I was suspecting that the issue is more related with petsc4py and
cmake
stuff than with python. I am reading bothFindPetsc.cmake
for have a better understanding and try a patch. It is ok, it takes some time to fix.https://bitbucket.org/fenics-project/dolfin/raw/d29e24d19eab5200a55e43a3e18e1f38214fb5a8/cmake/modules/FindPETSc.cmake
https://raw.githubusercontent.com/FEniCS/dolfinx/37c71813ad21c2c1d378953b060a1e4c05cec849/cpp/cmake/modules/FindPETSc.cmake
I also should mentioned that before petsc includes petsc4py by default, like 3 month agos, python-dolfin was working fine, always that user install cmake before to compile for avoid errors, but recently broke with openmpi 4.1.4 upgrade.
entshuld commented on 2022-06-20 17:58 (UTC)
@carlosal1015 To be honest, I don't think that I will have much time to add all the dependencies into the PKGBUILD for now (may be in a couple of weeks). For the moment, I would recommend you to install all the packages which are listed in the following post manually (note that it's 2 columns): https://aur.archlinux.org/packages/python-dolfin#comment-829010 . If you want, you can try with:
or
entshuld commented on 2022-04-07 17:53 (UTC)
Hello @carlosal1015, did you see the list which is below of all the software which may be needed? have you tried installing CMake? Can you report back if installing it helps? Thanks.
sigvald commented on 2021-09-30 07:01 (UTC)
@entshuld: Thank you. Your efforts are much appreciated. I added you as maintainer for this package, so you can update dependency requirements in the PKGBUILD file as needed. I think where the newest versions of the dependencies work, we should allow those versions to be used. Where older (or specific) versions are required, this can be specified in the PKGBUILD.
There's a rather large chain of dependencies for FEniCS. python-dolfin depends on dolfin, which again depends on petsc, and so on. If you need to change the PKGBUILD for any of the other packages (that I maintain), just let me know.
entshuld commented on 2021-09-30 01:05 (UTC) (edited on 2021-09-30 01:07 (UTC) by entshuld)
@sigvald I was able to build, install and run in a virtual machine. Then, I used those same packages in my system and they work. I am guessing that it has to do with some cache or residual configuration. At this point, I think that I could help to maintain the package, if you want.
This is not the full list in the system, but should suffice to know what is needed to compile:
entshuld commented on 2021-09-28 16:24 (UTC)
Thanks @sigvald. Indeed, I tried with both PETSc 3.14.5--which is what the CMake log said was the requirement (PETSc>=3.14.5), and the current PETSc 3.15.4 (installed through Git sources). I don't have SLEPc, but that was an optional requirement, so I removed it from the PKGBUILD.
The compilation of the Dolfin package goes well, but the error that I see is when trying to import it. I have tried with both the -git and the non-git packages of the FEniCS dependencies from AUR. I will give it a shot again in a virtual machine to see if it has to do with my system.
Thanks for the list from Conda, I do have it, and was able to run Dolfin by installing Miniconda and creating a working environment with it. As I said, unfortunately, this is not a real option for me. Installation with pip isn't either. I also tried to roll back and forth the Git sources of Dolfin (there is no 2019 tag that I can check out, and the structure of the tar-ball is very different. The other sources do have the tag).
I was planning to look at the Conda recipe to check how exactly they built it as well.
sigvald commented on 2021-09-28 07:16 (UTC)
@entshuld: I believe the FEniCS packages (dolfin, python-ffc, python-ufl and so forth) should be correct if they're installed from AUR. The dependency requirements are such that you must have exactly the right version, i.e., version 2019.1.0 of all these packages.
Just looking at your error message, I suspect either an error with PETSc, or with your Python 3.9 environment. The latest version of PETSc and SLEPc in here is 3.15. The most recent versions I know works is PETSc 3.13.6 and SLEPc 3.13.4. It could be that this is unrelated, but perhaps worth a shot downgrading to version 3.13? Beware that SLEPc needs to be of the same major and minor version number as PETSc, but the patch number (the last number in the version) can be different.
Here is a list from one of my Conda environments where FEniCS 2019 works as it should:
Although you're not planning to use Conda, it can give you an idea of which versions of dependencies should work well with FEniCS 2019.
Hope this helps :)
1 2 Next › Last »