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 command coala --files=src/\*.c --bears=SpaceConsistencyBear --save
in the coala-tutorial
directory, I got this error message:
[ERROR][21:11:49] 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][21:11:49] Exception was:
Traceback (most recent call last):
in <module>
import readline # pylint: disable=unused-import
File "D:\Python3.10\lib\site-packages\readline.py", line 34, in <module>
rl = Readline()
File "D:\Python3.10\lib\site-packages\pyreadline\rlmain.py", line 422, in __init__
BaseReadline.__init__(self)
File "D:\Python3.10\lib\site-packages\pyreadline\rlmain.py", line 62, in __init__
mode.init_editing_mode(None)
File "D:\Python3.10\lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "D:\Python3.10\lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
File "D:\Python3.10\lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable'
And similarly, when I run coala --files=src/\*.py --bears=PEP8Bear --save
, I got:
[ERROR][21:14:05] 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][21:14:05] 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 8, in <module>
import readline # pylint: disable=unused-import
File "D:\Python3.10\lib\site-packages\readline.py", line 34, in <module>
rl = Readline()
File "D:\Python3.10\lib\site-packages\pyreadline\rlmain.py", line 422, in __init__
BaseReadline.__init__(self)
File "D:\Python3.10\lib\site-packages\pyreadline\rlmain.py", line 62, in __init__
mode.init_editing_mode(None)
File "D:\Python3.10\lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "D:\Python3.10\lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
File "D:\Python3.10\lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable'
I'm not sure what's wrong with it. Did I ignore something important?
For your information, I installed coala
with command pip install coala-bears
, and other thing are as followed:
- OS: Windows 10 Pro 21H2
- Python: 3.10.2
- pip: 21.2.4
- coala: 0.11.0
- coala-bears: 0.11.1
- coala-utils: 0.6.7
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.