Closed sylhare closed 5 years ago
Fixed it with a try catch, I guess that's good enough
def get_long_description():
try:
import pypandoc
pypandoc.convert_file('README.md', 'rst', outputfile="readme.rst")
with open("readme.rst", 'r') as f:
readme = f.read()
except ImportError:
readme = 'Python library for Latent Dirichlet allocation (lda)'
print("Install pypandoc and pandoc to generate long description")
return readme
When trying to install the package from pip without pypandoc I am getting this error:
So I will need to correct either the
convert
function or simply remove it, or add pypandoc as a dependency to the package.