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
[Errno 13] Permission denied: â/Users/miketsoi/.config/roboflowâ
I think it is trying to save my credentials in that location, how do I give it permission?
Also, can someone confirm that I really need to complete this step (logging in) in order to use the Roboflow Python package?
Error with âroboflow.login()â:
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!
Hi @Mike_Tsoi ,
Thanks for reporting this issue!
Iâm on Mac myself and have no problems when running roboflow login.
For starters - can you run below code:
docker run -it --rm --entrypoint /bin/bash python:3.12-slim
pip install roboflow
roboflow login
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)?
Hope this helps,
Grzegorz
Hi @Grzegorz,
Thank you for your reply, I found a way to bypass the issue and now Iâm just rolling with that.
Interestingly, one day I decided to test whether I could just run Roboflow without a âsuccessfulâ login. The below worked:
rf = roboflow.Roboflow(âAPI KEYâ),
project = rf.workspace().project(âPROJECT_IDâ),
model = project.version(âPROJECT VERSION NUMBERâ).model.
To this day, I still donât know what happened and whether I needed to use âroboflow loginâ or not haha.
Hi @Mike_Tsoi ,
Thanks for sharing!
Iâd be very interested to learn what was the way to bypass the issue 
Thanks again,
Grzegorz