GithubHelp home page GithubHelp logo

Comments (4)

Christopher-Thornton avatar Christopher-Thornton commented on June 12, 2024 1

I believe this issue is related to your Python version (>3.9)

The error is generated from abydos package; they need to modify their imports like below:

try:
    # Python <= 3.9
    from collections import Iterable
except ImportError:
    # Python > 3.9
    from collections.abc import Iterable

If the maintainer of abydos doesn't fix in the coming weeks, I'll work on patching it.

from hmni.

robmadden avatar robmadden commented on June 12, 2024 1

I recently ran into this issue as well with Python 3.10.6

Any updates?

from hmni.

varungujarathi9 avatar varungujarathi9 commented on June 12, 2024 1

A solution if you don't want to change package files is to create alias before importing hmni

import collections.abc
collections.Iterable = collections.abc.Iterable
import hmni

Check out this stack overflow: https://stackoverflow.com/a/72113974/10360644

from hmni.

adarsh-raptor avatar adarsh-raptor commented on June 12, 2024

I recently ran into this issue as well with Python 3.10.6

Any updates?

For a quick-fix make the necessary modifications in the abydos package files to import Iterable class.

from collections import Iterable => from collections.abc import Iterable

The modifications have to be made in the following files:

  1. /usr/local/lib/python3.10/dist-packages/abydos/tokenizer/_q_grams.py
  2. /usr/local/lib/python3.10/dist-packages/abydos/tokenizer/_q_skipgrams.py
  3. /usr/local/lib/python3.10/dist-packages/abydos/distance/_synoname.py

from hmni.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.