Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: error runcode.py V7P0R1 cluster

error runcode.py V7P0R1 cluster 9 years 8 months ago #15935

  • marine
  • marine's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
Hello,

I had installed the V7P0R1 version on my cluster and when I launch dambreak, the validation cas, this message appear :


GRIDENGINE TELEMAC 7.0.1 PYTHON START
python /home/mlambert/Telemac_test/V7P0R1/scripts/python27/runcode.py -c brli_intelAVX -f /home/mlambert/Telemac_test/V7P0R1/configs/systel.BRLi.cfg telemac2d -t cas
Traceback (most recent call last):
File "/home/mlambert/Telemac_test/V7P0R1/scripts/python27/runcode.py", line 125, in <module>
import numpy as np
ImportError: No module named numpy

I have already install the V7P0R0 version on my cluster without problem.
And when I used the runcode.py of V7P0R0 on V7P0R1 (copy on V7P0R1\scripts\python27) the compuation succeeded.

Maybe There is something strange in the runcode.py file of V7P0R1 with the line "import numpy as np"?

Thank for your help

Best regards
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15937

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
numpy is a python library not include with the python distribution
I think you should install it on your cluster

Regards
Christophe
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15938

  • marine
  • marine's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
OK
Where I need to put this library?

Regards
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15941

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
I suppose it should be install like the python packages.
It depends on the configuration of your cluster and also sometimes of the linux distribution.
See with your IT people

Regards
Christophe
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15943

  • marine
  • marine's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 52
My question was more about Telemac configuration.
If there is somewhere a link to define on telemac configuration where is numpy
Regards
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15944

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
I don't think as you don't configure telemac for Python

regards
Christophe
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15945

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello, .. just to be clear,

The TELEMAC system uses the python interpreter to run various scripts including compiling, validating and running the main modules.

The TELEMAC system itself does not link to python or any python libraries and therefore does not need to be configured as such. As Christophe says, there is no need to link numpy to TELEMAC.

However, the various scripts (written in python language) calls intrinsic functions of the python interpreter and some other functions from various numerical, scientific, plotting libraries. These functions are usually part of your python installation and come as one interpreter. Additional libraries (such as numpy) can be added to the python interpreter for extra features. In any case these are added under the python install/package, and not under the TELEMAC system.

If you do not wish to install python, numpy, scipy and matplotlib and the few others including mayavi (all called from within the scripts of the TELEMAC system) you can install Canopy (Enthought's), which come with everything you need in one install.

If you just need python and numpy thought on your cluster, it is probably best just to install those two as any other program install. Again, these are independent of TELEMAC, and only the python interpreter needs to know where is what.

Hope this helps,
Sébastien.
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15953

  • jmhervouet
  • jmhervouet's Avatar
Hello Sébastien,

Just to fully understand the issue, could you please tell us whether Numpy is a new requirement of Python scripts in version 7.0, which would explain that a user gets now this message, or if it was already the case in previous versions, in which case it would be difficult to understand why this message pops out now, unless the Python library has been changed...

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #15958

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello Jean-Michel,

Since the beginning of the python scripts, the libraries numpy, scipy and matplotlib have been pre-requisit of the TELEMAC install with python. Since v7p0, we have added a requirement for mayavi (for 3D plotting/slicing, etc.) which required us to change our strategy and ask users to install the self inclusive Canopy package instead of the libraries individually.

That being said, runcode.py (running all modules of TELEMAC) used to be just passing through between all these requirement prior to v7p0. Since v7p0 and because of the work on the validation, numpy was introduced in runcode.py.

If you do not use the validation scripts, you can simply remove that line from the runcode.py script and it should work. Otherwise, users will have to adapt to en ever so growing python scripting environment.

Finally, we have had on our wish list a "lite" version of the python script for HPC deployment for a couple of years. We will try to work on this for the next version (v7p1) or next release (v7p0r2 if the consortium allows this).

Hope this helps,
Sébastien.
The administrator has disabled public write access.

error runcode.py V7P0R1 cluster 9 years 8 months ago #16061

  • amyrhulbakar
  • amyrhulbakar's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
Hello all,

I have installed v7p0 at cluster, and have disabled line 135 of runcode.py "from parsers.parserSELAFIN import PARAFINS".

Then got the new error message:

uncontroled error from python:: NameError("global name 'PARAFINS' is not defined",)
~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "runcode.py", line 1452, in main
runCAS(cfgname,cfg,codeName,casFiles,options)
File "runcode.py", line 1088, in runCAS
copyPartition(CASFiles[name],GLOGEO,MODFiles[CASFiles[name]],ncsize,False,options.use_link)
File "runcode.py", line 632, in copyPartition
if not slf: slf = PARAFINS(geom,geom)
NameError: global name 'PARAFINS' is not defined
~~~~~~~~~~~~~~~~~~

Comparing the next lines that caused errors to the runcode.py of v6p3r2, this is not my expertise to amend the python code till working. Do anybody has the runcode.py of version 7 that can work at cluster?

Or how to include "numpy" at cluster so the latest runcode.py can go through line 135 without problem?

Thanks..
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.