shurain / chm2pdf

Automatically exported from code.google.com/p/chm2pdf
GNU General Public License v2.0
0 stars 0 forks source link

Centos 5.1 install convert error #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Install on Centos 5.1
2. chm2pdf --book RHCEStudy.chm 

3.

What is the expected output? What do you see instead?
rm: cannot remove `/tmp/chm2pdf/orig/RHCEStudy/*': No such file or directory
rm: cannot remove `/tmp/chm2pdf/work/RHCEStudy/*': No such file or directory
sh: /tmp/chm2pdf/work/RHCEStudy/urlslist.txt: No such file or directory
Traceback (most recent call last):
  File "/usr/bin/chm2pdf", line 1111, in ?
    main(sys.argv)
  File "/usr/bin/chm2pdf", line 1107, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/bin/chm2pdf", line 326, in convert_to_pdf
    objective_urls=get_objective_urls_list(filename)
  File "/usr/bin/chm2pdf", line 114, in get_objective_urls_list
    flist=open(CHM2PDF_WORK_DIR+'/urlslist.txt','rU')
IOError: [Errno 2] No such file or directory: 
'/tmp/chm2pdf/work/RHCEStudy/urlslist.txt'

What version of the product are you using? On what operating system?
0.9.1  Centos 5.1

Please provide any additional information below.

 Trying to convert a .chm file to .pdf

Original issue reported on code.google.com by simps...@gmail.com on 9 Aug 2008 at 5:28

GoogleCodeExporter commented 9 years ago
Either your CHM file cannot be parsed correctly (reason not clear to me), or you
don't have access rights to the /tmp dir. In the second case, open the chm2pdf 
script
and change "tmp" to your home dir in these two lines:

CHM2PDF_TEMP_WORK_DIR='/tmp/chm2pdf/work' 
CHM2PDF_TEMP_ORIG_DIR='/tmp/chm2pdf/orig'

Before you do this, doublecheck that you have all required packages:

http://code.google.com/p/chm2pdf/wiki/HowToInstall

Original comment by chriskar...@googlemail.com on 25 Nov 2008 at 10:48

GoogleCodeExporter commented 9 years ago
the real problem is another: chm2pdf relies on a couple of os.system() over
'enum_chmLib' and 'extract_chmLib'.
These bin files are not build (and installed) by default in chmlib packages (as
they're just examples of how to use the lib).
I just made a patch to "reimplement" in python the 2 programs using the pychm 
lib.
Maybe you can look at it.
(it's the `svn diff` output)

Original comment by Vito.DeT...@gmail.com on 24 Mar 2009 at 2:01

Attachments: