chapgaga / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

PIL-2.3.0-6_py27 import error #729

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?

2.7.5.2

2. Which components have you installed (Python(x,y) installer:
componentpage):
    a. Have you selected the "Recommended" component selection?
    b. Have you selected the "Full" component selection?
c. Have you selected manually plugins in the component list?
Whatplugins?

a

3. Have you selected the option "Customize installation directories"?
a. Yes
b. No

b

4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?
a. default path
b. custom path, which one?

a

6. Have you installed Python(x,y):
    a. For "Current user only"
    b. For "All users"

b

7. What is your operating system?
a. Windows XP
b. Windows Vista
c. Windows 7
d. Windows 8

c

8. Is the operating system 64 bit?
a. Yes
b. No

a

9. When you installed Python(x,y), were you logged in as :
a. a regular user
b. an administrator of the machine

b

10. If you are using Windows Vista/7, have you installed Python(x,y):
a. simply by double-clicking on the installer
    b. by right-clicking on the installer and selecting "Run as an
administrator"

a

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
a. you didn't do anything, you installed Python(x,y) directly on your
machine without precaution
b. you uninstalled any previous Python distribution (including the
official .msi)
c. you cleaned the Windows registry by removing all Python-related keys
d. you cleaned the environment variables by removing all deprecated
entries

a

What steps will reproduce the problem?
1. pip install --upgrade pillow (I got gcc error)
2. download PIL-2.3.0-6_py27.exe and double-click to install
3. from PIL import Image then I got ImportError: No module named PIL

What is the expected output? What do you see instead?

PIL should import normally. somehow the folder name for PIL in site-package was 
'pil' not 'PIL'. So, from pil import Image worked. Manually changing folder 
name to capital solved the problem. I don't know my attempt to pip install was 
the cause or PIL-2.3.0-6_py27. But, pip should recover the original condition 
when failed. So, I believe that it's actually PIL-2.3.0-6_py27.exe side.

Please provide any additional information below.

Original issue reported on code.google.com by y1t2y...@gmail.com on 22 Apr 2014 at 2:03

GoogleCodeExporter commented 9 years ago
Updated XY plugins using pip is not supported and is strongly not recommended.

Original comment by grizzly.nyo on 1 May 2014 at 7:10

GoogleCodeExporter commented 9 years ago
thanks for having a look. let me just to clarify. pip screwed up the 
installation and that's why following XY plugin installation also failed?

Original comment by y1t2y...@gmail.com on 1 May 2014 at 7:22

GoogleCodeExporter commented 9 years ago
Pillow or PIL cannot be installed from source.

The xy package of PIL is actually Pillow (trying to avoid the noise). It is 
custom built and linked against the XY base_libraries DLLs.

Pip does not recover the previous state in any case.

Re-installing the xy package should be enought.

Original comment by grizzly.nyo on 5 May 2014 at 7:17