|
[Sponsors] |
May 8, 2013, 17:46 |
|
#21 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
So remove all parts pointing to the Paraview-installation from the PYTHONPATH and retry
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 8, 2013, 18:13 |
|
#22 |
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
Ok, I do in this way:
run Python import sys print sys.path import paraview import vtk Code:
MacBook-di-Simone:~ simomartini$ python Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sis Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'sis' is not defined >>> quit() MacBook-di-Simone:~ simomartini$ python Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path ['', '/Users/simomartini', '/Applications/Paraview_3.98.1.app/Contents/Python', '/Applications/Paraview_3.98.1.app/Contents/Python/paraview', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages'] >>> import paraview >>> import vtk Error: Could not import vtkCommonComputationalGeometryPython Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Applications/Paraview_3.98.1.app/Contents/Python/paraview/vtk/__init__.py", line 7, in <module> from vtkCommonCorePython import * ImportError: No module named vtkCommonCorePython >>> Code:
MacBook-di-Simone:~ simomartini$ pyFoamVersion.py Machine info: Darwin | MacBook-di-Simone.local | 11.4.2 | Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 | x86_64 | i386 Python version: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] PYTHONPATH: :/Applications/Paraview_3.98.1.app/Contents/Python:/Applications/Paraview_3.98.1.app/Contents/Python/paraview Location of this utility: /usr/local/bin/pyFoamVersion.py OpenFOAM () of the installed versions ['2.2.0'] This version of OpenFOAM uses the old calling convention pyFoam-Version: 0.6.0 Path where PyFoam was found (PyFoam.__path__) is ['/Library/Python/2.7/site-packages/PyFoam'] Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/Users/simomartini/.pyFoam/pyfoamrc'), ('directory', '/Users/simomartini/.pyFoam/pyfoamrc.d')] Configuration files (used): [] Installed libraries: Gnuplot : No Not a problem. Version from ThirdParty is used ply : No Not a problem. Version from ThirdParty is used Numeric : No Not supported anymore. No need to install it /Applications/Paraview_3.98.1.app/Contents/Python/numpy/random/__init__.py:87: RuntimeWarning: compiletime version 2.6 of module 'mtrand' does not match runtime version 2.7 from mtrand import * numpy : Yes version: 1.6.2 matplotlib : Yes version: 1.1.1 psyco : No Not a problem. Acceleration not possible hotshot : Yes profile : Yes cProfile : Yes PyQt4 : Yes PyQt4.Qwt5 : No Only an alternate plotting back-end vtk : Error: Could not import vtkCommonComputationalGeometryPython No Not a problem. Only used for some utilities Tkinter : Yes version: $Revision: 81008 $ mercurial : No Not a problem. Used for experimental case handling nose : No Only needed for running the unit-tests (developers only) twisted : Yes version: 11.0.0 pandas : No Not yet used. Maybe handling of timelines will be reimplemented with it scipy : No Not yet used. Possibly use signal-fitting etc MacBook-di-Simone:~ simomartini$ |
|
May 8, 2013, 18:32 |
|
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The VTK-version that comes with Paraview is NO help. For some technical reason (you'll have to research that yourself) the version of VTK that comes with Paraview is modified and in parts behaves differently. Make sure you use the version from MacPorts (I think I described that before)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 8, 2013, 19:25 |
|
#24 |
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
this is my version of ports
Code:
MacBook-di-Simone:~ simomartini$ port MacPorts 2.1.3 Entering interactive mode... ("help" for help, "quit" to quit) [Users/simomartini] > Code:
MacBook-di-Simone:~ simomartini$ pyFoamVersion.py Machine info: Darwin | MacBook-di-Simone.local | 11.4.2 | Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 | x86_64 | i386 Python version: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] PYTHONPATH: :/Users/simomartini/projects/ParaView-bin/lib/site-packages/ Location of this utility: /usr/local/bin/pyFoamVersion.py OpenFOAM () of the installed versions ['2.2.0'] This version of OpenFOAM uses the old calling convention pyFoam-Version: 0.6.0 Path where PyFoam was found (PyFoam.__path__) is ['/Library/Python/2.7/site-packages/PyFoam'] Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/Users/simomartini/.pyFoam/pyfoamrc'), ('directory', '/Users/simomartini/.pyFoam/pyfoamrc.d')] Configuration files (used): [] Installed libraries: Gnuplot : No Not a problem. Version from ThirdParty is used ply : No Not a problem. Version from ThirdParty is used Numeric : No Not supported anymore. No need to install it numpy : Yes version: 1.5.1 matplotlib : No Only Gnuplot-plotting possible psyco : No Not a problem. Acceleration not possible hotshot : Yes profile : Yes cProfile : Yes PyQt4 : Yes PyQt4.Qwt5 : No Only an alternate plotting back-end vtk : No Not a problem. Only used for some utilities Tkinter : Yes version: $Revision: 81008 $ mercurial : No Not a problem. Used for experimental case handling nose : No Only needed for running the unit-tests (developers only) twisted : Yes version: 12.3.0 pandas : No Not yet used. Maybe handling of timelines will be reimplemented with it scipy : No Not yet used. Possibly use signal-fitting etc |
|
May 8, 2013, 19:44 |
|
#25 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 10, 2013, 06:35 |
|
#26 |
New Member
Simone Martini
Join Date: Apr 2013
Posts: 11
Rep Power: 13 |
I already install the vtk5! but I really don't know why this doesn't work.
Code:
MacBook-di-Simone:~ simomartini$ sudo port install vtk5 +python27 +qt4_mac Password: ---> Computing dependencies for vtk5 ---> Deactivating vtk5 @5.10.1_0+tcltk+x11 ---> Cleaning vtk5 ---> Activating vtk5 @5.10.1_0+python27+qt4_mac ---> Cleaning vtk5 ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. MacBook-di-Simone:~ simomartini$ pyFoamVersion.py Machine info: Darwin | dhcp-201-211.wireless.soton.ac.uk | 11.4.2 | Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 | x86_64 | i386 Python version: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] PYTHONPATH: :/Users/simomartini/projects/ParaView-bin/lib/site-packages/ Location of this utility: /usr/local/bin/pyFoamVersion.py OpenFOAM () of the installed versions ['2.2.0'] This version of OpenFOAM uses the old calling convention pyFoam-Version: 0.6.0 Path where PyFoam was found (PyFoam.__path__) is ['/Library/Python/2.7/site-packages/PyFoam'] Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/Users/simomartini/.pyFoam/pyfoamrc'), ('directory', '/Users/simomartini/.pyFoam/pyfoamrc.d')] Configuration files (used): [] Installed libraries: Gnuplot : No Not a problem. Version from ThirdParty is used ply : No Not a problem. Version from ThirdParty is used Numeric : No Not supported anymore. No need to install it numpy : Yes version: 1.5.1 matplotlib : No Only Gnuplot-plotting possible psyco : No Not a problem. Acceleration not possible hotshot : Yes profile : Yes cProfile : Yes PyQt4 : Yes PyQt4.Qwt5 : No Only an alternate plotting back-end vtk : No Not a problem. Only used for some utilities Tkinter : Yes version: $Revision: 81008 $ mercurial : No Not a problem. Used for experimental case handling nose : No Only needed for running the unit-tests (developers only) twisted : Yes version: 12.3.0 pandas : No Not yet used. Maybe handling of timelines will be reimplemented with it scipy : No Not yet used. Possibly use signal-fitting etc MacBook-di-Simone:~ simomartini$ |
|
May 11, 2013, 07:17 |
|
#27 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 7, 2014, 06:51 |
error messages running pyFoamPlotRunner
|
#28 |
New Member
Join Date: Aug 2013
Posts: 7
Rep Power: 13 |
hello
i installed pyFoam on a rhel server but if i run pyFoamPlotRunner with the syntax pyFoamPlotRunner.py <OFsolver> -case CASE pyFoamPlotRunner.py <OFsolver> (in the case folder) i get following error messageTraceback (most recent call last): File "/usr/bin/pyFoamPlotRunner.py", line 3, in ? from PyFoam.Applications.PlotRunner import PlotRunner File "/usr/lib/python2.4/site-packages/PyFoam/Applications/PlotRunner.py", line 6 from .PyFoamApplication import PyFoamApplication ^ SyntaxError: invalid syntax i would be happy about any help or recommendations i m running pyFoam0.6.2 |
|
May 7, 2014, 08:01 |
|
#29 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
What kind of RHEL? My guess is that it is not 6. Because the problem you have is one of the rare backward incompatibilities in Python. Relative imports were introduced with python 2.5 (so your Python seems to be 2.4 or older). Ah. Just saw it: it says 2.4 in the output Options are: - make the import absolute (just add PyFoam.Applications in front of the dot). Don't know where else this is required. Or make it "oldSchool"-relative by removing the dot in the front - there are packages python26 or python27 for RHEL that give you a higher-version PyFoam in parallel to the system on (don't EVER replace the system-python on a RHEL-machine). Using that needs a little bit of trickery (especially if you use setup.py) The reason why PyFoam uses the new-style relative import is that the old way does not work with Python 3 (PyFoam is compatible with python 2.x and 3.x but in order to get that I had to break compatibility with Pythons older than 2.5)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 7, 2014, 08:20 |
|
#30 |
New Member
Join Date: Aug 2013
Posts: 7
Rep Power: 13 |
oh sorry i didnt knew that
Code:
File "/usr/bin/pyFoamPlotRunner.py", line 3, in ? from PyFoam.Applications.PlotRunner import PlotRunner File "/usr/lib/python2.4/site-packages/PyFoam/Applications/PlotRunner.py", line 6 from .PyFoamApplication import PyFoamApplication ^ SyntaxError: invalid syntax |
|
May 8, 2014, 05:35 |
|
#31 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 19, 2015, 16:23 |
pyFoamDisplayBlockMesh.py raise e AttributeError: SetInput
|
#32 |
New Member
Join Date: Feb 2010
Posts: 28
Rep Power: 16 |
Hi,
I have a similar problem as is reported earlier and I can not find solution to that. My os is rhel 7.1 and same problem occur with pyFoam version 0.6.1 and 0.6.4. Error message is also similar with both pyFoam version. error: Code:
[Pekka@Kone4 rotor]$ pyFoamDisplayBlockMesh.py constant/polyMesh/blockMeshDict Using system-VTK Status: blockMesh modified - Ready PyFoam WARNING on line 338 of file /home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/DisplayBlockMeshQt.py : While reading constant/polyMesh/blockMeshDict this happened: SetInput Traceback (most recent call last): File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/bin/pyFoamDisplayBlockMesh.py", line 18, in <module> DisplayBlockMesh() File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/DisplayBlockMeshQt.py", line 1338, in __init__ nr=1) File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplicationQt4.py", line 37, in __init__ exactNr=exactNr) File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplication.py", line 356, in __init__ result=self.run() File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplicationQt4.py", line 59, in run self.setupGUI() File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/DisplayBlockMeshQt.py", line 1369, in setupGUI valuesFile=self.opts.valuesFile) File "/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/Applications/DisplayBlockMeshQt.py", line 339, in __init__ raise e AttributeError: SetInput Code:
[Pekka@Kone4 rotor]$ pyFoamVersion.py Machine info: Linux | Kone4 | 3.10.0-229.14.1.el7.x86_64 | #1 SMP Tue Sep 15 15:05:51 UTC 2015 | x86_64 | x86_64 Python version: 2.7.5 (default, Jun 24 2015, 00:41:19) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] Python executable: /usr/bin/python Python 2.7 is one development platform for PyFoam (along with Python 3) PYTHONPATH: /home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages: Location of this utility: /home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/bin/pyFoamVersion.py PyFoam WARNING on line 192 of file /home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam/FoamInformation.py : Basedir /home/Pekka/OpenFOAM for fork openfoam does not exist or is not a directory Version 3.2 Fork extend of the installed 2 versions: extend-3.1 : /home/Pekka/foam/foam-extend-3.1 extend-3.2 : /home/Pekka/foam/foam-extend-3.2 pyFoam-Version: 0.6.4 ALERT: Reported version (0, 6, 4) is different from hardcoded version (0, 6, 4, 'development') -> probably inconsistent library installation Path where PyFoam was found (PyFoam.__path__) is ['/home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch/lib/python2.7/site-packages/PyFoam'] Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts/etc/pyfoamrc'), ('directory', '/home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts/etc/pyfoamrc.d'), ('file', '/home/Pekka/.pyFoam/pyfoamrc'), ('directory', '/home/Pekka/.pyFoam/pyfoamrc.d')] Configuration files (used): ['/home/Pekka/.pyFoam/pyfoamrc'] Installed libraries: cython : No Not used. Maybe will by used later to spped up parts of PyFoam cProfile : Yes docutils : No Not necessary. Needed for RestructuredText to HTML conversion Gnuplot : No Not a problem. Version from ThirdParty is used hotshot : Yes ipdb : No Not necessary. Only makes debugging more comfortable IPython : No Not necessary. But the interactive shell may be more comfortable matplotlib : Yes version: 1.2.0 mercurial : Yes version: 2.6.2 nose : Yes version: 1.3.0 numpy : Yes version: 1.7.1 openpyxl : No Not a problem. Only used for exporting pandas-data to Excel-files (advanced) pandas : No Not a problem. Only used for handling of advanced data-handling ply : No Not a problem. Version from ThirdParty is used profile : Yes psyco : No Not a problem. Acceleration not possible PyQt4 : Yes version: 4.8.5 PyQt4.Qwt5 : No Only an alternate plotting back-end scipy : No Not yet used. Possibly use signal-fitting etc Tkinter : Yes version: $Revision: 81008 $ twisted : No Not yet used. Possibly reimplement MetaServer with it vtk : Yes version: 6.1.0 xlwt : No Not a problem. Only used for exporting pandas-data to Excel-files xlrd : No Not a problem. Only used for importing Excel-files to pandas-data Library locations cProfile : /usr/lib64/python2.7/cProfile.pyc hotshot : /usr/lib64/python2.7/hotshot/__init__.pyc matplotlib : /usr/lib64/python2.7/site-packages/matplotlib/__init__.pyc mercurial : /usr/lib64/python2.7/site-packages/mercurial/__init__.pyc nose : /usr/lib/python2.7/site-packages/nose/__init__.pyc numpy : /usr/lib64/python2.7/site-packages/numpy/__init__.pyc profile : /usr/lib64/python2.7/profile.pyc PyQt4 : /usr/lib64/python2.7/site-packages/PyQt4/__init__.pyc Tkinter : /usr/lib64/python2.7/lib-tk/Tkinter.pyc vtk : /usr/lib64/python2.7/site-packages/vtk/__init__.pyc Checking additional envirnoment variables Checking for PYFOAM_DIR : Location of the PyFoam-installation. Not strictly necessary PYFOAM_DIR set to /home/Pekka/foam/foam-extend-3.2/ThirdParty/packages/PyFoam-0.6.4/platforms/noarch Checking for PYFOAM_SITE_DIR : Location of non-PyFoam-disctributions script. Set and used by some Foam-distributions PYFOAM_SITE_DIR set to /home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts Site-specific scripts should be added to /home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts/bin Site-specific configurations can be added to /home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts/etc Site-specific library files can be added to /home/Pekka/foam/foam-extend-3.2/ThirdParty/PyFoamSiteScripts/lib Do NOT add to PYTHONPATH but import as PyFoam.Site [Pekka@Kone4 rotor]$ older pyFoam version Code:
[Pekka@Kone4 angledDuctExplicit]$ pyFoamVersion.py Machine info: Linux | Kone4 | 3.10.0-229.14.1.el7.x86_64 | #1 SMP Tue Sep 15 15:05:51 UTC 2015 | x86_64 | x86_64 Python version: 2.7.5 (default, Jun 24 2015, 00:41:19) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] Python executable: /usr/bin/python PYTHONPATH: /home/Pekka/foam/foam-extend-3.1/ThirdParty/packages/PyFoam-0.6.1/platforms/noarch/lib/python2.7/site-packages: Location of this utility: /home/Pekka/foam/foam-extend-3.1/ThirdParty/packages/PyFoam-0.6.1/platforms/noarch/bin/pyFoamVersion.py OpenFOAM (3, 1) of the installed versions [] pyFoam-Version: 0.6.1 Path where PyFoam was found (PyFoam.__path__) is ['/home/Pekka/foam/foam-extend-3.1/ThirdParty/packages/PyFoam-0.6.1/platforms/noarch/lib/python2.7/site-packages/PyFoam'] Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/Pekka/.pyFoam/pyfoamrc'), ('directory', '/home/Pekka/.pyFoam/pyfoamrc.d')] Configuration files (used): ['/home/Pekka/.pyFoam/pyfoamrc'] Installed libraries: Gnuplot : No Not a problem. Version from ThirdParty is used ply : No Not a problem. Version from ThirdParty is used Numeric : No Not supported anymore. No need to install it numpy : Yes version: 1.7.1 matplotlib : Yes version: 1.2.0 psyco : No Not a problem. Acceleration not possible hotshot : Yes profile : Yes cProfile : Yes PyQt4 : Yes PyQt4.Qwt5 : No Only an alternate plotting back-end vtk : Yes Tkinter : Yes version: $Revision: 81008 $ mercurial : Yes nose : Yes version: 1.3.0 twisted : No Not yet used. Possibly reimplement MetaServer with it pandas : No Not yet used. Maybe handling of timelines will be reimplemented with it scipy : No Not yet used. Possibly use signal-fitting etc Library locations profile : /usr/lib64/python2.7/profile.pyc Tkinter : /usr/lib64/python2.7/lib-tk/Tkinter.pyc hotshot : /usr/lib64/python2.7/hotshot/__init__.pyc mercurial : /usr/lib64/python2.7/site-packages/mercurial/__init__.pyc vtk : /usr/lib64/python2.7/site-packages/vtk/__init__.pyc matplotlib : /usr/lib64/python2.7/site-packages/matplotlib/__init__.pyc PyQt4 : /usr/lib64/python2.7/site-packages/PyQt4/__init__.pyc nose : /usr/lib/python2.7/site-packages/nose/__init__.pyc cProfile : /usr/lib64/python2.7/cProfile.pyc numpy : /usr/lib64/python2.7/site-packages/numpy/__init__.pyc [Pekka@Kone4 angledDuctExplicit]$ BR/Pekka |
|
October 24, 2015, 18:55 |
|
#33 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @Pekka: VTK 6.1... I don't think that PyFoam is prepared for VTK 6.x, because the API changed considerably between VTK 5.x to 6.x.
How exactly did you install Qt 4.8 and VTK 6.1 in RHEL 7? Was it from the EPEL repositories? |
|
October 29, 2015, 15:34 |
|
#34 |
New Member
Join Date: Feb 2010
Posts: 28
Rep Power: 16 |
Thank you Bruno!
Problem has been solved by downgrade vtk to older one. I compiled vtk-5.10.1-4 from fc19.src.rpm source package. vtk 6.1.0 is from epel repository. BR/Pekka |
|
October 26, 2021, 12:25 |
|
#35 |
New Member
Craig Thomas
Join Date: Dec 2019
Location: Leeds, UK
Posts: 12
Rep Power: 7 |
Hello everyone
I know this thread is years old but I'm hoping someone will still be able help. I'm trying to use the pyFoamDisplayBlockMesh function but keep getting the following error: segmentation fault (core dumping). with no further indication as to the cause of the error. I then set about compiling foam-extend 4 in debug mode which then gave me the following error: mn14cat@mn14cat-XPS-13-7390:~/foam/mn14cat-4.1/run/tutorials/solidMechanics/elasticSolidFoam/plateHole$ pyFoamDisplayBlockMesh.py constant/polyMesh/blockMeshDict VTK version 6 PyFoam WARNING on line 48 of file /home/mn14cat/foam/foam-extend-4.1/ThirdParty/packages/PyFoam-0.6.9/platforms/noarch/lib/python2.7/site-packages/PyFoam-0.6.9-py2.7.egg/PyFoam/Applications/DisplayBlockMeshQt.py : VTK version 6 currently unsupported Segmentation fault (core dumped) So my question is how would I go about downgrading my version of VTK and which version would be best to run displayMesh.py thanks in advance and hopefully someone finds this. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Problems installing swak4Foam in foam-extend-4.0 on Ubuntu 16.04 | jock | OpenFOAM Community Contributions | 12 | September 6, 2019 04:27 |
[OpenFOAM.com] v3.0+ Problems installing on Ubuntu 16.04 | Evander | OpenFOAM Installation | 3 | March 26, 2017 15:47 |
[OpenFOAM.org] Problems installing OF4.1 in Kubuntu 14.04 | Outbound | OpenFOAM Installation | 5 | February 2, 2017 08:54 |
[foam-extend.org] Problems installing foam-extend 3.0 | aylalisa | OpenFOAM Installation | 9 | April 23, 2015 17:17 |
Problems installing CFX on Sun Unix Platform | Haley | CFX | 2 | November 9, 2001 10:52 |