Access failing problem with fafbseg

82 views
Skip to first unread message

Geonil Kim

unread,
Aug 22, 2022, 9:53:15 PM8/22/22
to nat-user
Dear Dr. Jefferis,

Hello, I'm trying to use fafbseg functions but I keep receiving an error that I'm not authorized to access FlyWire API.
The dr_fafbseg() said like as below.

> dr_fafbseg()
FlyWire
----
Checking secrets folder for tokens from R: C:\Users\dell\.cloudvolume\secrets
Valid FlyWire ChunkedGraph token is set and found by R!
cloudvolume found a token at  C:\Users\dell\.cloudvolume\secrets/cave-secret.json
Error in py_call_impl(x, dots$args, dots$keywords) :
  requests.exceptions.HTTPError: 401 Client Error: UNAUTHORIZED for url: https://prodv1.flywire-daf.com/segmentation/api/v1/table/fly_v31/roots_binary

token found but python+cloudvolume access to FlyWire API is still failing!
Please ask for help at https://groups.google.com/g/nat-user using the full output of dr_fafbseg.

1 FlyWire/CloudVolume credential files available at
C:\Users\dell\.cloudvolume\secrets
[1] "cave-secret.json"

Flywire cloudvolume URL: graphene://https://prodv1.flywire-daf.com/segmentation/table/fly_v31
Google FFN1 segmentation
----
• Set the `fafbseg.skelziproot` option:
   `options(fafbseg.skelziproot="/path/to/zips")`
  if you want to use FFN1 skeleton files!

Python
----
python:         C:/Users/dell/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
libpython:      C:/Users/dell/AppData/Local/r-miniconda/envs/r-reticulate/python38.dll
pythonhome:     C:/Users/dell/AppData/Local/r-miniconda/envs/r-reticulate
version:        3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 05:59:00) [MSC v.1929 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/dell/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
numpy_version:  1.23.2

           module available version                                                                                          path
1     cloudvolume      TRUE   8.9.1    C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\cloudvolume
2         DracoPy      TRUE   1.2.0                                                                                              
3       meshparty      TRUE   0.2.2      C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\meshparty
4        skeletor      TRUE   1.2.1       C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\skeletor
5        pykdtree      TRUE               C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\pykdtree
6        pyembree      TRUE  0.2.11       C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\pyembree
7      caveclient      TRUE  4.16.2     C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\caveclient
8  pychunkedgraph      TRUE 0.1.113 C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\pychunkedgraph
9         igneous      TRUE                C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\igneous
10        pyarrow      TRUE   9.0.0        C:\\Users\\dell\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\lib\\site-packages\\pyarrow

rJava
----
The rJava package is linked to the following JVM
java.version: 1.8.0_341
java.home: C:\Program Files\Java\jre1.8.0_341
java.class.version: 52.0

System java
----
(used as a fallback when rJava not available)
java run time found at: C:\PROGRA~1\COMMON~1\Oracle\Java\javapath\java.exe
java.version: 18.0.2.1

h5reg test
----
h5reg xform infrastructure OK!
xform test gave correct results

Best,

Geonil Kim

Greg Jefferis

unread,
Aug 30, 2022, 6:38:47 AM8/30/22
to nat-user
Dear Geonil Kim,

Please can you take a look at this github issue especially my last comment and see if it fixes your issue for now. I think this is a bug with differences how different applications define Windows home folder paths that I have found hard to squash (we only regularly use Mac/linux).

Best wishes,

Greg.

Geonil Kim

unread,
Sep 6, 2022, 9:14:45 AM9/6/22
to nat-user
Dear Dr. Jefferis,

Thank you for your answer and help. As the link recommended, I copied and paste my cave-secret.json file, but it did not change the output of dr_fafbseg().
And you told me that this problem might be caused by Windows OS, I re-installed fafbseg in Mac but it also showed same output of dr_fafbseg() as written below.
By any chance, is it because I don't have full access to the flywire data? I have not taken proofreading test yet, so I can only access sandbox data now.
I would appreciate it if you would let me know whether it's the cause of the problem, or there are other possible causes.

Best regards,

Geonil Kim

> dr_fafbseg()
FlyWire
----
Checking secrets folder for tokens from R: /Users/geonil/.cloudvolume/secrets
Valid FlyWire ChunkedGraph token is set and found by R!
cloudvolume found a token at  /Users/geonil/.cloudvolume/secrets/cave-secret.json
Error in py_call_impl(x, dots$args, dots$keywords) :
  requests.exceptions.HTTPError: 401 Client Error: UNAUTHORIZED for url: https://prodv1.flywire-daf.com/segmentation/api/v1/table/fly_v31/roots_binary

token found but python+cloudvolume access to FlyWire API is still failing!
Please ask for help at https://groups.google.com/g/nat-user using the full output of dr_fafbseg.

1 FlyWire/CloudVolume credential files available at
/Users/geonil/.cloudvolume/secrets

[1] "cave-secret.json"

Flywire cloudvolume URL: graphene://https://prodv1.flywire-daf.com/segmentation/table/fly_v31
Google FFN1 segmentation
----
• Set the `fafbseg.skelziproot` option:
   `options(fafbseg.skelziproot="/path/to/zips")`
  if you want to use FFN1 skeleton files!

Python
----
python:         /Users/geonil/Library/r-miniconda/envs/r-reticulate/bin/python
libpython:      /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/libpython3.8.dylib
pythonhome:     /Users/geonil/Library/r-miniconda/envs/r-reticulate:/Users/geonil/Library/r-miniconda/envs/r-reticulate
version:        3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:05:47)  [Clang 12.0.1 ]
numpy:          /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/numpy

