-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python and Cloud volume Access to FlyWire Failing #534
Comments
Just some additional info here @william-silversmith. This is being used via the fafbseg R package via its reticulate python interface. The observed behaviour is that when accessing flywire resources directly from R, the token is successfully read from that location on disk and can be used to access private data. However from cloudvolume the token is not found. I am fairly sure this is a Windows specific issue and suspect some disagreement about how to expand the path |
Also @markl02 can you check the path? I think your error report on slack said
|
You can view CloudVolume's secret path as follows:
That might reveal the problem already... I should be using |
Yes, in my windows 10 emulator, I get: |
Thanks, Will! That mixed path does look unhappy. @markl02 can you check this on your machine what the R+python combo reports by doing this?
|
That outputs:
|
I have a fix for this issue pushed to master. I'm waiting for some automated tests to run, but then I'll try pushing out a bugfix release. |
Ah, thanks a lot, Will. But there may be an additional problem here besides that forward/reverse slash. If we ask R and python/cloudvolume to expand
Any suggestions re the difference? |
@markl02 can you report what happens if you do
|
It seems the windows equivalent of |
You can also explicitly set the environment variable |
Here's the output of that @jefferis :
|
Thanks. So Mark if you set
then maybe you could force them to agree? Will, when does cloudvolume check this environment variable. Once on initialisation? |
Yes that's right. The soon as |
OK @markl02 can you start a clean R session, do
and report back? |
After doing that I still get the same exact error message:
|
Mark, can you report
For reference this seems to be an unusual decision of R on Windows about how to define the home dir. Discussed in https://rdocumentation.org/packages/fs/versions/1.5.2/topics/path_expand. |
|
OK, so I don't understand why but it seemed that CloudVolume did not pick up the |
Thank you both so much for all your assistance! I'm wondering if any progress has been made in fixing this issue? |
Hi @markl02, as a rather crude workaround for now you can make a symbolic link or just copy your cave-secret.json file so that it is visible at both C:/Users/marks/Documents/.cloudvolume/secrets and C:/Users/marks/.cloudvolume/secrets A better fix will have to await my return from annual leave. |
Hello,
I have been trying to use the fafbseg package in R (Windows 10) in order to access and analyze Flywire data, however, when trying to run functions requiring access to the data this error consistently shows up:
Error in py_call_impl(callable, dots$args, dots$keywords) :
AuthenticationError: No Graphene authentication token was provided. Does ~/.cloudvolume/secrets/cave-secret.json exist?
You have a valid token but python+cloudvolume access to FlyWire API is still failing!
My Flywire token is stored in C:\Users\marks\Documents.cloudvolume\secrets and appears to be set correctly. Also, it appears to be related to the fact that I'm using Windows as an OS. Any help or guidance on how to resolve this would be greatly appreciated!
Thank you!
The text was updated successfully, but these errors were encountered: