#36448 closed defect (fixed)
MyPaint doesn't run anymore.
Reported by: | neukomp@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | py-gtk |
Description
I tried to run MyPaint again today. I haven't needed it for some months.
It wouldn't start. So I tried if from the command line and got this error string:
I'm not sure if this a MyPaint, pygtk or python error.
[mypaint builtin python 2.6 json support confpath = /Users/user/.mypaint/ 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 following versions of Python installed. They were installed as they are dependencies not because I chose them specifically.
py26-cairo @1.8.10_2 (active) py26-crypto @2.6_0 (active) py26-curl @7.19.0_0 (active) py26-distribute @0.6.28_0 (active) py26-django @1.4.1_0 (active) py26-gobject @2.26.0_3 (active) py26-gtk @2.22.0_2 (active) py26-nose @1.1.2_2 (active) py26-numpy @1.6.2_0 (active) py26-openssl @0.10_1 (active) py26-pil @1.1.7_4 (active) py26-py @1.1.1_0 (active) py26-tkinter @2.6.8_0 (active) py27-cairo @1.8.10_2 (active) py27-distribute @0.6.28_0 (active) py27-gobject @2.26.0_3 (active) py27-gtk @2.22.0_2+x11 (active) py27-libxml2 @2.8.0_0 (active) py27-nose @1.1.2_2 (active) py27-numpy @1.6.2_0 (active) py27-py @1.1.1_0 (active) python26 @2.6.8_0 (active) python27 @2.7.3_0 (active) python_select @0.3_1 (active)
I don't know what to do to get MyPaint to work again.
Change History (4)
comment:1 Changed 12 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:2 follow-up: 3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mcalhoun@… added |
---|---|
Port: | py-gtk added; MyPaint pygtk removed |
Resolution: | → fixed |
Status: | new → closed |
Replying to ryandesign@…:
So we just need to add a py-numpy dependency to py-gtk and rebuild. Done in r.
Forgot to paste in the revision number! Done in r98367.
comment:4 Changed 12 years ago by neukomp@…
Thanks. It's working again!!!
You guys are amazing.
Thanks again.
Note: See
TracTickets for help on using
tickets.
Replying to neukomp@…:
When Googling this error I found this helpful page which made it clear that this will happen if py-gtk is compiled without py-numpy installed, and I can verify that on my system. So we just need to add a py-numpy dependency to py-gtk and rebuild. Done in r. Wait 30 minutes, then run "sudo port selfupdate" and "sudo port upgrade outdated" as usual.