error libswakPythonIntegration
Hi All,
I just installed OF 2.2.0 and the latest swak4foam version from the tar ball Swak4Foam_2.x_release_0.2.3 Compilation went like a charm, and swak4foam seems to ok except for one issue: when using the libswakPythonIntegration.so library I got an message Code:
--> FOAM Warning : I have set the environment variables Code:
export SWAK4FOAM_SRC="$WM_PROJECT_SITE_DIR/swak4foam/Swak4Foam_2.x_release_0.2.3/Libraries" Any idea what could be wrong? Any hints appreciated! Regards Eelco |
Quote:
One more thing: is you system 64 bit and maybe you want to link to "/usr/lib64/python2.7" (but your milage may vary). Another possibility. Do grep PyFunction_Type /usr/lib/python2.7/*.so and if additional libraries pop up try adding them to SWAK_PYTHON_LINK |
Link swak4foam 0.2.3
The links on http://openfoamwiki.net/index.php/Co...am#Downloading do not work at the moment.
Can you post a link for swak4foam 0.2.3 (for OF 2.2.0) ? |
Quote:
Sorry for being sarcastic, but people keep asking for this on almost a daily basis when the solution is looking straight in their eye |
I got the same error if I forgot to add -lpython2.7 (or actually -lpython2.6 in my case) to SWAK_PYTHON_LINK. But I guess you can drop the -L/usr/lib/python2.7 because the libpython2.7.so.* files are stored in /usr/lib (or /usr/lib on a 64bit machine) which is used automatically.
Quote:
|
Code:
--> FOAM Warning : 1.) these files are actually in /root/OpenFOAM/root-2.2.x. Is there a way to control where they are placed? I would like to have everything together in /usr/local/OpenFOAM 2.) How can I get openfoam to see the .so files? I believe I have the environment variables from the first post correctly set... Code:
$SWAK_PYTHON_LINK I don't even know if that's correct, but I tried using the following line from the first post, but $WM_PROJECT_SITE_DIR does not exist, and I don't see it defined in OpenFOAM/etc/bash_rc or anywhere else. Code:
export SWAK4FOAM_SRC="$WM_PROJECT_SITE_DIR/swak4foam/Swak4Foam_2.x_release_0.2.3/Libraries" |
Quote:
Quote:
Quote:
Quote:
Start from the beginning: create a swakConfiguration file that reflects your setup (from the examples in the sources). Recompile swak as yourself (not root) and the python-integration should work |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 06:43. |