Always good to see your script J-F. With the demise of the
https://www.vmspython.org I thought we may have seen the last of you as well. Amicalement.
One of the many of my own hits against a search term "
init_fs_encoding: failed to get the Python codec of the file
system encoding". Nothing along these lines seems to budge the issue.
Code: Select all
HAVEN$ mcr wasd_exe:pyrte3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '$10$dkd1:[wasd_root.][ia64]pyrte3.exe;67'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = ''
sys.base_prefix = '/usr/local'
sys.base_exec_prefix = '/usr/local'
sys.platlibdir = 'lib'
sys.executable = ''
sys.prefix = '/usr/local'
sys.exec_prefix = '/usr/local'
sys.path = [
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x7b6d0ec0 (most recent call first):
<no Python frame>
And even (getting ever more desperate) ...
Code: Select all
HAVEN$ mcr wasd_exe:pyrte3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/WASD_ROOT/ia64/pyrte3.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/wasd_root/ia64/pyrte3.exe'
sys.base_prefix = '/usr/local'
sys.base_exec_prefix = '/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/wasd_root/ia64/pyrte3.exe'
sys.prefix = '/usr/local'
sys.exec_prefix = '/usr/local'
sys.path = [
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x7b6d0ec0 (most recent call first):
<no Python frame>
... and ...
Code: Select all
HAVEN$ mcr wasd_exe:pyrte3
Python path configuration:
PYTHONHOME = '/python$root'
PYTHONPATH = (not set)
program name = '/wasd_root/ia64/pyrte3.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/wasd_root/ia64/pyrte3.exe'
sys.base_prefix = '/python$root'
sys.base_exec_prefix = '/python$root'
sys.platlibdir = 'lib'
sys.executable = '/wasd_root/ia64/pyrte3.exe'
sys.prefix = '/python$root'
sys.exec_prefix = '/python$root'
sys.path = [
'/python$root/lib/python310.zip',
'/python$root/lib/python3.10',
'/python$root/lib/python3.10/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x7b6d0ec0 (most recent call first):
<no Python frame>
etc., etc., etc.
Extensive accomodations of the original program along the lines of
Code: Select all
#if PY_MAJOR_VERSION >= 3
pInterpState = PyInterpreterState_Main ();
#else
pInterpState = PyInterpreterState_Head ();
#endif
were and are working with your original
Code: Select all
HAVEN$ dir disk$jfppy3100i:[000000]
Directory DISK$JFPPY3100I:[000000]
000000.DIR;1 1 24-JUN-2020 22:13
BACKUP.SYS;1 0 24-JUN-2020 22:13
BADBLK.SYS;1 0 24-JUN-2020 22:13
BADLOG.SYS;1 0 24-JUN-2020 22:13
BITMAP.SYS;1 21 24-JUN-2020 22:13
compile_all.com;58 2 30-JUL-2020 00:43
CONTIN.SYS;1 0 24-JUN-2020 22:13
CORIMG.SYS;1 0 24-JUN-2020 22:13
GPT.SYS;1 96 24-JUN-2020 22:13
INDEXF.SYS;1 10085 24-JUN-2020 22:13
mercurial.DIR;1 1 14-AUG-2020 22:23
python3100.DIR;1 1 24-JUN-2020 22:14
SECURITY.SYS;1 1 24-JUN-2020 22:13
VOLSET.SYS;1 0 24-JUN-2020 22:13
Total of 14 files, 10208 blocks.
But not with the VSI (sorta) equivalent release.