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

TOPIC: Error compiling trunk with python3

Error compiling trunk with python3 5 years 8 months ago #33205

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
I should get a windows version of the python3 telemac around the end of the month.
I'll try to have a look then.
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: cyamin

Error compiling trunk with python3 5 years 8 months ago #33210

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
In the meantime, changing line 456 in 'compil_tools.py' to:
tail, code = mes.run_cmd(cmd.encode('utf-8'), bypass)
solved the error in my previous post.
Now it looks like compilation completes successfully.
So I guess it could be an encoding issue with python 3.7 (that may not arise in python 3.5) and not related to Windows.
I will monitor trunk developments for your findings when you will be able to look into it.
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: dkush

Error compiling trunk with python3 5 years 7 months ago #33324

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Yugi,
Commit 12965 appears to solve the issue on my side as well.
Costas
The administrator has disabled public write access.

Error compiling trunk with python3 5 years 7 months ago #33325

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Great news.
The error was that in the latest version of subprocess (after python 3.5) the function subprocess.call does not handle byteString as arguments anymore.
This function is also deprecated so I'll have to change that at some point as well.
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.
  • Page:
  • 1
  • 2
Moderators: borisb

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