Welcome, Guest
Username: Password: Remember me

TOPIC: Installing v8p3r1 on Win10

Installing v8p3r1 on Win10 2 years 4 months ago #40569

  • PAA
  • PAA's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi ...someone!

I'm trying to install the last telemac version following this video (with some adaptations) :

However, it didn’t work for me. But I think I'm close to the solution!

I tried to install the version v8p3r1. It goes well until compiling. Then it requires newer version of scypy, numpy and matplotlib. I installed them using "pip3 install --user XXX" and it worked. I recompiled and it worked but when I tried to run the Malpasset example it gave me this:

C:\opentelemac-mascaret\v8p3r1\scripts\python3>py telemac2d.py ..\..\examples\telemac2d\malpasset\t2d_malpasset-fine.cas


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Traceback (most recent call last):
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\telemac2d.py", line 7, in <module>
main('telemac2d')
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\runcode.py", line 223, in main
update_config(options)
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\config.py", line 77, in update_config
CFGS.parse_cfg_file(cfg_file, cfg_name, root_dir, python_dir)
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\configuration\cfg.py", line 100, in parse_cfg_file
raise TelemacException('Could not find {}'.format(cfg_file))
utils.exceptions.TelemacException: Could not find C:\opentelemac-mascaret\v8p3r1\configs\systel.cfg


I tried then to use one of the systel file as "systel.cfg" (systel.edf.cfg seemed to work best) but I get the following error:


C:\opentelemac-mascaret\v8p3r1\scripts\python3>py telemac2d.py ..\..\examples\telemac2d\malpasset\t2d_malpasset-fine.cas


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

___ ____ __
/ _ \ |___ \ /_ |
__ __| (_) | _ __ __) | _ __ | |
\ \ / / > _ < | '_ \ |__ < | '__| | |
\ V / | (_) || |_) | ___) || | | |
\_/ \___/ | .__/ |____/ |_| |_|
| |
|_|


Running your CAS file(s) for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

wing64mpi:

+> root: C:\opentelemac-mascaret\v8p3r1
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / sisyphe
special / stbtel / telemac2d / telemac3d
tomawac / waqtel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... processing the steering file
~> Checking keyword/rubrique coherence
Traceback (most recent call last):
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\telemac2d.py", line 7, in <module>
main('telemac2d')
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\runcode.py", line 279, in main
run_study(cas_file, code_name, options)
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\execution\run_cas.py", line 163, in run_study
my_study = Study(
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\execution\study.py", line 130, in __init__
self.cas = TelemacCas(self.steering_file, self.dico_file)
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\execution\telemac_cas.py", line 116, in __init__
self._set_io_files()
File "C:\opentelemac-mascaret\v8p3r1\scripts\python3\execution\telemac_cas.py", line 325, in _set_io_files
raise TelemacException(
utils.exceptions.TelemacException: In ..\..\examples\telemac2d\malpasset\t2d_malpasset-fine.cas missing file for GEOMETRY FILE:
geo_malpasset-large.slf


I checked that "geo_malpasset-large.slf" does exist and it does.

Do you have any idea?
Thank you very much for your answer.

Best regards
The administrator has disabled public write access.

Installing v8p3r1 on Win10 2 years 4 months ago #40610

  • PAA
  • PAA's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thanks to M. Maskell, my problem is solved !

*********************************************
Hi Pierre-Adil,

I don't have this problem as I am still running the scripts using Python27. However, I got the same error using Python3. It seems to be a relative path problem. As you are running the code from "C:\opentelemac-mascaret\v8p0r0\scripts\python3" it is looking for the geometry file in that folder. You can try 3 things (Note that I have only tried the first option which worked for me).

Open the file "C:\opentelemac-mascaret\v8p0r0\scripts\python3\telemac2d.py" and add the following two lines to the top of the file:
import sys
sys.path.append( sys.path.append( "C:/opentelemac-mascaret/v8p3r1/scripts/python3/" )

Do this in a Python editor like idle or just use notepad.

Then run the code from the example folder itself but you will have to give a full path to the script so:

python C:/opentelemac-mascaret/v8p3r1/scripts/python3/telemac2d.py t2d_malpasset-fine.cas

Edit the .cas file and give full absolute paths to the input files.
Open the file "C:/opentelemac-mascaret/v8p3r1/scripts/python3/telemac_cas.py and comment out the lines 177 to 180.
# if not path.exists(val):
# raise Exception(\
# "In {} missing file for {}:\n {}"\
# .format(self.file_name, key, val))
These should be considered temporary fixes to hopefully get the model running. However, there should be a better solution for running the Python3 version. I am not familiar with this version but it seems others on the forums have had the same problems.

Let me know if it works.

Regards,
John
The administrator has disabled public write access.
Moderators: borisb

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