wting / epub-tools

Automatically exported from code.google.com/p/epub-tools
2 stars 1 forks source link

--css seems to not work #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a docbook project
2. Create a css file for this project
3. Try to generate a epub with the --css options

What is the expected output? 

A working epub which use the css

What do you see instead?

/Users/jacques/Downloads/docbook2epub/build/scripts-2.6/db2epub.py File.xml 
--xsl /Users/jacques/Documents/Sources/Livres/SnowLeopard/epub.xsl --css 
/tmp/style.css 

Traceback (most recent call last):
  File "/Users/jacques/Downloads/docbook2epub/build/scripts-2.6/db2epub.py", line 91, in <module>
    convert(db_file, options.xsl or DOCBOOK_XSL, options.css)
  File "/Users/jacques/Downloads/docbook2epub/build/scripts-2.6/db2epub.py", line 50, in convert
    epub.find_resources(path)
  File "/Library/Python/2.6/site-packages/epubtools-1.0.0dev-py2.6.egg/epubtools/__init__.py", line 26, in find_resources
    shutil.copy(href, p)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 88, in copy
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py", line 47, in copyfile
    raise Error, "`%s` and `%s` are the same file" % (src, dst)
shutil.Error: `/tmp/style.css` and `/tmp/style.css` are the same file

What version of the product are you using? On what operating system?
1.0.3 on Mac OS X 10.6.4

Please provide any additional information below.

Original issue reported on code.google.com by jfou...@gmail.com on 13 Jul 2010 at 1:52

GoogleCodeExporter commented 9 years ago

Original comment by liza31337@gmail.com on 14 Dec 2010 at 10:37

GoogleCodeExporter commented 9 years ago
With 1.0.4 version and Mac OS X 10.6.6 still don' t work. :-(

Original comment by jfou...@gmail.com on 3 May 2011 at 9:27