Python Can't Find Modules -
i'm running python script resizes , converts images jpg , rgb. script worked until upgraded computers hd , moved on time machine backup. when try run script can't find modules. image module (i use pillow).
traceback (most recent call last): file "processimgs.py", line 1, in <module> import os, sys, argparse, shutil, imgfunctions file "/web/script/python/img_processing/imgfunctions.py", line 1, in <module> import os, sys, image, shutil, re importerror: no module named image
i using homebrew manage modules, , "brew list" outputs following:
freetype graphicsmagick libpng libtool little-cms2 openssl pkg-config readline webp gdbm jpeg libtiff little-cms openjpeg pillow python sqlite
if run "pip list" get:
pillow (2.3.0) pip (1.5.4) setuptools (2.2) wsgiref (0.1.2)
if run "help(modules)" in python, image module isn't listed.
could python path isn't set correctly after move.
see here homebrew/python docs page , seems reinstall of homebrew may fix it.
Comments
Post a Comment