Coder Social home page Coder Social logo

Comments (3)

LingkKang avatar LingkKang commented on June 12, 2024

UPDATE

I found this blog and it said collections.Callable was moved into collections.abc.Callable since python 3.10 and above.

And I found there is a new maintained version of pyreadline, named as pyreadline3.

So I ran command pip install --upgrade pyreadline3, and ran coala --files=src/\*.c --bears=SpaceConsistencyBear --save again, surprisingly, error message reads like:

[ERROR][23:25:21] An unknown error occurred. This is a bug. We are sorry for the inconvenience. Please contact the developers for assistance. During execution of coala an exception was raised. This should never happen. When asked for, the following information may help investigating:
[INFO][23:25:21] Exception was:
Traceback (most recent call last):

  File "D:\Python3.10\lib\site-packages\coalib\coala.py", line 35, in main
    from coalib.output.ConsoleInteraction import (

  File "D:\Python3.10\lib\site-packages\coalib\output\ConsoleInteraction.py", line 13, in <module>
    from coalib.misc.DictUtilities import inverse_dicts

  File "D:\Python3.10\lib\site-packages\coalib\misc\DictUtilities.py", line 1, in <module>
    from collections import defaultdict, Iterable, OrderedDict

ImportError: cannot import name 'Iterable' from 'collections' (D:\Python3.10\lib\collections\__init__.py)

At least it got shorter. 🤷‍♂️

from coala.

LingkKang avatar LingkKang commented on June 12, 2024

From the python docs, collections.Iterable was moved to collections.abc.Iterable.

So maybe this is the reason why there is an ImportError.

from collections import defaultdict, Iterable, OrderedDict

from coala.

PhilipDeegan avatar PhilipDeegan commented on June 12, 2024

Seeing this locally on python3.11

from coala.

Related Issues (20)

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.