If the directory you are importing already has a lib folder you’ll get this error. Rename the lib folder to say “lib-old” and see if it will import.
Also, make sure you are logged into your particle account.
I was experiencing this when I was setting up my Github repositories.
Might be something different though…