You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用了readme文件提示的“Please create conf.yaml file as following way:”
运行时run.py 第30行报错 keyError,语句为 kwargs[item] = None if params[item] and params[item] == 'None' else params[item]
个人认为应该修改为: kwargs[item] = None if item not in params or params[item] == 'None' else params[item]
成功克服keyError报错
My experience:
The README file did not indicate the Python version, but checking the setup.py file suggested Python>=3.4. Fearing incompatibility with newer versions, I used Python 3.7.
During pip initialization, it was indicated that grimoire_elk was needed, but installation consistently failed with gcc errors. After a few days, I discovered this in the grimoire_elk repository: https://github.com/chaoss/grimoirelab-elk/blob/master/pyproject.toml, which hinted that Python 3.8 or higher was required. I switched to 3.8 and successfully overcame the gcc failure errors.
Perhaps the required Python version should be indicated in the README, and the setup.py should be updated accordingly.
I followed the instructions in the README file to create the conf.yaml file as suggested.
When running run.py, there was a KeyError on line 30 of the code:
我的经历:
readme未提示python版本,查看 setup.py 提示python>=3.4,怕太新的版本不兼容故使用了pytho3.7;
pip初始化时提示需要grimoire_elk,安装一直报错gcc失败。几天后,查看grimoire_elk仓库发现这个:https://github.com/chaoss/grimoirelab-elk/blob/master/pyproject.toml
线索提示需要python3.8以上,遂换成3.8,成功克服gcc失败报错。
或许应该在readme提示要使用的python版本,并且修改setup.py
使用了readme文件提示的“Please create conf.yaml file as following way:”
运行时run.py 第30行报错 keyError,语句为
kwargs[item] = None if params[item] and params[item] == 'None' else params[item]
个人认为应该修改为:
kwargs[item] = None if item not in params or params[item] == 'None' else params[item]
成功克服keyError报错
My experience:
The text was updated successfully, but these errors were encountered: