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

[PyFoam] on Ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By zlw306

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 14, 2016, 11:20
Default on Ubuntu 16.04
  #1
New Member
 
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12
Danubi is on a distinguished road
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
Python 2.7.11+ (default, Apr 17 2016, 14:00:29) 
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyFoam
>>> import PyFoam.FoamInformation
>>> print PyFoam.FoamInformation.foamTutorials()

>>> import sys
>>> print sys.path
['', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/dan/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0']
>>> 
dan@dan-Gazelle:~$ pyFoamVersion.py
Traceback (most recent call last):
  File "/usr/local/bin/pyFoamVersion.py", line 4, in <module>
    __import__('pkg_resources').run_script('PyFoam==0.6.5', 'pyFoamVersion.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1496, in run_script
    raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'pyFoamVersion.py'
What is it that I am doing wrong? Would anyone recommend a better way?

Thanks in advance
Danubi is offline   Reply With Quote

 

Tags
pyfoam ubuntu 16.04 pip


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.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 titanium OpenFOAM Installation 14 February 20, 2020 11:46
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 MM_Khan OpenFOAM Installation 11 September 3, 2017 09:22
[foam-extend.org] foam-extend-3.2 on ubuntu 16.04 lts FlyBob91 OpenFOAM Installation 1 May 27, 2017 07:26
[OpenFOAM.org] Building OpenFOAM 3.0.1 on Ubuntu 16.04 - failed erico OpenFOAM Installation 30 February 2, 2017 09:24
[OpenFOAM.org] Building problem with Paraview 4.1.0 on Ubuntu 16.04 nigala OpenFOAM Installation 2 June 20, 2016 10:18


All times are GMT -4. The time now is 08:15.