Menu

Does not work with Portable Python

Lani
2014-02-03
2014-11-19
  • Lani

    Lani - 2014-02-03

    I am currently using Portable Python 3.2.5.1 and whenever I give it a try, it claims to not have the attribute DEVNULL.

    So I changed those lines to read:

        null = open(os.devnull, 'w')
        subproc = subprocess.Popen([self.jpegtran, '--help'], stdout=null, stderr=subprocess.PIPE)
    

    However, though that appeared to fix that problem, I now get "Error: Communication with JpegTran has failed and the process was killed." no matter what I do.

    I have verified that the previous PIL version works (though obviously with an earlier Python Portable), but it only downloads half of the image for some reason and so I cannot use it.

     

    Last edit: Lani 2014-02-03
  • Martin Valgur

    Martin Valgur - 2014-11-19

    Sorry for the late reply. The problem seems to be the Python version. Dezoomify requires Python version >= 3.3.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB