Users should be able to specify PYTHONPATH for plugins.

Bug #76038 reported by dev-zero
2
Affects Status Importance Assigned to Milestone
PIDA
Won't Fix
Wishlist
Unassigned

Bug Description

In the log-file I get:

2006-12-16 20:27:03,494 WARNING services.service_manager:86 failed to import services.meldembed = pida.services.meldembed:Service
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/pida/core/services.py", line 72, in __load_entrypoint
    cls = entrypoint.load()
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.4/site-packages/pida/services/meldembed.py", line 49, in ?
    import meld.paths as paths
ImportError: No module named meld.paths
[...]

... but meld is installed. The problem is that meld's py-files are installed in /usr/lib (on Gentoo) instead of /usr/lib/python-2.4/site-packages and /usr/lib isn't in PYTHONPATH.
Therefore I would suggest a variable in the configuration-file where someone can add arbitrary directories which are being added to sys.path during the next startup.

Revision history for this message
Tiago Cogumbreiro (cogumbreiro) wrote :

Ali, how do you think this should be attended? Do you want to add the possibility to define an extra PYTHONPATH system wide loaded before the plugins?

Changed in pida:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Revision history for this message
Ali Afshar (aafshar) wrote :

That is probably the best way, but it does need some knowledge and clue from the user. Incidentally Meld support is rather broken and probably disabled by now.

Perhaps we need a heavily modified version of Meld builtin to PIDA. (ok don't hate me for ideas like this).

Changed in pida:
importance: Low → Wishlist
Ali Afshar (aafshar)
Changed in pida:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.