-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I am using neuronbridge Python API to get the projections and struggling to make it work. I am seeing the following error when using this snippet client = client.Client() from the notebooks https://github.com/JaneliaSciComp/neuronbridge-python/blob/f35f7dbc14a655a805c8f86f549d48b4fcc74d65/notebooks/python_api_examples.ipynb.
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
Cell In[3], line 4
2 from neuronbridge.model import *
3 from typing import *
----> 4 client = client.Client()
File c:\users\username\desktop\..\neuronbridge-python\neuronbridge\client.py:38, in Client.__init__(self, data_bucket, version)
35 if res.status_code != 200:
36 raise Exception("Could not retrieve "+url)
---> 38 self.config = DataConfig(**res.json())
File c:\Users\username\miniconda3\envs\..\site-packages\pydantic\main.py:341, in pydantic.main.BaseModel.__init__()
ValidationError: 11 validation errors for DataConfig
stores -> fl:open_data:brain -> customSearch -> lmLibraries -> 0 -> count
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:brain -> customSearch -> lmLibraries -> 1 -> count
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:brain -> customSearch -> lmLibraries -> 2 -> count
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:brain -> customSearch -> lmLibraries -> 3 -> count
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:brain -> customSearch -> emLibraries -> 0 -> count
extra fields not permitted (type=value_error.extra)
...
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:vnc -> customSearch -> lmLibraries -> 3 -> count
extra fields not permitted (type=value_error.extra)
stores -> fl:open_data:vnc -> customSearch -> emLibraries -> 0 -> count
extra fields not permitted (type=value_error.extra)
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
I have tried using Python 3.9 and 3.8 with different versions of pydantic if that matters. Thanks for the help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working