Forum

Author Topic: Bump bundled with GUI python version to 3.11  (Read 1690 times)

ilia

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Bump bundled with GUI python version to 3.11
« on: May 02, 2024, 02:59:32 PM »
Dear Metashape authors,

Is it possible on my own bump python version used in Metashape to 3.11? If not are there any plans to support Python 3.11?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Bump bundled with GUI python version to 3.11
« Reply #1 on: May 08, 2024, 12:25:40 PM »
Hello ilia,

You can install stand-alone Metashape Python module to your system Python, it should already support Python 3.11.
Best regards,
Alexey Pasumansky,
Agisoft LLC

ilia

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Bump bundled with GUI python version to 3.11
« Reply #2 on: May 17, 2024, 09:34:37 PM »
Hi Alexey,

The problem is that some of scripts I wrote and I have integrated into Metashape's GUI rely on python bundled with Metashape and used by it inside GUI app. Do you think it is possible to bump python version there too?
I missed some features from 3.10 and 3.11 in python standart library and used by some of my custom scripts.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Bump bundled with GUI python version to 3.11
« Reply #3 on: May 30, 2024, 04:58:12 PM »
Hello ilia,

in the version 1.7.0 we have updated built-in Python version to 3.8, then in 2.0.0 we have updated Python to 3.9.

For now I cannot say for sure, if next update of built-in Python version in Metashape would happen in 2.2.0 version (next major update). On your side it would not be possible to update built-in Python version in Metashape package.

What 3.11, 3.10 Python features you are using that are not present in 3.9?
Best regards,
Alexey Pasumansky,
Agisoft LLC

ilia

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: Bump bundled with GUI python version to 3.11
« Reply #4 on: May 31, 2024, 12:58:42 PM »
For what I can remember and what I have encountered: union of types; native support of .toml; datetime -> proper fromisoformat.
But you are right, this is not that critical as bumping from lover versions to 3.9. Most of applications bumped their python support to 3.11, including open3D or pytorch, so in general it would be great to have Metashape following this too inside its GUI which is used sometimes to test scripts and methods which later can be used with Metashape as a python package where we have 3.11.