pillow - AttributeError: 'module' object has no attribute 'Number' -


not sure causing this...

i running python 3.4.3 using "pillow-3.3.0.win32-py34.exe" installation file.

upon import image with

from pil import image 

i try set "a.jpg" image using

img = image.open("a.jpg") 

however error,

>>> img = image.open("a.jpg") traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "c:\python34\lib\site-packages\pil\image.py", line 2289, in open     preinit()   file "c:\python34\lib\site-packages\pil\image.py", line 365, in preinit     pil import jpegimageplugin   file "c:\python34\lib\site-packages\pil\jpegimageplugin.py", line 40, in <modu le>     pil import image, imagefile, tiffimageplugin, _binary   file "c:\python34\lib\site-packages\pil\tiffimageplugin.py", line 50, in <modu le>     fractions import fraction   file "c:\python34\lib\fractions.py", line 6, in <module>     decimal import decimal   file "c:\python34\lib\decimal.py", line 3855, in <module>     _numbers.number.register(decimal) attributeerror: 'module' object has no attribute 'number' 

might not related pillow, still appreciate help!

is there file called numbers.py in current working directory?

that reason of problem, because it'd prevent import of standard library module numbers.

(suggestion here.)


Comments