Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors #22

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 4 comments
Open

Errors #22

GoogleCodeExporter opened this issue Apr 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

as per this given link 
 "http://www.karakas-online.de/forum/viewtopic.php?t=10275" i worked but i
am facing  bellow error, 
1>chm2pdf --book my-file.chm 

root@AmSi:/home/amaresh/Desktop# chm2pdf --book Glass\,Ables\ -\ Linux\
for\ Programmers\ and\ Users\ \(Prentice\,\ 2006\).chm 
CHM2PDF_WORK_DIR = /tmp/chm2pdf/work/Glass,Ables - Linux for Programmers
and Users (Prentice, 2006)
CHM2PDF_ORIG_DIR = /tmp/chm2pdf/orig/Glass,Ables - Linux for Programmers
and Users (Prentice, 2006)
Removing any previous temporary files
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
Traceback (most recent call last):
  File "/usr/bin/chm2pdf", line 887, in <module>
    main(sys.argv)
  File "/usr/bin/chm2pdf", line 883, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/bin/chm2pdf", line 180, in convert_to_pdf
    objective_urls=get_objective_urls_list(filename)
  File "/usr/bin/chm2pdf", line 98, in get_objective_urls_list
    flist=open(CHM2PDF_WORK_DIR+'/urlslist.txt','r')
IOError: [Errno 2] No such file or directory:
'/tmp/chm2pdf/work/Glass,Ables - Linux for Programmers and Users (Prentice,
2006)/urlslist.txt'

Waiting for solution, 

2>chm2pdf --book --title my-file.chm 
------------------
root@AmSi:/home/amaresh/Desktop# chm2pdf --book --title Glass\,Ables\ -\
Linux\ for\ Programmers\ and\ Users\ \(Prentice\,\ 2006\).chm 
CHM2PDF_WORK_DIR = /tmp/chm2pdf/work/Glass,Ables - Linux for Programmers
and Users (Prentice, 2006)
CHM2PDF_ORIG_DIR = /tmp/chm2pdf/orig/Glass,Ables - Linux for Programmers
and Users (Prentice, 2006)
Removing any previous temporary files
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
sh: Syntax error: "(" unexpected
Traceback (most recent call last):
  File "/usr/bin/chm2pdf", line 887, in <module>
    main(sys.argv)
  File "/usr/bin/chm2pdf", line 883, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/bin/chm2pdf", line 180, in convert_to_pdf
    objective_urls=get_objective_urls_list(filename)
  File "/usr/bin/chm2pdf", line 98, in get_objective_urls_list
    flist=open(CHM2PDF_WORK_DIR+'/urlslist.txt','r')
IOError: [Errno 2] No such file or directory:
'/tmp/chm2pdf/work/Glass,Ables - Linux for Programmers and Users (Prentice,
2006)/urlslist.txt'
--------------------------

Original issue reported on code.google.com by amareshchandradas2005 on 7 May 2009 at 9:24

@GoogleCodeExporter
Copy link
Author

Hi there! I just had the same problem. My issue was that the filename had 
spaces in
it, which seems to have generated temporary files with wonky names that chm2pdf
couldn't use later! As a quick fix, rename your file to one that has no spaces 
(or
other characters that don't mesh well with linux).

Original comment by abatebi...@gmail.com on 16 Oct 2009 at 4:52

@GoogleCodeExporter
Copy link
Author

ok

Original comment by amareshchandradas2005 on 16 Oct 2009 at 5:21

@GoogleCodeExporter
Copy link
Author

the command was chm2pdf --book autoinstall.chm

rm: cannot remove `/tmp/chm2pdf/orig/autoinstall/*': No such file or directory
rm: cannot remove `/tmp/chm2pdf/work/autoinstall/*': No such file or directory
sh: /tmp/chm2pdf/work/autoinstall/urlslist.txt: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/chm2pdf", line 1111, in <module>
    main(sys.argv)
  File "/usr/local/bin/chm2pdf", line 1107, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/local/bin/chm2pdf", line 326, in convert_to_pdf
    objective_urls=get_objective_urls_list(filename)
  File "/usr/local/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/autoinstall/urlslist.txt'

Original comment by slippery...@gmail.com on 25 Jan 2010 at 9:28

@GoogleCodeExporter
Copy link
Author

I issue 3 I postet a patch that should fix this problem.
See also https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193

Original comment by reto.kn...@gmail.com on 24 Nov 2011 at 9:32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant