Welcome, Guest
Username: Password: Remember me

TOPIC: Problem compiling telemac

Problem compiling telemac 4 years 2 months ago #36674

  • kareemjo94
  • kareemjo94's Avatar
Thank you very much, it worked for the compiling :)
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36681

  • Dottarelli
  • Dottarelli's Avatar
Hi all,

I tried to install Telemac v8p1 automatically, but it gave me an error (see picture attached - error1).

So, I follow the instruction that I found here

wiki.opentelemac.org/doku.php?id=instruc...tomatic_installation


1) RUN IN THE CMD
svn co svn.opentelemac.org/svn/opentelemac/tags/v8p1r1 "C:\opentelemac-mascaret\v8p1r1" --username ot-svn-public --password telemac1*

Each v2p2 is replaced with v8p1r1 cause I read that this is the last stable bug fixed version (am I right??)


2) I downloaded the two configuration file founded in the site, renamed them and changed every v7p2 with v8p1r1 (they are attached)

3) Created a cmd shortcut on desktop and renamed TELEMAC v8p1r1

4) In the properties of the shortcut I:
4.1)copy/paste the following path next to what is already there, separated by
a space (in the target box)

/E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v8p1r1\configs\systel_v8p1r1.cfg && PATH=C:\opentelemac-mascaret\v8p1r1\scripts\python3;!PATH!

4.2)deleted the path in the start in box and replaced with

C:\opentelemac-mascaret\v8p1r1


5) Then I opened the shortcut of telemac and I typed compile_telemac.py, but i get the error shown in the picture attached (error2).


I think that the error is due to the version of python (actually I have python 3.8.4 installed, but in the folder of "opentelemac-mascaret" there is python 27).

Is the error due to this?

Thanks for the attention,
Andrea
Attachments:
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36690

  • Dottarelli
  • Dottarelli's Avatar
I forgot to specify that I would install it with python 3 (as yugi recommend)
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36693

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

I think the issue here is that .py file are still associated with python2.
You can verify that by running the follwoing code
python3 C:\opentelemac\v8p1\scripts\python3\compile_telemac.py
If it works then you need to update the associate you can have a look at the following page on how to do that (docs.python.org/3.3/using/windows.html#e...-the-python-launcher)
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Dottarelli

Problem compiling telemac 4 years 2 months ago #36696

  • Dottarelli
  • Dottarelli's Avatar
First of all thanks for the attention yugi.

I tried your command but it did't work, but I think I founded the issue (maybe)

Typing python3 didn't work for me (I think because I already use python 3 as py).

So I typed in the shortcut renamed Telemacv8p1r1:

1) py C:\opentelemac-mascaret\v8p1r1\scripts\python3\compile_telemac.py

but it came up with the error1 (attached figure)

2) So I typed

2.1)cd C:\opentelemac-mascaret\v8p1r1\scripts\python3
2.2) py compile_telemac.py

But again it came up again with an error (error2, attached figure)

In the last line of the error2 you can see that it's saying that the file ''systel_v8p1'' could not be found (my mistake, cause I both change the directory and also had renamed the file in ''systel_v8p1r1'' :pinch: )

3) So I

3.1)rechanged the directory (cd C:\opentelemac-mascaret\v8p1r1)
3.2)renamed the systel file in ''systel_v8p1''


4) and run the command

py C:\opentelemac-mascaret\v8p1r1\scripts\python3\compile_telemac.py

And......it finally works!!



P.S. for launching the simulation I just have to type:

py C:\opentelemac-mascaret\v8p1r1\scripts\python3\telemac2d.py

and the the name of the file .cas

P.S. 2
Just for be clear in the various folder or path there is v8p1r1 just because I renamed the folder with that name (instead v8p1)


Sorry for the long reply but that is just for help any other who may have my kind of problem.

Thanks again yugi,

Andrea
Attachments:
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36697

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
If you want to get it working without having to give the whole path.
You can do the equivalent of what was explained in the link with regedit.exe.
Search for python and you should find the association to update to:
"C:\Python27\python.exe" "%1" %*

Replace the C:\Python27\python.exe by the path to your python3 executable
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: Dottarelli

Problem compiling telemac 4 years 2 months ago #36698

  • kareemjo94
  • kareemjo94's Avatar
Hello Again Yugi,

I tried to install Telemac v8p1 on another machine but there was an error in the installation.

The result was when I am trying to compile Telemac, I get the following error:

''The command "gfortran" is either misspelled or] 0% | --- s
could not be found.''

I tried using the manual installation but couldn't find a proper solution.

I hope you can help me with it
Thank you
Attachments:
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36699

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Yo might be missing some environement variable.
To have access to gfortran.
Or gfortran is not installed properly.
You can check by running gfortran -v in the terminal
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36701

  • kareemjo94
  • kareemjo94's Avatar
Yes it right, it gives me the same message when I run gfortran -v

'The command "gfortran" is either misspelled or could not be found.''

can you please refer me or tell me how to install the gfortran ?
The administrator has disabled public write access.

Problem compiling telemac 4 years 2 months ago #36702

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You can have a look here:
wiki.opentelemac.org/doku.php?id=install..._windows_with_cygwin

It is a work in progress on a windows installation using only cygwin and pip to install all the prerequisites.

But anyhow cygwin is what we use to install gfortran on Windows (That is what the automatic installer use).
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: kareemjo94
Moderators: borisb

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