Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unable to run example notebook #3

Copy link
Copy link
@neurogarg

Description

@neurogarg
Issue body actions

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.