Modify

Opened 14 years ago

Closed 14 years ago

#8155 closed defect (worksforme)

Plugin not loading - Can't import "ImportError: No module named PIL

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?

Attachments (0)

Change History (2)

comment:1 Changed 14 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 14 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christophe de Vienne.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.