前提・実現したいこと
PythonのReportlabでEPSを読み込む。
発生している問題・エラーメッセージ
画像が存在しているにも関わらず、
EPSが読み込めない。
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1747, in resize
self.load()
File "/usr/lib64/python2.7/site-packages/PIL/EpsImagePlugin.py", line 337, in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
File "/usr/lib64/python2.7/site-packages/PIL/EpsImagePlugin.py", line 143, in Ghostscript
subprocess.check_call(command, stdin=devnull, stdout=devnull)
File "/usr/lib64/python2.7/subprocess.py", line 537, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
エラーメッセージ
### 該当のソースコード hogehoge = 'パス' IMG = Image.open(hogehoge) IMG_re = IMG.resize((1000, 1000)) #ここで落ちる ### 試したこと ### 補足情報(FW/ツールのバージョンなど) CentOS Linux release 7.4.1708 Python 2.7.5 Pillow==5.1.0 reportlab==3.4.0
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/23 07:07