intersystems-community / embedded-python-bugreports

Please submit bugs you found in Embedded Python here
0 stars 1 forks source link

%SYSTEM.OBJ.Load fails when called from embedded python #3

Open daimor opened 1 year ago

daimor commented 1 year ago

The code, fails immediately, crashing python with exit code 3 even for a very simple file iris.cls('%SYSTEM.OBJ').Load('/home/irisowner/app/src/dc/demo.cls','ck')

image

With IPM, it manages to show the place where it fails but still crashes with no way to catch it staying on Python level


>>> import iris
>>> iris.cls('%ZPM.PackageManager').Shell('install webterminal')

[USER|webterminal]      Reload START (/usr/irissys/mgr/.modules/USER/webterminal/4.9.6/)
[webterminal]   Reload FAILURE
ERROR! ObjectScript error: <FUNCTION>LoadUDL+47^%apiOBJ```
grongierisc commented 1 year ago

I confirm the bug.

Label : Bug

Workaround :

import iris
iris.cls('%SYSTEM.OBJ').LoadDir('/irisdev/app/test/','ck')