The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4909286:
If QGis is based on Python 2.5, you should definitely not try to use Python 3.2 to access its libraries (Python 3.x is in no ways backward compatible to Python 2.x). So, before attempting to configure it within Eclipse, I'd advise to get it working in a shell so that you know which paths would need to be in the PYTHONPATH. I must say I'm not familiar with QGis, so, it'd be useful if you provide a dir of what's below the \Quantum GIS Wroclaw\ install (basically the directory structure, stating which directory contain __init__.py files and which directories contain other python files -- especially the ones you want to import). You can try starting a python interpreter in the command line then doing the import you want (i.e.: say import foo), then, add a folder you 'd expect to be in the PYTHONPATH -- in your case something as sys.path.append("\Program Archives\Quantum Gis Wroclaw\apps\qgis\python\plugins") and try to do the "import foo" again until you're able to find which should be the PATHS that are added to the PYTHONPATH. Note that on some programs, you can't really access its libraries from outside of the program, only when running inside it (because it needs an environment setup -- there's an ebook explaining how to setup for blender in PyDev: http://airplanes3d.net/pydev-000_e.xml so, it might be worth taking a look at it if QGIS itself has that limitation on its libraries). Cheers, Fabio ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users