When I run the following command, I get this stack trace:
$ a2x -b odt --backend-opts="--base_doc=../eyrolles.ott --temp_dir=/tmp" toc.asciidoc
Traceback (most recent call last):
File "/usr/local/bin/a2x", line 960, in <module>
a2x.execute()
File "/usr/local/bin/a2x", line 376, in execute
self.to_backend()
File "/usr/local/bin/a2x", line 634, in to_backend
eval('to_%s(self)' % self.backend)
File "<string>", line 1, in <module>
File "/Users/thomaspa/.asciidoc/backends/odt/a2x-backend.py", line 87, in to_odt
a.make_archive(opts.base_doc, self.asciidoc_file, odf_file)
File "/Users/thomaspa/.asciidoc/backends/odt/a2x-backend.py", line 57, in make_archive
shutil.copyfile(mc.group(1), os.path.join(td, mc.group(2)))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/tmp/tmp64i8r3/Pictures/i_1.jpeg'
If I don't provide the temp_dir the IOError is still here, with a structure like /var/folders/85/z8_1cx8n4jq6wl7vmps_3k_40001st/T/tmp_wY7tQ/Pictures/i_1.jpeg
Any idea? I'd like to use asciidoc to write a book I'd give to my editor as ODT, using their OTT template.
When I run the following command, I get this stack trace:
If I don't provide the
temp_dir
the IOError is still here, with a structure like/var/folders/85/z8_1cx8n4jq6wl7vmps_3k_40001st/T/tmp_wY7tQ/Pictures/i_1.jpeg
Any idea? I'd like to use asciidoc to write a book I'd give to my editor as ODT, using their OTT template.
Thanks very much :-)