PIL import
Posted: Mon Sep 05, 2011 11:30 am
Hi all,
I change this in the sourcecode to get it to work on my gentoo Linux, perhaps it is also in some other LINUX Distris a problem.
At gentoo the Image import works only as from PIL import Image
So I change at file mv3d/client/view/visual.py:
and so on.
bye,
Juergen
I change this in the sourcecode to get it to work on my gentoo Linux, perhaps it is also in some other LINUX Distris a problem.
At gentoo the Image import works only as from PIL import Image
So I change at file mv3d/client/view/visual.py:
- Code: Select all
try:
from Image import fromstring, FLIP_TOP_BOTTOM
except ImportError:
try:
from PIL.Image import fromstring, FLIP_TOP_BOTTOM
except:
fromstring = None
FLIP_TOP_BOTTOM = None
print "WARNING: PIL is not available!"
and so on.
bye,
Juergen