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

TOPIC: Problem Running Telemac on Ubuntu 18.04

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36805

  • TomS
  • TomS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
  • Thank you received: 8
Hi,

I have Telemac v8p1r1 installed and working in serial/parallel on Ubuntu 18.04. Using the same OS on another computer I have given a colleague my systel.cfg and pysource.sh but he is having difficulty running Telemac in parallel (serial works ok). The error message is below and the systel.cfg and pysource.sh are attached. Any advice would be greatly appreciated.

Thanks,

Tom

/bin/sh: 1: cannot open PARTEL.PAR: No such file
Traceback (most recent call last):
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/telemac2d.py", line 7, in <module>
main('telemac2d')
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/runcode.py", line 272, in main
run_study(cas_file, code_name, options)
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/execution/run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/execution/run_cas.py", line 31, in run_local_cas
my_study.partionning(options.use_link)
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/execution/study.py", line 411, in partionning
use_link, i_part, s_concat)
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/execution/run.py", line 55, in run_partition
concat)
File "/home/matt/telemac-mascaret-v8p1/scripts/python3/execution/run.py", line 133, in run_partel
log = "No log available check command:\n"+par_cmd
TypeError: must be str, not list
Attachments:
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36806

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
The problem is in python version used on both computer...
Christophe
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36807

  • TomS
  • TomS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
  • Thank you received: 8
Hi,

Thanks for the reply.

Typing "python --version" it said that python was not recognized so we installed python and now get Python 2.7.17

We recompiled using telemac --clean but still get the same error.

Is there anything we are missing?

Thanks.
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36808

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

What you've done sounds illogical.
You run telemac on both computer and the scripts ran so python was installed!

Installing python 2.7.17 doesn't change anything as we now use python3...

Regards
Christophe
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36820

Hi, I got the same problem when running Telemac examples on CentOS7. Two versions of python are installed on the system. One is python2 (version of 2.7) while another is python3 (version of 3.6).
I configured and compiled the code using python3 and run the example of telemace2d (gouttedo).
The example can be work well when --ncsize=1. However, when the --ncsize >=2, I got the error message:
Traceback (most recent call last):
File "../../../scripts/python3/telemac3d.py", line 7, in <module>
main('telemac3d')
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/runcode.py", line 272, in main
run_study(cas_file, code_name, options)
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/execution/run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/execution/run_cas.py", line 31, in run_local_cas
my_study.partionning(options.use_link)
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/execution/study.py", line 411, in partionning
use_link, i_part, s_concat)
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/execution/run.py", line 55, in run_partition
concat)
File "/home/lxx/opentelemac/v8p1r1/scripts/python3/execution/run.py", line 133, in run_partel
log = "No log available check command:\n"+par_cmd
TypeError: must be str, not list
Attachments:
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36871

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Hello,

Has been a really long time since I've messed with the CFG file but the only sensible difference from your cfg file and my own that uses openmpi (made for ubuntu too) is the incs_all line:
incs_all: I /usr/lib/x86_64-linux-gnu/openmpi/include

which is missing from your attached cfg.

Not sure if that line is necessary when you have "mpixx" aliasing gcc/gfortran.

Regards,

José Díaz.
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36874

  • TomS
  • TomS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
  • Thank you received: 8
Many thanks for your reply, José. We'll certainly give this a try.
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36880

Hi,

On Debian 10.5-amd64 (Python 3.7) I am running into the same problem (exact the same message as @TomS got). I tried José's solution and added `incs_all` in the systel file, but it did not work neither.

Does anyone have an idea for troubleshooting?

Thanks,
-Sebastian
Attachments:
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36885

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Hello,

There is something I've been missing here. Instinctively in any debian based distro I've tried lately there are a couple of QoL packages that I've installed, asuming you are using Python3 as your driver and openmpi as your mpi solution:
sudo apt install python-is-python3 python3-dev python3-pip libopenmpi-dev


Which you should double check that
/usr/bin/env python
points to python3 and not python2.

Otherwise you could always rely on a update-alternatives (--list, install, config...) to check that your system goes with the python that you expect.

Regards,

José D.
The administrator has disabled public write access.

Problem Running Telemac on Ubuntu 18.04 4 years 1 month ago #36887

Thanks, I already had made the Python pointer adaptations and those were not the issue, but I found a solution now:

I was somehow confused because when running with the --ncsize flag, telemac2d.py was looking for `par_cmd`, while only `par_cmdexec` is defined in the config file. I was wondering if the definition of `par_cmdexec` could be the origin of the error and found that *yes* it is.

So the solution that worked for me is: Remove `par_cmdexec` from the config file and re-compile telemac. In addition, make sure that all Python libs are installed as indicated by José.

Hope that helps also others.

Best,
-Sebastian
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.