BTW: latest PyCharm plugin with 2022 support was just released:
https://github.com/allegroai/clearml-pycharm-plugin/releases/tag/1.1.0
In your code, can you print the following:import os print(os.environ.keys())
There should be a few keys the Pycharm plugin is sending from the local machine, pointing to the git repo
Yes this is with the latest plugin, and I can confirm that I have not checked that.
Can you also make sure you did not check "Disable local nachine git detection" in the clearml PyCharm plugin?
AgitatedDove14 Hi, yeah for some reason it isnt working. I should have specified that I am running a remote interpreter in docker on my machine. For now I fixed it by manually adding the code repository as a env variable in the Dockerfile.
AgitatedDove14 Hi, sorry for the late reply, this is the output:
And this is with the latest pycharm plugin 1.1.0 ?
AgitatedDove14 , I am using Ubuntu 20.04. git is recognized in shell and also I use pycharm git UI sometimes and it works there.
Hmm, could it be that the working dir is outside of the git repo?
AgitatedDove14 Hi, thanks for the update, I switched to the new version, because I am using PyCharm 2022, but still it isnt working. In the UI I found that the plugin is using the keys, but the repository is not found. The repo is in GitLab. The base docker image is http://nvcr.io/nvidia/pytorch:22.09-py3 . What could be wrong?
hmm DeliciousKoala34
what are you getting if you put this at the top of your code (the one you are running in the remote docker)import os print([(k, os.environ[k]) for k in os.environ if k.startswith("CLEARML_")])
Hi DeliciousKoala34
I am using Pycharm and i have set up the clear-ml plugin, but it still doesnt work.
Did you provide the key/secret to the plugin? I think this is a must for it to actually work
Hi DeliciousKoala34
This means the pycharm plugin was not able to run git on your local machine.
Whats your OS ?
could it be that if you open cmd / shell "git" is not in the path ?
[('CLEARML_API_SECRET_KEY', 'my_secret_key'), ('CLEARML_FILES_HOST', '
'), ('CLEARML_WEB_HOST', '
'), ('CLEARML_API_ACCESS_KEY', 'VOQ1JYD64MYMH1O76A0L'), ('CLEARML_API_HOST', '
')]
DeliciousKoala34 any chance you are using PyCharm 2022 ?