-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'Iterable' from 'collections' #6184
Comments
UPDATE I found this blog and it said And I found there is a new maintained version of So I ran command [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 the python docs, So maybe this is the reason why there is an coala/coalib/misc/DictUtilities.py Line 1 in 734b857
|
Seeing this locally on python3.11 |
I am going through the coala tutorial, and run into a problem.
I cloned the
coala-tutorial
repo to my machine, and when I run commandcoala --files=src/\*.c --bears=SpaceConsistencyBear --save
in thecoala-tutorial
directory, I got this error message:And similarly, when I run
coala --files=src/\*.py --bears=PEP8Bear --save
, I got:I'm not sure what's wrong with it. Did I ignore something important?
For your information, I installed
coala
with commandpip install coala-bears
, and other thing are as followed:As you may see, I didn't install python in default location, but I don't think this could be the reason.
Many thanks in advance.
The text was updated successfully, but these errors were encountered: