pySDC icon indicating copy to clipboard operation
pySDC copied to clipboard

Make plot helper compatible with Python 3.13

Open brownbaerchen opened this issue 7 months ago • 6 comments

Python distutils has been deprecated since version 3.10 and removed in version 3.12. In 3.12 I could still use it but after switching to 3.13, the plot helper was broken for me. Apparently,distutil has been replaced by shutil. shutil.which returns what you get when you use which in the shell you run Python in, or None if there is no executable of the name you are looking for. Therefore, this should give the same functionality as distutil.spawn.find_executable as it is used in the plot helper.

brownbaerchen avatar Apr 28 '25 14:04 brownbaerchen

Any updates here?

pancetta avatar May 04 '25 06:05 pancetta

This action also fails on the master branch of my fork. Not sure why it doesn't here. I am pretty sure that it is unrelated to the changes in this PR, but I'll try and change the way the test is launched later and see if it helps.

brownbaerchen avatar May 05 '25 09:05 brownbaerchen

Is the firedrake test the problematic one, of the Allen_Cahn ones ?

tlunet avatar May 05 '25 15:05 tlunet

Is the firedrake test the problematic one, of the Allen_Cahn ones ?

The Allen_Cahn ones are just a one time whatever problem, I suppose. This one Firedrake test keeps failing.

brownbaerchen avatar May 05 '25 15:05 brownbaerchen

Does firedrake imports mpi4py or some MPI binding already on his side ? Got some problem with fenix once, where importing mpi4py before dolfin was producing an error in tests ...

tlunet avatar May 05 '25 15:05 tlunet

Does firedrake imports mpi4py or some MPI binding already on his side ? Got some problem with fenix once, where importing mpi4py before dolfin was producing an error in tests ...

There are other tests using firedrake and mpi that run just fine. The failing one uses Firedrake ensemble communicators for space-time parallelism.

brownbaerchen avatar May 05 '25 15:05 brownbaerchen

Updates here?

pancetta avatar May 12 '25 15:05 pancetta

Updates here?

I have not managed to fix the firedrake tests yet. This plotting stuff is not related, but I will try to fix the firedrake stuff, maybe this week, hopefully by the end of next week. No need to merge this before.

brownbaerchen avatar May 13 '25 14:05 brownbaerchen