I’m trying to get PyCharm with a remote python interpreter to work with all the features I love to use, like syntax highlighting, code completion, debugging, etc.
My problem is now, that this line of code doesn’t work:
from .agent_based_api.v1 import *
To get around that I tried to use a custom bash script as python interpreter:
This improved the situation somehow.
Now this works:
from agent_based_api.v1 import *
(without the dot)
However, it’s very annoying to add and to remove this dot all the time, when I want to have the features available and when I want to commit the code.
So how can I setup a PyCharm environment correctly?
Thanks. Yes, it works with the absolute import on the remote interpreter as well.
Now, let’s see if we can take this one step further:
Is it possible to run the check in the CMK-Context directly inside PyCharm? If yes, how do I specify which host I’d like to check?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.