Skip to content

Importing get_data from nlpia.loaders causes Error with python 3.10.2  #46

@conradfriedrich

Description

@conradfriedrich

from nlpia.loaders import get_data

causes

Traceback (most recent call last):
  File "xyz.py", line 2, in <module>
    from nlpia.loaders import get_data
  File ".venv/lib/python3.10/site-packages/nlpia/loaders.py", line 61, in <module>
    from pugnlp.util import clean_columns
  File ".venv/lib/python3.10/site-packages/pugnlp/util.py", line 47, in <module>
    from collections import OrderedDict, Mapping, Counter
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

on Manjaro Linux 4.19.233-1
python version 3.10.2

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