Skip to content

Get an unhandled exception message if I use pynapl to call Dyalog from python in cmd.exe #26

@dyavc

Description

@dyavc

using python 3.13 with Dyalog 19.0.52087 64-bit Unicode on Windows 10

in cmd.exe
set PYTHONPATH=d:\git\pynapl

python try1.py
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
[100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
Exception ignored in: <function Connection.APL.del at 0x000001C93EC9CA40>
Traceback (most recent call last):
File "d:\git\pynapl\pynapl\APLPyConnect.py", line 247, in del
File "d:\git\pynapl\pynapl\APLPyConnect.py", line 234, in stop
OSError: [WinError 6] The handle is invalid

try1.py text:
from pynapl import APL

apl = APL.APL(dyalog=r"C:\Program Files\Dyalog\Dyalog APL-64 19.0 Unicode\dyalog.exe")

apl.eval("a ← ⍳3 3")
print(apl.eval("a ← ⍳16"))
apl.eval("b←100,a")
print(apl.eval("b"))

Please note that I do not see this exception message if I run the python code in Idle or in cygwin with python 3.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions