Skip to content

Local Imports #28

@Elements-

Description

@Elements-

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

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