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

djvubind produces "OSError: [Errno 2] No such file or directory" #193

Open
Zev-Chonoles opened this issue May 12, 2015 · 0 comments
Open

Comments

@Zev-Chonoles
Copy link

Everything about capturing and postprocessing seems to be working for me now, but I've run into a consistent problem with djvu output. The plugins that were turned on in this run-through were autorotate, djvubind (the apparent source of the problem), gui, scantailor, and tesseract.

My main concern is the error that breaks the process, but also I noticed that even though tesseract was turned on, it seems djvubind was passed an option --no-ocr, which I assume means that if djvubind had worked, the OCR data wouldn't have been used. (If it's not a trivial fix, I can open a separate issue.)

I'm on Ubuntu 14.04 64-bit, running two Canon A2500 cameras with CHDK version a2500-100a-1.3.0-4132-full_ALPHA on them.

zev@zev-X58A-UD7:~$ spread --verbose wizard spread-test
==========================
 Starting capturing process
 ==========================
Workflow: Initializing workflow spread-test
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path spread-test/config.yml to payload
spreads.plugin: Finding devices for driver "CHDKCameraDevice"
Found 2 devices!
Setting up devices for capturing.
Workflow: Preparing capture.
Workflow: Preparing capture in devices
CHDKCameraDevice[7B4C]: Setting focus to mode 'autofocus_all'
CHDKCameraDevice[A28E]: Setting focus to mode 'autofocus_all'
Workflow: Running 'prepare_capture' hooks
Workflow: Running 'start_trigger_loop' hooks
( /b) capture | (r) retake last shot | (f) finish
Workflow: Triggering capture.
Workflow: Sending capture command to devices
chdkptp.lua: rc chunk get 1 0
chdkptp.lua: rc chunk size:1461760 offset:17920 last:false
chdkptp.lua: rc chunk get 1 1
chdkptp.lua: rc chunk get 1 0
chdkptp.lua: rc chunk size:1479168 offset:nil last:false
chdkptp.lua: rc chunk get 1 2
chdkptp.lua: rc chunk size:1018817 offset:nil last:false
chdkptp.lua: rc chunk get 1 3
chdkptp.lua: rc chunk size:1461760 offset:17920 last:false
chdkptp.lua: rc chunk get 1 1
chdkptp.lua: rc chunk size:17920 offset:0 last:true
chdkptp.lua: rc chunk size:1479168 offset:nil last:false
chdkptp.lua: rc chunk get 1 2
chdkptp.lua: rc chunk size:929380 offset:nil last:false
chdkptp.lua: rc chunk get 1 3
chdkptp.lua: rc chunk size:17920 offset:0 last:true
CHDKCameraDevice[A28E]: Setting EXIF orientation on captured image
CHDKCameraDevice[7B4C]: Setting EXIF orientation on captured image
Workflow: Running 'capture' hooks
bagit: Adding path spread-test/data/raw/001.jpg to payload
bagit: Adding path spread-test/data/raw/000.jpg to payload
bagit: Adding path spread-test/pagemeta.json to payload
Shot   2 pages [702302/h] bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
Workflow: Triggering capture.
Workflow: Sending capture command to devices
chdkptp.lua: rc chunk get 1 0
chdkptp.lua: rc chunk size:1461760 offset:17920 last:false
chdkptp.lua: rc chunk get 1 1
chdkptp.lua: rc chunk get 1 0
chdkptp.lua: rc chunk size:1461760 offset:17920 last:false
chdkptp.lua: rc chunk get 1 1
chdkptp.lua: rc chunk size:1479168 offset:nil last:false
chdkptp.lua: rc chunk get 1 2
chdkptp.lua: rc chunk size:963033 offset:nil last:false
chdkptp.lua: rc chunk get 1 3
chdkptp.lua: rc chunk size:1479168 offset:nil last:false
chdkptp.lua: rc chunk get 1 2
chdkptp.lua: rc chunk size:797185 offset:nil last:false
chdkptp.lua: rc chunk get 1 3
chdkptp.lua: rc chunk size:17920 offset:0 last:true
chdkptp.lua: rc chunk size:17920 offset:0 last:true
CHDKCameraDevice[A28E]: Setting EXIF orientation on captured image
CHDKCameraDevice[7B4C]: Setting EXIF orientation on captured image
Workflow: Running 'capture' hooks
bagit: Adding path spread-test/data/raw/003.jpg to payload
bagit: Adding path spread-test/data/raw/002.jpg to payload
bagit: Adding path spread-test/pagemeta.json to payload
Shot   4 pages [1310/h] bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
Workflow: Sending finish_capture command to devices
bagit: Adding path spread-test/pagemeta.json to payload
Workflow: Running 'finish_capture' hooks
Workflow: Running 'stop_trigger_loop' hooks
=======================
Starting postprocessing
=======================
Workflow: Initializing workflow spread-test
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path spread-test/config.yml to payload
Workflow: Starting postprocessing...%
Workflow: Running 'process' hooks
spreadsplug.autorotate: Rotating images
spreadsplug.scantailor: Generating ScanTailor configuration
spreadsplug.scantailor: /usr/bin/scantailor-cli --start-filter=1 --end-filter=3 --layout=1.5 -o=/tmp/tmpl21k5Y.ScanTailor --margins-top=2.5 --margins-right=2.5 --margins-bottom=2.5 --margins-left=2.5 spread-test/data/done/000_rotated.jpg spread-test/data/done/001_rotated.jpg spread-test/data/done/002_rotated.jpg spread-test/data/done/003_rotated.jpg /tmp/st-outp65f8I
spreadsplug.scantailor: If you are changing output settings (in the last step, you *have* to run the last step from the GUI. Due to a bug in ScanTailor, your settings would otherwise be ignored.
spreadsplug.scantailor: Opening ScanTailor GUI for manual adjustment
spreadsplug.scantailor: Generating output images from ScanTailor configuration.
spreadsplug.scantailor: Generating output...
spreadsplug.scantailor: Launching those subprocesses!
spreadsplug.tesseract: Performing OCR%
spreadsplug.tesseract: Language is "equ"
spreadsplug.tesseract: [u'/usr/bin/tesseract', u'spread-test/data/done/002_rotated.tif', u'/tmp/tess-outGj6kE1/002_rotated', u'-l', u'equ', u'hocr']
spreadsplug.tesseract: [u'/usr/bin/tesseract', u'spread-test/data/done/003_rotated.tif', u'/tmp/tess-outGj6kE1/003_rotated', u'-l', u'equ', u'hocr']
spreadsplug.tesseract: [u'/usr/bin/tesseract', u'spread-test/data/done/000_rotated.tif', u'/tmp/tess-outGj6kE1/000_rotated', u'-l', u'equ', u'hocr']
spreadsplug.tesseract: [u'/usr/bin/tesseract', u'spread-test/data/done/001_rotated.tif', u'/tmp/tess-outGj6kE1/001_rotated', u'-l', u'equ', u'hocr']
bagit: Adding path spread-test/data/done to payload
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path spread-test/pagemeta.json to payload
Workflow: Done with postprocessing!
=================
 Generating output
=================
Workflow: Initializing workflow spread-test
bagit: Adding path /home/zev/spread-test/bag-info.txt to payload
bagit: Adding path spread-test/config.yml to payload
Workflow: Generating output files...%
Workflow: Running 'output' hooks ] 0%
spreadsplug.djvubind: Assembling DJVU.
spreadsplug.djvubind: Running djvubind /tmp/tmpu9fUEc --no-ocr
spreads encountered an error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line 321, in main
    run()
  File "/usr/local/lib/python2.7/dist-packages/spreads/main.py", line 308, in run
    args.subcommand(config)
  File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 398, in wizard
    output(config)
  File "/usr/local/lib/python2.7/dist-packages/spreads/cli.py", line 376, in output
    workflow.output()
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 985, in output
    self.table_of_contents)
  File "/usr/local/lib/python2.7/dist-packages/spreads/workflow.py", line 833, in _run_hook
    getattr(plug, hook_name)(*args)
  File "/usr/local/lib/python2.7/dist-packages/spreadsplug/djvubind.py", line 75, in output
    os.rename("book.djvu", unicode(djvu_file))
OSError: [Errno 2] No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant