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

On Apr 27, 2009, at 3:13 AM, pierre brindel wrote:

> Hi all ! I finally post, because i can't make it !
> I tried to get ipymel working on windows xp 32b  for maya 2008.
>
> After multiples tries, raising error messages. I limited the import  
> of IPython, just after mayapy.
> getting the same message as before :
>
> F:\python\mayaScripting>mayapy
> Python 2.5.1 (r251:54863, Jun  5 2007, 22:56:07) [MSC v.1400 32 bit  
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import IPython
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Python25\Lib\site-packages\IPython\__init__.py", line 57,  
> in <module>
>     __import__(name,glob,loc,[])
>   File "C:\Python25\Lib\site-packages\IPython\ipstruct.py", line 22,  
> in <module>
>     from IPython.genutils import list2dict2
>   File "C:\Python25\Lib\site-packages\IPython\genutils.py", line 54,  
> in <module>
>     from IPython import DPyGetOpt, platutils
>   File "C:\Python25\Lib\site-packages\IPython\platutils.py", line  
> 29, in <module>
>     from platutils_win32 import *
>   File "C:\Python25\Lib\site-packages\IPython\platutils_win32.py",  
> line 28, in <module>
>     import ctypes
>   File "C:\Python25\Lib\ctypes\__init__.py", line 20, in <module>
>     raise Exception, ("Version number mismatch", __version__,  
> _ctypes_version)
> Exception: ('Version number mismatch', '1.0.1', '1.0.2')
> >>>_
>
> I can have IPython working on a python console. but can't get both  
> working. Any idea about those version number ?
>
> p.
>
> -- 
> ------------------------------------
> [email protected]
> ------------------------------------
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to