I have installed the Roboflow Python package, and typed “roboflow login” in the terminal. The link for my authentication token pops up, but for some reason the terminal simply doesn’t let me write anything. I can’t type manually or paste it.
Anyway, I then just wrote “roboflow.login()” in my Python code, and this time I could paste the authentication token, only to find
Update: I have resolved the “nothing I type appears” issue. It turned out my Mac was just hiding what I was typing, but I was still typing stuff.
So now, both ways, “roboflow login” in the Terminal or “roboflow.login()” in my code both lead to the same permission error.
From Stack Overflow, I have read that the permission error usually means that Python is trying to open a folder as a file, and I think it applies here.
After providing the authentication token, the credentials are saved in the disk at ~/.config/roboflow/config.json. From the error message, I see that Python is trying to open ~/.config/roboflow (without the “config.json”).
Does anyone know how I can manipulate Python to open “config.json” rather than the “Roboflow” folder?
Alternatively, am I doing something wrong? I didn’t think the software would be so complicated!
When you issue roboflow login you are asked to visit https://app.roboflow.com/auth-cli, please copy the token and paste it in the terminal and hit <enter>
If this works please type exit to exit the container and then please confirm the ownership of ~/.config on your host system (i.e. whoami; ls -lah ~/.config)?