numpy_version:  1.23.2

           module available version
1     cloudvolume      TRUE   8.9.1
2         DracoPy      TRUE   1.2.0
3       meshparty      TRUE  1.16.7
4        skeletor      TRUE   1.2.1
5        pykdtree      TRUE        
6        pyembree      TRUE  0.2.11
7      caveclient      TRUE  4.16.2
8  pychunkedgraph      TRUE 0.1.113
9         igneous      TRUE        
10        pyarrow      TRUE   9.0.0
                                                                                             path
1     /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/cloudvolume
2                                                                                                
3       /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/meshparty
4        /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/skeletor
5        /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/pykdtree
6        /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/pyembree
7      /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/caveclient
8  /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/pychunkedgraph
9         /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/igneous
10        /Users/geonil/Library/r-miniconda/envs/r-reticulate/lib/python3.8/site-packages/pyarrow

Every time I re-launched R and before receiving new token, dr_sr_fafbseg() showed 'FORBIDDEN for url' instead of 'UNAUTHORIZED for url' as follows.

Checking secrets folder for tokens from R: /Users/geonil/.cloudvolume/secrets
Valid FlyWire ChunkedGraph token is set and found by R!
cloudvolume found a token at  /Users/geonil/.cloudvolume/secrets/cave-secret.json
Error in py_call_impl(x, dots$args, dots$keywords) :
  requests.exceptions.HTTPError: 403 Client Error: FORBIDDEN for url: https://prodv1.flywire-daf.com/segmentation/api/v1/table/fly_v31/roots_binary


token found but python+cloudvolume access to FlyWire API is still failing!
Please ask for help at https://groups.google.com/g/nat-user using the full output of dr_fafbseg.
2022년 8월 30일 화요일 오후 7시 38분 47초 UTC+9에 jeff...@gmail.com님이 작성:

Greg Jefferis

unread,
Sep 15, 2022, 4:52:18 AM9/15/22
to nat-user
On Tuesday, September 6, 2022 at 2:14:45 PM UTC+1 gktmf...@gmail.com wrote:

By any chance, is it because I don't have full access to the flywire data? I have not taken proofreading test yet, so I can only access sandbox data now.
I would appreciate it if you would let me know whether it's the cause of the problem, or there are other possible causes.

Ah. Yes that is correct. You must have full access. All the best, Greg Jefferis.
 
Reply all
Reply to author
Forward
0 new messages