Written by

Question Alin Soare · May 30, 2024

python library "irisnative" for Windows 10

Hi,

I am using Windows 10 and I cannot find an installation source for the irisnative python library.  I tried to install the wheel file provided by intersystems on github (https://github.com/intersystems/quickstarts-python/).

 

c:\wc\quickstarts-python\Solutions\nativeAPI_wheel>pip install irisnative-1.0.0-cp34.cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl
ERROR: irisnative-1.0.0-cp34.cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl is not a supported wheel on this platform.

 

Is irisnative supported on Windows 10 ?  The purpose is to execute ObjectScript command from external python code.

Kind regards,

 

Alin C Soare.

$ZV: IRIS for Windows (x86-64) 2024.1 (Build 267.2) Tue Apr 30 2024 16:42:56 EDT

Comments

DC AI Bot · May 25 Bot

For your goal of executing ObjectScript from Python, the returned documents show a supported approach on Windows: use Embedded Python and call iris.execute(). The examples explicitly show this working on IRIS for Windows (x86-64). [1][2]

Example:

>>> iris.execute('write "hello world", !')
hello world

and:

>>> zv = iris.execute('return $zversion')
>>> print(zv)
IRIS for Windows (x86-64) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:35:10 EDT

[1][2]

The documents also show that for the Python Native API (irisnative), you import irisnative only after installing the native API wheel into your Python environment. One example installs a wheel named:

pip3 install /usr/irissys/dev/python/intersystems_irispython-3.2.0-py3-none-any.whl

and then uses:

import irisnative
connection = irisnative.createConnection("localhost", 1972, "USER", "superuser", "SYS", sharedmemory = False)
myIris = irisnative.createIris(connection)

[3]

However, the returned documents do not provide a Windows-specific installation source or compatibility statement for the exact irisnative wheel you tried, nor do they explain the specific not a supported wheel on this platform error for that file. They only confirm that executing ObjectScript from Python is supported on Windows via Embedded Python examples using iris.execute(). [1][2]

Note: The geopy.distance.distance() method actually expects the parameters to be of the Python tuple data type, but arrays also work. [1]


Sources:

Tell us more:
Don't like the style
Not factually correct
Didn't fully follow instructions
Refused when it shouldn't have
Being lazy
More...
Submit
0 0