-
Notifications
You must be signed in to change notification settings - Fork 6
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
AttributeError: module 'collections' has no attribute 'Hashable' #3
Comments
@miruchigawa, I was getting the same error even when I installed the 3.12 version of PyYAML which is a dependency listed for chatterbot-corpus. What did resolve this for me was uninstalling my currently installed version of PyYAML using pip and then re-installing the latest version of PyYAML using pip. Let me know if this fixes the issue for you or not though! Oh, one last thing pip still threw an error (see below) though I was able to run code and interact with a basic chatbot running in the terminal despite getting the dependency error message from pip. That said, I didn't test with the pre-made Django or Flask apps so YMMV with those or your own custom apps. Code to run to un-install and re-install PyYAML PIP ERROR TEXT |
Thank you so much for commenting. I was busy with school so i didn't get a chance to look into this. Im looking for a workaround but I suspect that because this is a chatterbot-corpus issue, I will need to create a fork of chatterbot corpus. I can keep this issue open until we find a solution. |
Fixed the issue |
Related to ShoneGK#3 Update the PyYAML version in `requirements.txt` to the latest version. * Add `pyyaml>=6.0.1` to the `requirements.txt` file to resolve the AttributeError related to the 'collections' module's 'Hashable' attribute. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ShoneGK/ChatterPy/issues/3?shareId=XXXX-XXXX-XXXX-XXXX).
I'm trying to run code but i got error
AttributeError: module 'collections' has no attribute 'Hashable
How to fix this?
The text was updated successfully, but these errors were encountered: