Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling on Ubuntu 18.10

Compiling on Ubuntu 18.10 5 years 8 months ago #33018

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Hello,

I am trying to install Telemac v8p0 on my Ubuntu 18.10 system using the intel compilers and the guide given in post #25394and wonder how the new version is using python3.

Could I just change
export PATH=~/telemac/v8p0/scripts/python27/:$PATH
to
export PATH=~/telemac/v8p0/scripts/python3/:$PATH
?

I can see that python27 has much more scripts than python3, what would be the best option to get a running version?

Thanks in advance
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33020

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

You need two things to switch to Python3:
export PYTHONPATH=~/telemac/v8p0/scripts/python3/:$PYTHONPATH
export PATH=~/telemac/v8p0/scripts/python3/:$PATH

As for the number of scripts this is mainly because of the reorganisation but you have the same functionalities.
However Python3 is still under construction so some bugs might be there. Compilation/Execution/Validation should work.
You can have a look at version v8p0r1 that contains a few bug fixes.
You can also find examples of some scripts in examples/python3
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33021

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Hi,

thanks for the fast respond.
So it would also work to stick to python2 and use the first command, am I right?
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33022

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Yep
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33024

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
I tried it but somehow I can not even call
compileTELEMAC.py
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33031

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Thats because in Python3 it is compile_telemac.py
All the script names have been changed to follow PEP8 convention.
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.

Compiling on Ubuntu 18.10 5 years 8 months ago #33032

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Yes but I use python2 as written.
So I followed #25394 using python2, but I am not able to compile Telemac since I can not call it.
Also inside scripts I am not able to call it.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33033

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
and what is the error message?
Christophe
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33040

  • Mustermann
  • Mustermann's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 268
  • Thank you received: 4
Would be happy if there would be one. It just says not just file.
The administrator has disabled public write access.

Compiling on Ubuntu 18.10 5 years 8 months ago #33044

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Are you able to run python 2.7?
Try python -V for example.
As there is no error message, add a screen copy

regards
Christophe
The administrator has disabled public write access.
Moderators: borisb

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