I re-installed python, 2.5.1 this time, i removed sitePackages from the PYTHONPATH and it's working like a charm !
Thank's a lot Chad. On 27 avr, 17:49, Chad Dombrova <[email protected]> wrote: > hey pierre, > > when using mayapy, you should avoid having C:\Python25\Lib\site- > packages on your PYTHONPATH or else you need to be very careful. I > suspect that the version of python you have at C:\Python25\Lib\site- > packages is different (probably 2.5.2? ) than maya's (2.5.1). > > at work we have many different versions of maya installed on linux: > > system python ( used by linux itself, we never mess with this ) > python 2.4.3 > python 2.5.1 > maya 8.5 + python 2.4.3 > maya 2008 + python 2.5.1 > maya 2009 + python 2.5.1 > > there are many different ways of dealing with PYTHONPATH, but one rule > of thumb is to never cross site-packages unless you are completely > sure that the two versions of python are the same (we've had issues > with PyQT where even the build numbers had to be the same ). so we > tend to install all compiled modules directly to the site-packages of > each python, and we put uncompiled modules at a central location on > our server and point all versions of python to it via PYTHONPATH. > even this latter strategy has problems, because the *.pyc fles must be > regenerated every time a different version of python accesses the > modules. > > so for now, try copying IPython and Readline over to your maya python > installation, and take C:\Python25\Lib\site-packages off of your > system PYTHONPATH. let me know how that goes. > > -chad > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
