on Ubuntu 16.04
Hi all,
I'm having troubles with pyFoam installation. I have followed the wiki: https://openfoamwiki.net/index.php/C...m#Installation I didn't success installing in any way (as root, as user, using pip, etc.). I have decided to ask for help step by step. First, right now I have installed pyfoam using pip. It has been installed into ~/.local/lib/python2.7/site/packages. This is what I get when I run the steps proposed in the wiki page> Code:
dan@dan-Gazelle:~$ python Thanks in advance |
Hi
I dont know what is wrong but I can tell you that I installed pyfoam on ubuntu16.04 with pip and it worked like a charm. Now for scientific work I use a locally installed anaconda python installation instead of the systm one's. It make things easier for me. |
Thank you jf_vt,
It is very good to hear that there should not be a problem at least! :) Now I simply need to find mine... :o Thanks! PS: I'll check out the anaconda stuff too, the website looks fine, I wanna get my superpowers too ... hehehe |
your python version in /usr/lib it is a system installed version
it is usually not recomended to customize system version whih is used by the system. I had install problems similar to yours in the past ( not with pyfoam) which I did not try to solve once I was advised to install my own version of python to work with( anaconda is a popular choice I like but you have many other options) google it and you will find everyting you need. JF |
Hei,
I have already tried to have a different version of python, in my case I used 3.5.2 in a user folder. It didn't succeed either. I just saw today that there is a very new version of pyFoam (1 day old), the 0.6.6. These pyFoam amazing people just updated some details of the wiki page recommending the "pip" installation. I have tried to download as pip (succeed) but when I tried to import pyFoam in my python I got the following message: Code:
dan@dan-Gazelle:~/src$ python Hopefully the following hours-days the wiki page will be a bit more detailed, if not, please, anybody could drop some light? I am really willing to use pyFoam. Thank you very much |
Hi,
Can it be just a typo in your case? From the same link you posted, it looks like PyFoam has a capital P Code:
import PyFoam Code:
pyFoamPlotRunner.py MySolverName Code:
pyFoamPlotRunner.py: command not found Thanks Cheers |
Amazing,
My two posts (first and last) disagree with the capital 'P' or not capital 'p'. I'll try it at some point in the following days and I write down my results. Thank you! |
Oh and another thing that may help, but I am sure you have already checked it.
Before typing python and do all that import bla bla bla, I think you have to be in the openFoam shell |
I have used pip install PyFoam.everything seems well.But when i use print PyFoam.there is no message feedback.i hope someone can help me out...
Sent from my iPhone using CFD Online Forum mobile app |
Quote:
|
Quote:
I have figured it out.i used pip install pyfoam follow the openfoam wiki.but it default install dir is not the same with the environment variable writed on the openfoam wiki.So i need to change the pythonpath to where the pyfoam installed. Sent from my iPhone using CFD Online Forum mobile app |
Minisasi you were right about the upper-lower case mistake.... :D
Thank you! |
I had the same problem and FInally I figured it out as follows:
python3.8 Python 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PyFoam >>> import PyFoam.FoamInformation >>> print (PyFoam.FoamInformation.foamTutorials()) /opt/openfoam8/tutorials Pay attention to first command python3.8 and also the print, it should be written inside pranthesis |
All times are GMT -4. The time now is 22:42. |