Forums

'No module named _binary'

My homepage now shows "ImportError at /" with the message "No module named _binary"

I have made no changes at all and the site was working fine last I checked it (think it was yesterday or the day before.)

What's happened?

Hi,

I've got the same problem. My app doesn't work anymore. I'm in touch with PythonAnywhere support : PIL have been upgraded 2 days ago ...

Native PIL packaging seems to be a big mess. There is a second PIL subdirectory in the main PIL directory. But the content is not exactly the same (_binary is no present in this second PIL directory ...).

I tried many import style, no success ...

My original import:

from PIL import Image, ImageDraw, ImageFont

=> No module named _binary

Another try:

import Image
from PIL import ImageDraw, ImageFont

=> raise KeyError(ext) # unknown extension (for PNG, JPG ...)

:-((

N.

Thanks for reporting that. It looks like we're going to have to take a serious look at PIL on Monday, and possibly revert it to the old version.