While trying to build the Sphinx documentation for a number of Python libraries in order to convert them to Dash docsets (using doc2dash) I ran into a problem with the SQLAlchemy documentation.

I was using Python 3.3.2 and when I ran: 'make html' in the sqlalchemy/doc/build directory I got the following error:

sphinx-build -b html -A mako_layout=html -d output/doctrees   . output/html
Running Sphinx v1.1.3

Extension error:
Could not import extension builder.changelog (exception: No module named 'md5')
make: *** [html] Error 1

Contrary to Python 2, Python 3 does not have an md5 module anymore. I think the SQLAlchemy documentation depends on the md5 module by virtue of referencing the example:

examples/dogpile_caching/environment.py

That file, on line 13, imports the md5 module.

According to: http://stackoverflow.com/a/4954618

The Python 3 way to use md5 is:

import hashlib
print(hashlib.md5('asd'.encode()).hexdigest())

BTW Building the documentation using Python 2.7.5 works just fine.

--
Guido Kollerie

PS Dash: http://kapeli.com/dash

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to