python on x86

OpenVMS x86 Field Test questions, reports, and feedback.
Post Reply
User avatar

Topic author
imiller
Master
Posts: 151
Joined: Fri Jun 28, 2019 8:45 am
Reputation: 0
Location: South Tyneside, UK
Status: Offline
Contact:

python on x86

Post by imiller » Thu Apr 11, 2024 6:40 am

I have the field test python installed on VSI OpenVMS V9.2-2 with update 1
VSI X86VMS PYTHON A3.10-0RELEASE008 Full LP Installed
VSI X86VMS PYTHWHLS A1.1-6FIX07 Full LP Installed

If I try to install a module

Code: Select all

$ python -m pip install julian
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /python$root/include/python3.10/UNKNOWN
sysconfig: /python$root/include/UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /python$root/bin
sysconfig: /python$root/scripts
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Looking in links: /python_wheels$root
ERROR: Could not find a version that satisfies the requirement julian (from versions: none)
ERROR: No matching distribution found for julian
I've tried other modules with the same result. I have successfully installed this module with python on VMS V8.4
Ian Miller
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].


jonesd
Valued Contributor
Posts: 78
Joined: Mon Aug 09, 2021 7:59 pm
Reputation: 0
Status: Offline

Re: python on x86

Post by jonesd » Thu Apr 11, 2024 8:39 am

The sqlite3 library used to build the FT kit's sqlite3 module is 3.9.2, over 8 years old (3.45.2 is current). I downloaded the pysqlite kit from github to try to make a more up to date module. To make it build against my version, I had to modify pysqlite's setup.cfg to:

Code: Select all

[build_ext]
include_dirs=/sqlite3_include
library_dirs=/sys$login/test
And make a sqlite3.olb shareable image library containing sqlite3shr.exe in my [.test] subdirectory.

I should note that the 3.9.2 port won't have proper locking for concurrent access with applications using sqlite3shr library.
Last edited by jonesd on Thu Apr 11, 2024 10:33 am, edited 1 time in total.


sergey_vorfolomeev
VSI Expert
Master
Posts: 102
Joined: Thu Aug 22, 2019 12:17 am
Reputation: 0
Status: Offline

Re: python on x86

Post by sergey_vorfolomeev » Thu Apr 11, 2024 10:37 am

julian is not in the our preloaded wheels list.
If you want to install it from the Internet, do:

Code: Select all

$ define PIP_NO_INDEX 0


craigberry
Contributor
Posts: 23
Joined: Fri Nov 17, 2023 11:27 am
Reputation: 1
Status: Offline

Re: python on x86

Post by craigberry » Thu Apr 11, 2024 10:44 am

Code: Select all

$ python -m pip install julian
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /python$root/include/python3.10/UNKNOWN
sysconfig: /python$root/include/UNKNOWN
Does anything that looks viable actually exist at python$root:[include] ?


sergey_vorfolomeev
VSI Expert
Master
Posts: 102
Joined: Thu Aug 22, 2019 12:17 am
Reputation: 0
Status: Offline

Re: python on x86

Post by sergey_vorfolomeev » Thu Apr 11, 2024 11:46 am

python$root:[include] is just a set of header files to create own Python extensions.

Added in 19 minutes 5 seconds:

Code: Select all

VMSLOC> sh sys /noproc
OpenVMS V9.2-2  on node VMSLOC   11-APR-2024 18:04:54.68   Uptime  0 00:14:16
VMSLOC> python -m pip install --user julian
Looking in links: /python_wheels$root
Collecting julian
  Using cached julian-0.14.zip (2.8 kB)
Using legacy 'setup.py install' for julian, since package 'wheel' is not installed.
Installing collected packages: julian
  WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /WORK/VORFOLOMEEV/.local/lib/python3.10/site-packages
  sysconfig: /python$root/lib/python3.10/site-packages
  WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /WORK/VORFOLOMEEV/.local/lib/python3.10/site-packages
  sysconfig: /python$root/lib/python3.10/site-packages
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /WORK/VORFOLOMEEV/.local/include/python3.10/julian
  sysconfig: /python$root/include/julian
  WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /WORK/VORFOLOMEEV/.local/bin
  sysconfig: /python$root/scripts
  WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /WORK/VORFOLOMEEV/.local
  sysconfig: /python$root
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None
    Running setup.py install for julian ... done
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /WORK/VORFOLOMEEV/.local/include/python3.10/UNKNOWN
sysconfig: /python$root/include/UNKNOWN
Successfully installed julian-0.14
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.3; however, version 24.0 is available.
You should consider upgrading via the '/VMSLOC$DKA100/python/python/bin/python.exe -m pip install --upgrade pip' command.
VMSLOC> python
Python 3.10.0 (default, Feb 21 2024, 05:22:10) [C] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> import julian
>>> import datetime
>>> mjd = 54372.78
>>> dt = julian.from_jd(mjd, fmt='mjd')
>>> print(dt)
2007-09-29 18:43:11.999982
>>> jd = julian.to_jd(dt + datetime.timedelta(hours=12), fmt='jd')
>>> print(jd)
2454373.78
>>> exit()
VMSLOC>

Post Reply