Skip to content

Question about relative imports #12

@dzid26

Description

@dzid26

I was trying to debug following plugin.
It works when simply imported inside Fusion360. But when running from PyCharm, it errors out with

attempted relative import without known parent.

On lines in octoFusionCommand.py or OctoFusion_Old.py containing the following imports:
from .packages import requests,
from ....packages import requests,
from .Fusion360CommandBase import Fusion360CommandBase etc
In the end, I was able to import those modules by removing dots in front of the modules names.

Do you think the issue is related to Python version or FusionIdea plugin? I am trying to figure out how all of this works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions