openstax / oer.exports

Converter to various book formats (PDF, epub, mobi)
2 stars 0 forks source link

Deduplicate and clean python scripts #4064

Open aiwenar opened 3 years ago

aiwenar commented 3 years ago

This PR is based on #4063.

brittany-johnson commented 3 years ago

I'm unable to run ./script/setup or ./script/build-pdf. I've installed the node version specified in .node-version via nvm and ran npm install. The commands mention above yield this output ImportError: No module named _md5

Do you think we should have @wilkus27 or @ajluk or someone else also test on this branch to see if you get the same output?

I've removed my label to review for now put please re-add it once I'm needed again. Thank you!

aiwenar commented 3 years ago

Could you post complete log? Does this happen only on this branch, or also on #4063? Does this happen on freshly cloned master?

_md5 is an internal module used by hashlib to implement MD5. If it couldn't be located then it's likely that either virtualenv wasn't created correctly and is missing venv/lib/python2.7/lib-dynload/_md5module.so, or that your Python installation is broken, but I can't tell which from just the error message.