Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • AttributeError: module '_md5' has no attribute 'lib', why? Commented Dec 28, 2019 at 20:43
  • I am not sure. Maybe your cffi version is very old or you have a _md5.py file in that directory. Commented Dec 28, 2019 at 21:01
  • I also experienced the AttributeError: module '_md5' has no attribute 'lib' problem and I'm running cffi version 0.14.5 (released after this was posted if I'm not mistaken), so I would say it is not an old version problem...anyone managed to make fix the 'no lib' problem? Cheers :) Commented Dec 2, 2021 at 8:58
  • 1
    @LucaClissa You probably forgot to build the bindings. I have adjusted the answer to be more explicit about it. Commented Dec 2, 2021 at 10:03
  • I apologize in advance for the (possibly) silly answer: I run build.py and run.py code within the same interactive session and I can see three _md5-related files in the folder (_md5.c, _md5.o and _md5.cpython-39-x86_64-linux-gnu.so). Is that what you meant by build the bindings? Commented Dec 9, 2021 at 16:19