12-13-2017, 08:42 PM
(12-13-2017, 04:00 PM)look Wrote: Hi
not enough information online - so i ask it here.
the issue:
i have a .py script that run fine on gimp.
when trying to compile it with "-m compileall" - i get an error:
#########################################
Error processing line 3 of c:\Program Files\GIMP 2\Python\lib\site-packages\pygtk.pth:
Traceback (most recent call last):
File "c:\Program Files\GIMP 2\Python\lib\site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
ImportError: No module named runtime
Remainder of file ignored
Compiling myscript.py ...
#################################
the compile produce a .pyc file, but when gimp trying to load it - it crash with similar error or
"runtime" module missing...
I was trying to compile other gimp python scripts - with same result.
i remember that in ubuntu i tried it once , few months ago, and it was fine.
can someone help with this issue?
On Linux, /usr/lib/python2.7/dist-packages/pygtk.pth contains
Code:
gtk-2.0
So, no line 3, no import...
What happens if you rename the file to "pygtk.pth.disabled"?
What are you trying to achieve by compiling your Python?