Menu

jpegtran issue on Mac

akahige
2014-07-03
2017-04-26
  • akahige

    akahige - 2014-07-03

    Just installed Python 3.4.1 on Mac OS 10.9.3. Running dezoomify 1.3, I get the following batch of errors in the terminal:

    ERROR: jpegtran does not have the '-drop' feature. Either use the jpegtran supplied with Dezoomify or get it from http://jpegclub.org/jpegtran/ section "3. Lossless crop 'n' drop (cut & paste)" to fix the problem.
    Traceback (most recent call last):
      File "dezoomify.py", line 181, in __init__
        subproc.kill()
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1690, in kill
        self.send_signal(signal.SIGKILL)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1680, in send_signal
        os.kill(self.pid, sig)
    ProcessLookupError: [Errno 3] No such process
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "dezoomify.py", line 666, in <module>
        main()
      File "dezoomify.py", line 86, in main
        UntilerDezoomify(args)
      File "dezoomify.py", line 184, in __init__
        subproc.kill()
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1690, in kill
        self.send_signal(signal.SIGKILL)
      File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1680, in send_signal
        os.kill(self.pid, sig)
    ProcessLookupError: [Errno 3] No such process
    

    The only thing that I had to do to make dezoomify work was to change the line terminators from CRLF to LF, otherwise, everything is right out of the archive.

    Help!

     

    Last edit: akahige 2014-07-03
  • Martin Valgur

    Martin Valgur - 2014-11-19

    None of the developers have access to Mac OS currently, so Dezoomify has not really been tested on Macs. I do intend to do some testing on Mac OS at some point as soon as I get it set up on a virtual machine.

    Thanks for letting me know of the CRLF issue, though! It is quite likely that the provided jpegtran executable simply does not work on Mac OS. Could you perhaps run just the jpegtran alone (execute ./jpegtran in dezoomify directory) and tell me about the results?

    An option that might work on Macs right now is to use the jpegtran-less (and slightly older) alternative version of Dezoomify:
    https://sourceforge.net/p/dezoomify/code/ci/pillow/tarball
    You need to install the Pillow Python lib for this to work (see http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation).

     

    Last edit: Martin Valgur 2014-11-19
  • J.M. Schomburg

    J.M. Schomburg - 2017-04-26

    I'm on mac, too, and it wasn't working for me, either.

    I re-compiled jpegtran from scratch using the -drop and -crop patches... just replace the existing in-dezoomify-folder jpegtran executable with this one and it should work fine (it does for me, now). Cheers, and thanks, Martin.

     

    Last edit: J.M. Schomburg 2017-04-26

Anonymous
Anonymous

Add attachments
Cancel