hi
There is no point rebuilding MyPaint or trying different versions. It won't
work if your pygtk doesn't have numpy support. It's pygtk that you have to
replace or rebuild, or figure out how to make MyPaint actually use the right
version.
You can do the following test on commandline to check whether your pygtk has
numpy support:
martin ~$ python
Python 2.7.2+ (default, Jan 20 2012, 17:51:10)
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 3, 3)
>>> pixbuf.get_pixels_array()
array([[[ 64, 217, 130],
[ 1, 0, 0],
[ 0, 0, 0]],
[[106, 1, 0],
[106, 3, 0],
[101, 4, 0]],
[[100, 1, 0],
[100, 1, 0],
[131, 5, 0]]], dtype=uint8)
>>>
You can also try to start mypaint with a different python version (which may
end up using a different pygtk version) with "python2.6 /path/to/mypaint" or
similar.
Regards
Martin
On Sun, Mar 18, 2012 at 04:39:47PM -0700, C55inator wrote:
> Same problem with Mypaint developer version :(
>
> On Mar 18, 2012, at 11:39 AM, c55 inator <[email protected]> wrote:
>
> > Two days ago I was running a functional version of Mypaint 1.0, with
> > pressure support, by installing through Macports. Now, after updating and
> > reinstalling, it no longer works:
> >
> > Traceback (most recent call last):
> > File "/opt/local/bin/mypaint", line 176, in <module>
> > main.main(datapath, extradata, confpath)
> > File "/opt/local/share/mypaint/gui/main.py", line 72, in main
> > run()
> > File "/opt/local/share/mypaint/gui/main.py", line 47, in run
> > app = application.Application(datadir, extradata, options.config, args)
> > File "/opt/local/share/mypaint/gui/application.py", line 86, in __init__
> > self.doc = document.Document(self)
> > File "/opt/local/share/mypaint/gui/document.py", line 38, in __init__
> > self.tdw.neutral_background_pixbuf =
> > backgroundsurface.Background(pixbuf)
> > File "/opt/local/share/mypaint/lib/backgroundsurface.py", line 22, in
> > __init__
> > obj = helpers.gdkpixbuf2numpy(obj)
> > File "/opt/local/share/mypaint/lib/helpers.py", line 113, in
> > gdkpixbuf2numpy
> > arr = pixbuf.get_pixels_array()
> > RuntimeError: pygtk was not compiled with Numeric Python support
> >
> > I have protobuf-python27, py27-gtk, and py27-numpy installed, as well as
> > their py26 versions and all other listed MyPaint dependencies. I have
> > tried installing similar packages [gimp 2.6.12] via MacPorts and they have
> > worked normally. Everything has been updated. I have gone through the
> > entire process of deleting Macports and mypaint entirely, then
> > reinstalling, and I still get the same error.
> >
> > Any help? Is this an issue with my installation, with MacPorts, or with
> > Mypaint/one of its the dependencies? Should I expect this to be fixed
> > anytime soon? Most importantly, what can I downgrade in order to get a
> > functional MyPaint again?
> >
> > Any help/ideas are appreciated. I just started using Mypaint recently,
> > it's been a great improvement over GIMP/Alchemy in terms of sketching my
> > designs, and I'm hoping to use it again soon.
> >
> > -My Portfolio [If you're interested]
> _______________________________________________
> Mypaint-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/mypaint-discuss
--
Martin Renold
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss