Beautifulsoup is an optional package, if you don'use it, no need to install it.
If you install chm2pdf you don't get beautifulsoup automatically.
If the --beautifulsoup option is passed, CHM2PDF executes
from BeautifulSoup import BeautifulSoup, Tag
and this will rise an exception.
I added the code to intercept this exception generating some help
+ try:
+ from BeautifulSoup import BeautifulSoup
+ except Exception, e:
+ print
+ print '### An error occured importing soup ', e
+ print '### Check if beautifulsoup is installed or remove --beautifulsoup from the command line'
+ sys.exit()
Beautifulsoup is an optional package, if you don'use it, no need to install it.
If you install chm2pdf you don't get beautifulsoup automatically.
If the --beautifulsoup option is passed, CHM2PDF executes
from BeautifulSoup import BeautifulSoup, Tag
and this will rise an exception.
I added the code to intercept this exception generating some help
+ try:
+ from BeautifulSoup import BeautifulSoup
+ except Exception, e:
+ print
+ print '### An error occured importing soup ', e
+ print '### Check if beautifulsoup is installed or remove --beautifulsoup from the command line'
+ sys.exit()