OpenACI icon indicating copy to clipboard operation
OpenACI copied to clipboard

Local Imports

Open Elements- opened this issue 1 year ago • 0 comments

Noticed an issue with some imports in OpenACI but I was able to fix them by switching the internal package imports to be relative

python3.9 >>> from openaci.ubuntu import Grounding
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/Desktop/OpenACI/openaci/ubuntu/Grounding.py", line 21, in <module>
    from ubuntu.UIElement import UIElement
ModuleNotFoundError: No module named 'ubuntu'

fixed with from ubuntu.UIElement import UIElement to from .UIElement import UIElement

Elements- avatar Oct 24 '24 00:10 Elements-