Hi everybody,
I can't launch ipymel.
I put the pymel folder and maya folder of the zip in C:\mayaPymel
My version of Python is 2.5.1
In the folder C:\Program Files\Autodesk\Maya2009\Python\lib\site-
packages i put : IPython folder, pyreadline folder, readline.pyc,
readline.pyo, readline.py
path:
%MAYA_LOCATION%\bin;C:\mayaPymel\pymel\tools\bin;C:\PYTHON25\LIB;
%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:
\PROGRAM FILES\QUICKTIME\QTSYSTEM\;C:\Program Files\Panda Security
\Panda Antivirus Pro 2009
PYTHONPATH:
C:\Python25\Lib;C:\mayaPymel;D:\Rigging\workspace\fgRigTools\src;
MAYA_LOCATION:
C:\Program Files\Autodesk\Maya2009
In the console :
C:\Program Files\console2\bin\release>ipymel.bat
---------------------------------------------------------------------------
ValueError Python 2.5.1: C:\Program Files\Autodesk\Maya2009\bin
\mayapy.exe
Fri May 14 20:15:02
2010
A problem occured executing Python code. Here is the sequence of
function
calls leading up to the error, with the most recent (innermost) call
last.
C:\mayaPymel\pymel\tools\bin\ipymel in <module>()
19 [or simply IPython.Shell.IPShell().mainloop(1) ]
20
21 and IPython will be your working environment when you start
python. The
final
22 sys.exit() call will make python exit transparently when
IPython finishes, so
23 you don't have an extra prompt to get out of.
24
25 This is probably useful to developers who manage multiple
Python versions and
26 don't want to have correspondingly multiple IPython versions.
Note that
in
27 this mode, there is no way to pass IPython any command-line
options, as
those
28 are trapped first by Python itself.
29 """
30
31 import IPython.Shell
32
33 s = IPython.Shell.start()
---> 34 import pymel.tools.ipymel
global pymel.tools.ipymel = undefined
35 pymel.tools.ipymel.setup()
36 s.mainloop()
37
38
39
40
41
42
43
44
45
46
47
48
49
C:\Python25\Lib\site-packages\pymel\tools\ipymel.py in <module>()
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---> 48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
C:\mayaPymel\pymel\core\__init__.pyc in <module>()
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---> 40
global j = undefined
global oz = undefined
global t = undefined
global a = undefined
global i = undefined
global d = undefined
global o = undefined
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
C:\mayaPymel\pymel\internal\startup.pyc in finalize()
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
--> 248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
C:\mayaPymel\pymel\internal\startup.pyc in initMEL()
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
--> 158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
C:\mayaPymel\pymel\mayautils.pyc in getUserPrefsDir()
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
--> 114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
C:\mayaPymel\pymel\mayautils.pyc in getMayaAppDir(versioned=True)
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---> 94
global Given = undefined
global a = undefined
global path = undefined
global list = undefined
global of = undefined
global paths = undefined
global recurses = undefined
global through = undefined
global directories = undefined
global appending = undefined
global to = undefined
global the = undefined
global MAYA_SCRIPT_PATH = undefined
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ValueError: invalid literal for int() with base 10: '32bit'
**********************************************************************
Oops, IPython crashed. We do our best to make it stable, but...
A crash report was automatically generated with the following
information:
- A verbatim copy of the crash traceback.
- A copy of your input history during this session.
- Data on your current IPython configuration.
It was left in the file named:
'C:\Documents and Settings\flogo\_ipython
\IPython_crash_report.txt'
If you can email this file to the developers, the information in it
will help
them in understanding and correcting the problem.
You can mail it to: Fernando Perez at [email protected]
with the subject 'IPython Crash Report'.
If you want to do it now, the following command will work (under
Unix):
mail -s 'IPython Crash Report' [email protected] < C:\Documents and
Settings\flogo\_ipython\IPython_crash_report.txt
To ensure accurate tracking of this issue, please file a report about
it at:
https://bugs.launchpad.net/ipython/+filebug
Press enter to exit:
pymel is not recognized. However pymel works fine in Maya.
and if i try to lauch mayapy and then import pymel, i get this :
C:\Program Files\console2\bin\release>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 pymel.core as pmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\site-packages\pymel\core\__init__.py",
line 40, in <module>
File "C:\Python25\Lib\site-packages\pymel\internal\startup.py",
line 248, in finalize
File "C:\Python25\Lib\site-packages\pymel\internal\startup.py",
line 158, in initMEL
File "C:\Python25\Lib\site-packages\pymel\mayautils.py", line
114, in getUserPrefsDir
File "C:\Python25\Lib\site-packages\pymel\mayautils.py", line
94, in getMayaAppDir
ValueError: invalid literal for int() with base 10: '32bit'
--
http://groups.google.com/group/python_inside_maya