installation on Ubuntu 12.04
Hi all, today I installed PyFoam on Ubuntu 12.04 but something is wrong and when i run a case I have:
Code:
Traceback (most recent call last): Code:
python setup.py install --prefix=$HOME/OpenFOAM/PyFoam-0.6.3 |
Quote:
Check with pyFoamVersion.py BTW: it can't be the "in a new shell it works because I modified .bashrc but didn't source it in the original shell" problem? |
Thank you for your quick reply, Bernhard. I obviously sourced the file .bashrc, after the modification :-)
I checked and the directory PyFoam really exists in $HOME/OpenFOAM/PyFoam/PyFoam-0.6.3/lib/python2.7/site-packages. Anyway I post the output of pyFoamVersion.py Code:
PROBLEM: |
Quote:
Quote:
/home/user-a5/OpenFOAM/PyFoam-0.6.3/lib/python-2.7/site-packages/PyFoam and a file /home/user-a5/OpenFOAM/PyFoam-0.6.3/lib/python-2.7/site-packages/PyFoam/Applications/PlotRunner.py If there are not then you either didn't install PyFoam correctly or PYTHONPATH is pointing to the wrong location |
2 Attachment(s)
I'm sorry Bernhard, I checked and everything is as expected. About PYTHONPATH, I think it points to the correct folder
Code:
alias pf='export PYTHONPATH=/home/user-a5/OpenFOAM/PyFoam-0.6.3/lib/python-2.7/site-packages:$PYTHONPATH; export PATH=/home/user-a5/OpenFOAM/PyFoam-0.6.3/bin:$PATH' I really don't understand what happens :-( Maybe other Python versions in my computer disturb PyFoam... |
Quote:
The screenshots don't help. The titlebar with the path is unreadable. Plus comparing letter by letter for typos usually doesn't work. The only thing I trust is copying stuff from my config-file. "cd " and paste "<enter>" and see whether I'm in the correct directory |
Hi,
Quote:
Code:
lib/python2.7/site-packages so the alias should be something like Code:
alias pf='export PYTHONPATH=$HOME/OpenFOAM/PyFoam-0.6.3/lib/python2.7/site-packages:$PYTHONPATH; export PATH=$HOME/OpenFOAM/PyFoam-0.6.3/bin:$PATH' |
Dear Bernhard and Alexey, the problem was the '-' character. I apologize for having wasted your time, it was really a silly error :-(
As you can see, I've been far away from OpenFOAM and linux stuff for the last two years. Sorry again, have a good day. PS Thanks for the $HOME tip too. |
ImportError: cannot import name isatty
Dear All,
Happy New Year Wishes !! I am using OpenFOAM 2.2.2 and i recently installed pyFoam 0.6.4 (installed it as a root). The installation was successfull but, when i try to use anyone of pyFoam commands say for instance .. pyFoamChangeBoundaryType.py ... I get an error as shown below Code:
Code:
Machine info: Linux | ws012sla | 3.2.0-61-generic | #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014 | x86_64 | x86_64 |
Quote:
/usr/local/lib/python2.7/dist-packages/PyFoam/Error.py That is a completely fresh installation or did you upgrade from an old PyFoam installation? (but it must be really ancient because isatty is there for years) |
Dear Bernhard Gschaider !
Thanks for your response !! I did a fresh installation of pyFoam 0.6.4... Is there any way to uninstall pyfoam ? I would like to reinstall it and try one more time... Quote:
|
Quote:
You should be fine if you removed all files starting with pyFoam from /usr/local/bin and the whole directory /usr/local/lib/python2.7/dist-packages/PyFoam/ |
Quote:
Thanks for the tip, I removed the files as you adviced and reinstalled pyFoam. Now everything works. Thank you very much !! |
Quote:
Hello friend I appreciate if you cold help me I go for install PyFoam I unrar file got from you said with tar command then go to folder and then type the command came in wiki this is the error: for first command: Code:
fatema@fatema-2PC:~/PyFoam-0.6.5$ sudo python setup.py install Code:
fatema@fatema-2PC:~/PyFoam-0.6.5$ sudo apt-get install python-dev |
Quick answer: You need to update the package list first:
Code:
sudo apt-get update Code:
sudo apt-get install python-dev |
Quote:
|
Quote:
Thank you again but after doing the installation and enter the checking command Code:
To test whether the installation of PyFoam is working start the interactive Python shell with how I can know it works fine? Thank you |
All times are GMT -4. The time now is 08:37. |