CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] installation question

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2012, 17:59
Default installation question
  #1
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 15
CaroVandame is on a distinguished road
Hi Foamers!

I have a little question regarding the installation of PyFoam on Ubuntu 11.10
I tried following the steps from the wiki:
- I downloaded the latest tar and did the untar in my home folder
- I went into the directory PyFoam-0.5.7
- I installed it with the command: python setup.py install.

It did not show any error message. However, when checking the installation, the command "print PyFoam.FoamInformation.foamTutorials()", it returns
/opt/openfoam211/tutorials

My knowledge in package installations is quite limited. One thing I know is that 3 versions of Python are installed in my Ubuntu distribution: 2.6, 2.7 and 3 and PyFoam doesn't work with Python3. However, "python -V" returns Python 2.7.2+, so it seems ok.

Any advice for a (almost complete) beginner?

Thanks so much
Caroline.
CaroVandame is offline   Reply With Quote

Old   June 18, 2012, 20:44
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by CaroVandame View Post
Hi Foamers!

I have a little question regarding the installation of PyFoam on Ubuntu 11.10
I tried following the steps from the wiki:
- I downloaded the latest tar and did the untar in my home folder
- I went into the directory PyFoam-0.5.7
- I installed it with the command: python setup.py install.

It did not show any error message. However, when checking the installation, the command "print PyFoam.FoamInformation.foamTutorials()", it returns
/opt/openfoam211/tutorials

My knowledge in package installations is quite limited. One thing I know is that 3 versions of Python are installed in my Ubuntu distribution: 2.6, 2.7 and 3 and PyFoam doesn't work with Python3. However, "python -V" returns Python 2.7.2+, so it seems ok.

Any advice for a (almost complete) beginner?

Thanks so much
Caroline.
Not quite sure what your problem is. The test you stated above should return the value of $FOAM_TUTORIALS and the value seems alright.

Have you tried pyFoamVersion.py (the utility)?
gschaider is offline   Reply With Quote

Old   June 19, 2012, 12:02
Default
  #3
New Member
 
Caroline Vandame
Join Date: Aug 2010
Posts: 26
Rep Power: 15
CaroVandame is on a distinguished road
Sorry I just realized my post wasn't complete.
I'm not sure what happened, but it seems my computer didn't recognize any pyFoam utilities. I ran "python setup.py install" again, and now it works.
maybe there was an error message the first time around that I didn't see.

Thanks for being there and quick to help though!
Caroline
CaroVandame is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 06:32
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 05:39
OpenFOAM Installation rclprice OpenFOAM Installation 1 July 21, 2011 17:31
Installation OpenFOAM-1.6-ext OFU OpenFOAM Installation 11 February 14, 2011 18:50
Difficulties using parafoam, one critical error in installation of OpenFOAM-1.6 PeterNaa OpenFOAM Installation 4 April 9, 2010 09:48


All times are GMT -4. The time now is 12:49.