natverse / fafbseg

Support functions for analysis of Drosophila connectomes especially the FAFB-FlyWire whole brain
https://natverse.org/fafbseg/
GNU General Public License v3.0
6 stars 4 forks source link

Post fafbseg update - error when querying 'cambridge_celltypes' table in CAVE #161

Open pm4564 opened 2 years ago

pm4564 commented 2 years ago

Have just updated fafbseg and run into the following error when querying an annotation table:

cct=flywire_cave_query(table = 'cambridge_celltypes')

Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'
jefferis commented 2 years ago

Hi @pm4564, It looks like this is down to your version of the datetime library which looks like it's coupled to your python version.

Can you report the output of dr_fafbseg()?

jefferis commented 2 years ago

Aslo can you check

dt=reticulate::import('datetime')
dt$sys$version

what this does.

pm4564 commented 2 years ago

Checking secrets folder for tokens from R: /Users/Myers/.cloudvolume/secrets 
Valid FlyWire ChunkedGraph token is set and found by R!
cloudvolume found a token at  /Users/Myers/.cloudvolume/secrets/cave-secret.json 
Flywire API access via python+cloudvolume is working.
1 FlyWire/CloudVolume credential files available at
/Users/Myers/.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/Myers/Library/r-miniconda/envs/r-reticulate/bin/python
libpython:      /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/libpython3.6m.dylib
pythonhome:     /Users/Myers/Library/r-miniconda/envs/r-reticulate:/Users/Myers/Library/r-miniconda/envs/r-reticulate
version:        3.6.12 | packaged by conda-forge | (default, Dec  9 2020, 00:24:39)  [GCC Clang 11.0.0]
numpy:          /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/numpy
numpy_version:  1.19.5

           module available version
1     cloudvolume      TRUE   6.1.0
2         DracoPy      TRUE        
3       meshparty     FALSE        
4        skeletor      TRUE   1.1.0
5        pykdtree     FALSE        
6        pyembree      TRUE   0.1.6
7      caveclient      TRUE   4.9.0
8  pychunkedgraph     FALSE        
9         igneous     FALSE        
10        pyarrow      TRUE   6.0.1
                                                                                         path
1  /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/cloudvolume
2                                                                                            
3                                                                                            
4     /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/skeletor
5                                                                                            
6     /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/pyembree
7   /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/caveclient
8                                                                                            
9                                                                                            
10     /Users/Myers/Library/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/pyarrow

rJava
----
The rJava package is linked to the following JVM
java.version: 14.0.1 
java.home: /Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home 
java.class.version: 58.0 

System java
----
(used as a fallback when rJava not available)
java run time found at: /usr/bin/java 
java.version: 14.0.1 

h5reg test
----
h5reg xform infrastructure OK!
xform test gave correct results
pm4564 commented 2 years ago

Aslo can you check

dt=reticulate::import('datetime')
dt$sys$version

what this does.

[1] "3.6.12 | packaged by conda-forge | (default, Dec 9 2020, 00:26:39) \n[GCC Clang 11.0.0]"