Skip to content

3.1.2 Opensuse Leap 15.5 and Python 3.6  #8974

Closed
@YoGitpp

Description

@YoGitpp

Hello,

My configuration

My distribution uses Python 3.6 and your script is compatible with Python >= 3.7

I can install other versions 3.9, 3.10, 3.11
e.g. sudo zypper install python39
or python310 or python311
But my shortcut python3 is still on Python 3.6.
For system dependency reasons, it is not recommended to change this.

For Python 3.9, I need to run the python3.9 command.

I modified the file :
/home/xxx/.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3

#!/usr/bin/env python3
import os
import sys

--args = ["env", "python3"] + sys.argv[1:];
++args = ["env", "python3.11"] + sys.argv[1:];
os.execv("/usr/bin/env", args)

And now it work !

Sincerely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions