CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Error installing swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/113239-error-installing-swak4foam.html)

gschaider October 22, 2023 14:26

Quote:

Originally Posted by JinshiC (Post 857028)
Hi all,

I am trying to install swak4foam on OpenFOAM v1812. I have downloaded swak4foam from mercurial and installed the required version of m4 and bison. However when I compiled it I got the following error:

Code:

funkyPythonPostproc.C:41:10: fatal error: pythonInterpreterWrapper.H: No such file or directory
 #include "pythonInterpreterWrapper.H"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/vortexfs1/home/jinshichen/OpenFOAM/OpenFOAM-v1812/wmake/rules/General/transform:35: Make/linux64GccDPInt32Opt/funkyPythonPostproc.o] Error 1
wmake funkySetLagrangianField
wmake funkyWarpMesh
wmake makeAxialMesh
wmake writeBoundarySubfields

It seems to tell me that I am missing a python interpreterWrapper file. Does anyone know how to solve it? Thanks a lot!

Best,
Jinshi


Hi Jinshi!


If that is the only error then I'd say you don't have a problem unless you want to play with the Python-integration (very few people do)


It is possible that the compilation of the library failed because there are no development headers for python installed (some systems don't install them as they are not strictly necessary).


I'll adapt the compilation process so that there is no attempt to compiel that utility if the necessary headers are missing


Bernhard

othonas20 February 7, 2024 16:22

swak4Foam error installing
 
1 Attachment(s)
Hi!
I cannot install swak4Foam. Im using windows 10 and WSL. Here is the log file after wmake.

Code:

Current OpenFOAM version is v2312.
Previously compiled for OpenFOAM (v2312)

/home/othonas/OpenFOAM/othonas-v2312/platforms/linux64GccDPInt32Opt/lib/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Automatic settings from ./swakConfiguration.automatic
Looking for Python 2
Looking for Python 3
Using our own Lua at /home/othonas/OpenFOAM/othonas-v2312/platforms/linux64GccDPInt32Opt/lib/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 202x.yy.0
hg info: fde145032783 (develop) tip
No 'bear' installed
Bison: /home/othonas/OpenFOAM/othonas-v2312/platforms/linux64GccDPInt32Opt/lib/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/othonas/OpenFOAM/othonas-v2312/platforms/linux64GccDPInt32Opt/lib/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


Severus February 8, 2024 10:36

Hello,
I am not fully sure of the solution. But since you are using a recent release, you can try using the following command:

HTML Code:

hg update develop
Reference: https://openfoamwiki.net/index.php/Contrib/swak4Foam

Thanks


All times are GMT -4. The time now is 21:37.