• Python

    From Stuart@21:1/5 to All on Mon Oct 21 12:30:02 2024
    I've been trying to run Python.

    I have !Python3, 30th April 2024, but when I attempt to run it, I get the following:

    ----------------------------------------------------------------------

    got PYTHONHOME
    Python path configuration:
    PYTHONHOME = 'SDFS::PiSD.$.Programming.Python.!Python27'
    PYTHONPATH = (not set)
    program name = 'SDFS::PiSD.$.Programming.Python.!Python3.Bin.python38'
    isolated = 0
    environment = 1
    user site = 1
    import site = 1
    sys._base_executable = 'SDFS::PiSD.$.Programming.Python.!Python3.Bin.python38'
    sys.base_prefix = 'SDFS::PiSD.$.Programming.Python.!Python27'
    sys.base_exec_prefix = 'SDFS::PiSD.$.Programming.Python.!Python27'
    sys.executable = 'SDFS::PiSD.$.Programming.Python.!Python3.Bin.python38'
    sys.prefix = 'SDFS::PiSD.$.Programming.Python.!Python27'
    sys.exec_prefix = 'SDFS::PiSD.$.Programming.Python.!Python27'
    sys.path = [
    'SDFS::PiSD.$.Programming.Python.!Python27.python38.lib',
    'SDFS::PiSD.$.Programming.Python.!Python27.python38.lib.lib-dynload',
    ]
    Fatal Python error: init_fs_encoding: failed to get the Python codec of
    the filesystem encoding
    Python runtime state: core initialized
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x00299d08 (most recent call first):

    <no Python frame>

    -----------------------------------------------------------------------

    It would appear I am missing a module called encoding, where can this be
    found?

    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From druck@21:1/5 to Stuart on Tue Oct 22 21:00:42 2024
    On 21/10/2024 13:30, Stuart wrote:
    I've been trying to run Python.

    I have !Python3, 30th April 2024, but when I attempt to run it, I get the following:

    ----------------------------------------------------------------------

    got PYTHONHOME
    Python path configuration:
    PYTHONHOME = 'SDFS::PiSD.$.Programming.Python.!Python27'

    Delete (or hide) the obsolete !Python27, it is interfering with Python3

    [Snip]

    It would appear I am missing a module called encoding, where can this be found?

    In Python3, but Python27 has grabbed the Python paths so it can't be found.

    ---druck

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stuart@21:1/5 to druck on Thu Oct 24 20:08:02 2024
    In article <vf909a$1kg3b$[email protected]>,
    druck <[email protected]> wrote:
    On 21/10/2024 13:30, Stuart wrote:
    I've been trying to run Python.

    I have !Python3, 30th April 2024, but when I attempt to run it, I get
    the following:

    ----------------------------------------------------------------------

    got PYTHONHOME
    Python path configuration:
    PYTHONHOME = 'SDFS::PiSD.$.Programming.Python.!Python27'

    Delete (or hide) the obsolete !Python27, it is interfering with Python3

    [Snip]

    It would appear I am missing a module called encoding, where can this
    be found?

    In Python3, but Python27 has grabbed the Python paths so it can't be
    found.

    To avoid any possible conflicts I did a fresh download of:

    Python-38-pip_20/0/2-4_any/zip

    Into a temporary folder on my PI, using !NetSurf

    I then did a shut-down and restart.

    I then opened the zip into that same temporary directory and found two
    folders, Resources, and RiscPkg.

    Resurces contained an application !PythonSite which when clicked on
    produced the error message:

    Temp.resources.!PythonSite.!Run not found

    PIp is supposed to have no dependencies!

    Any other suggestions, anybody?

    --
    Stuart Winsor

    Tools With A Mission
    sending tools across the world
    http://www.twam.co.uk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)