Changed audio.* Image* imports
so that they no longer import from PIL explicitly. This is due to explicit PIL.Image* imports failing on a Ubuntu machine within virtualenv. PIL is a mystery I have yet to find the energy to unravel. The 'implicit' approach works both for the affected machine and my local machine and I've seen it more often out in the wild, so I'm assuming it is the right way.
This commit is contained in:
parent
0308958b2d
commit
352a180765
@ -20,7 +20,7 @@
|
|||||||
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
|
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
|
||||||
# 2012, Joar Wandborg <first name at last name dot se>
|
# 2012, Joar Wandborg <first name at last name dot se>
|
||||||
|
|
||||||
from PIL import Image, ImageDraw, ImageColor #@UnresolvedImport
|
import Image, ImageDraw, ImageColor #@UnresolvedImport
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import math
|
import math
|
||||||
import numpy
|
import numpy
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import pdb
|
import pdb
|
||||||
import logging
|
import logging
|
||||||
from PIL import Image
|
import Image
|
||||||
|
|
||||||
from mediagoblin.processing import BadMediaFail
|
from mediagoblin.processing import BadMediaFail
|
||||||
from mediagoblin.media_types.audio import audioprocessing
|
from mediagoblin.media_types.audio import audioprocessing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user