Python 3.10.0 (default, Oct 17 2022, 09:12:23) [C] on OpenVMS HP Integrity BL890c
Code: Select all
DEV22>python -m venv t1
Error: [Errno 65535] bad file version number: '/USERDISK67/madx86/py/venv/t1/lib/python3.10'
DEV22>
Code: Select all
DEV22>python -m venv t1
Error: [Errno 65535] bad file version number: '/USERDISK67/madx86/py/venv/t1/lib/python3.10'
DEV22>
Code: Select all
> I am getting the below error when creating a virtual environment [...]
That tells me very little about what you're doing.
> [...] if anyone has seen this before [...]
Not I, but ...
> Python 3.10.0 (default, Oct 17 2022, 09:12:23) [C] on OpenVMS HP
> Integrity BL890c
VMS version? show system /noproc
> Error: [Errno 65535] bad file version number:
> '/USERDISK67/madx86/py/venv/t1/lib/python3.10'
What's the actual name of that file? If it's anything involving
"3.10.0", then it might have too many dots in it.
First guess:
show process /parse_style
set process /parse_style = extended
In the modern world, I'd suggest adding that setting to a LOGIN.COM
(or SYLOGIN.COM).
Code: Select all
> Check the setting of DECC$EFS_CHARSET. [...]
Ideally, the program itself would be setting such things on its own,
rather than expecting the user to clutter/corrupt his own environment
with a bunch of DECC$whatever definitions.
However, I haven't looked at Python on VMS for years (and hardly
then), so I have no actual knowledge of what it might do about those
things.
Question for someone who knows more than nothing:
Shouldn't there be something which could be done in Python to reveal
any/all active DECC$whatever definitions?
Code: Select all
SHOW DEVICE/FULL USERDISK67
Volume Status: ODS-2, subject to mount verification, write-through XFC
caching enabled, write-back XQP caching enabled.
Code: Select all
set ("DECC$UNIX_LEVEL", 100);
const char *disable_feature[] = {
"DECC$EFS_CASE_SPECIAL",
"DECC$DETACHED_CHILD_PROCESS",
"DECC$POSIX_STYLE_UID", // else getpwuid() doesn't work
};
const char *enable_feature[] = {
"DECC$EFS_FILE_TIMESTAMPS",
"DECC$ENABLE_GETENV_CACHE",
"DECC$EXIT_AFTER_FAILED_EXEC",
"DECC$FILE_SHARING",
"DECC$MAILBOX_CTX_STM",
"DECC$POPEN_NO_CRLF_REC_ATTR",
"DECC$POSIX_SEEK_STREAM_FILE",
"DECC$ARGV_PARSE_STYLE",
"DECC$DISABLE_TO_VMS_LOGNAME_TRANSLATION",
"DECC$EFS_CASE_PRESERVE",
"DECC$EFS_CHARSET",
"DECC$FILENAME_UNIX_NO_VERSION",
"DECC$FILENAME_UNIX_REPORT",
"DECC$READDIR_DROPDOTNOTYPE",
"DECC$RENAME_NO_INHERIT",
};
Code: Select all
node1>python -m venv t3
Error: Command '['/PYTHON/USER1/PY/t3/bin/python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
node1>show dev python /full
*
*
Volume Status: ODS-5, subject to mount verification, write-through XFC
caching enabled, write-back XQP caching enabled, special files enabled.
*
*
node1>sh sys/noproc/full
OpenVMS V8.4-2L1 on node node1 25-MAR-2024 18:48:59.97 Uptime 10 04:41:26
HP BL890c i4 (2.53GHz/32.0MB)
node1>python
Python 3.10.0 (default, Oct 17 2022, 09:12:23) [C] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>>