Opened 13 years ago

Closed 13 years ago

#8155 closed defect (worksforme)

Plugin not loading - Can't import "ImportError: No module named PIL — at Version 2

Reported by: Miguel Owned by: Christophe de Vienne
Priority: normal Component: PageToOdtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

I created the .egg from the source.

Installed with easy_install on a 0.11 Trac and added the component.

However, the environment log of Trac is showing:

2010-11-24 12:13:20,479 Trac[loader] ERROR: Skipping "odtexport.odtexport = odtexport.odtexport": (can't import "ImportError: No module named PIL")

Here are the contents of /usr/local/lib/python2.6/dist-packages/:

easy-install.pth                      OdtExportPlugin-0.2-py2.6.egg     setuptools.pth         TracAccountManager-0.2.1dev_r5836-py2.6.egg
Genshi-0.5.1-py2.6-linux-x86_64.egg   PIL-1.1.7-py2.6-linux-x86_64.egg  Trac-0.11.5-py2.6.egg  TracIncludeMacro-2.1-py2.6.egg

So there is a PIL file there...

Any idea how to solve this?

Change History (2)

comment:1 Changed 13 years ago by Miguel

On a follow-up:

I ignored having that egg and searched for a python-pil .deb package...there's actually a python-imaging one.

After installing that package the error disappeared.

I don't really know why the package is not being correctly put in python's path when it's in the .egg file, though.

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.