-
Notifications
You must be signed in to change notification settings - Fork 73
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
(Bazel) AttributeError: module 'mmh3' has no attribute 'hash' #50
Comments
Hi, I honestly appreciate your detailed report! It has helped me a lot to reproduce the issue. Currently I'm still trying to figure out how to fix the problem. Since 4.0.1 is functionally identical to 4.0.0, I suggest you to use the previous version at the moment. What I found so far is that for 4.0.1, The following issue report may or may not be related to this problem. I will continue to investigate the issue, but I'll be thankful if someone who is familiar with the implementation details of Bazel can give me advice. |
I finally identified the cause of the problem. Notice to Bazel usersPlease use 4.0.0 at the moment, which is functionally identical to 4.0.1. Technical issuesThe decision process of the auto-generation of
Since |
I am so sorry for being this late but the fix was finally incorporated into the main branch and released as 4.1.0. Thank you very much again for providing detailed information and helpful files to reproduce the issue! |
Consider:
mmh3.hash("Hello World")
.Expected behavior: returns
427197390
Actual behavior: raises exception
AttributeError: module 'mmh3' has no attribute 'hash'
Regression: This works in version 4.0.0. The error is triggered in version 4.0.1.
Environment: Curiously, this seems to happen when running the test through Bazel, not when installing into a virtual environment. Not sure if the bug is on the
mmh3
side or the Bazel side, but something changed between 4.0.0 and 4.0.1. Can you help me figure out what?To reproduce, get the gist from https://gist.github.com/vonschultz/18b4e58a697d56c8cc421528e0a4ef13 and run
Get
bazelisk
from https://github.com/bazelbuild/bazelisk/releases if you don't already have it.I'm running Ubuntu 20.04.
The text was updated successfully, but these errors were encountered: