0

I am trying to deploy a python web application on Heroku which uses the hashlib module in it. I included hashlib in the 'requirements.txt' file (All modules mentioned in the file are installed by Heroku using pip) However it gives me an error:

TypeError: 'frozenset' object is not callable

Some other answers like this use easy_install, which is not supported by Heroku. Others like this and this are not useful in this case.

What should I do if I want to import hashlib in Heroku?

Community
  • 1
  • 1
Mihir Khandekar
  • 108
  • 1
  • 16

1 Answers1

1

Hashlib has been included in the standard library since Python 2.5. There is no need to install it, or to include it in requirements.txt.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895