Modify

Opened 4 years ago

Closed 4 years ago

#8155 closed defect (worksforme)

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

Reported by: miguel@… Owned by: cdevienne
Priority: normal Component: PageToOdtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

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 4 years ago by wild_oscar

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 4 years ago by rjollos

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cdevienne. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.