Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error registering components in IRIS #21

Open
AuganMadet34 opened this issue Jul 10, 2024 · 2 comments
Open

Error registering components in IRIS #21

AuganMadet34 opened this issue Jul 10, 2024 · 2 comments

Comments

@AuganMadet34
Copy link

My DockerFile shows the following IRIS version:
ARG IMAGE=intersystemsdc/iris-community:2023.3-zpm

When I execute the instruction to register components in the IRIS Production below, I get the following error:

irisowner@fd8dbc67a646:/external/src/_Package$ /usr/irissys/bin/irispython
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from grongier.pex import Utils
Utils.migrate("/external/src/CoreModel/Python/settings.py")

Traceback (most recent call last):
File "", line 1, in
File "/usr/irissys/mgr/python/iop/_utils.py", line 202, in migrate
_Utils.set_classes_settings(settings.CLASSES,path)
File "/usr/irissys/mgr/python/iop/_utils.py", line 228, in set_classes_settings
_Utils.register_component(value.module,value.name,path,1,key)
File "/usr/irissys/mgr/python/iop/_utils.py", line 53, in register_component
return iris.cls('Grongier.PEX.Utils').dispatchRegisterComponent(module,classname,path,overwrite,iris_classname)
RuntimeError: iris.cls: error finding class

Thank you for your help.

@grongierisc
Copy link
Owner

how did you install Iop ?if you installed it from pip :

pip install iris-pex-embedded-python

you must init it to iris (install the associated classes to iris), for that you must do :

iop --init

or

from iop import Utils
Utils.setup()

please refer to the documentation :

https://github.com/grongierisc/interoperability-embedded-python?tab=readme-ov-file#32-with-pypi

For the more, make sure you are on the right namespace by specifying the var env : $IRISNAMESPACE

@AuganMadet34
Copy link
Author

AuganMadet34 commented Jul 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants