Skip to content

Error running 000004_demo_analysis.ipynb #103

@dnkennedy

Description

@dnkennedy

Hi, I was trying to run 000004_demo_analysis.ipynb through Google Colab and received the following error (I get the same error running locally as well, for what that's worth).

On the cell:

import numpy as np
from pathlib import Path
import pandas as pd
import os
import sys
from pynwb import NWBHDF5IO
import matplotlib.pyplot as plt
import seaborn as sns
from dandi.download import download as dandi_download
import RutishauserLabtoNWB.events.newolddelay.python.analysis.helper as helper
import RutishauserLabtoNWB.events.newolddelay.python.analysis.single_neuron as single_neuron

I get the following error:

AttributeError Traceback (most recent call last)
in <cell line: 6>()
4 import os
5 import sys
----> 6 from pynwb import NWBHDF5IO
7 import matplotlib.pyplot as plt
8 import seaborn as sns

10 frames
/usr/local/lib/python3.10/dist-packages/ruamel/yaml/main.py in error_deprecation(fun, method, arg, comment)
1037 raise AttributeError(s)
1038 else:
-> 1039 raise AttributeError(s, name=None)
1040
1041

AttributeError:
"safe_load()" has been removed, use

yaml = YAML(typ='safe', pure=True)
yaml.load(...)

instead of file "/usr/local/lib/python3.10/dist-packages/hdmf/spec/namespace.py", line 194

        d = yaml.safe_load(stream)

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions