Skip to content

" An unknown error occurred. This is a bug. We are sorry for the inconvenience. Please contact the developers" #6179

Open
@alisonqiu

Description

@alisonqiu

Overview Description

As I was working through the getting started tutorial and tried to run this code coala --files=src/\*.c --bears=SpaceConsistencyBear --save, I got the following output:

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][10:49:06] Exception was:
Traceback (most recent call last):

  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/coalib/coala.py", line 35, in main
    from coalib.output.ConsoleInteraction import (

  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/coalib/output/ConsoleInteraction.py", line 13, in <module>
    from coalib.misc.DictUtilities import inverse_dicts

  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/coalib/misc/DictUtilities.py", line 1, in <module>
    from collections import defaultdict, Iterable, OrderedDict

ImportError: cannot import name 'Iterable' from 'collections' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/collections/__init__.py)

After reading about a similar issue in the past, I ran pip install 'setuptools==17.0' but that still didn't resolve the issue.

Steps to Reproduce

  1. git clone https://github.com/coala/coala-tutorial
  2. cd coala-tutorial
  3. coala --files=src/*.c --bears=SpaceConsistencyBear --save
  4. pip install 'setuptools==17.0'

Expected Results

"Please enter a value for the setting "use_spaces" (True if spaces
are to be used instead of tabs.) needed by SpaceConsistencyBear
for section "cli"

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