Solfege fails to start #12324

Closed
terhorst opened this Issue May 19, 2012 · 5 comments

Comments

Projects
None yet
3 participants

I am using Homebrew versions of PyGTK, GTK+, (Py)Cairo, etc. Looks to be a problem with one of them not recognizing SVG.

Traceback (most recent call last):
  File "/usr/local/share/solfege/solfege/startup.py", line 159, in start_gui
    solfege.win = w = MainWin(options, datadir)
  File "/usr/local/share/solfege/solfege/mainwin.py", line 119, in __init__
    stock.SolfegeIconFactory(self, datadir)
  File "/usr/local/share/solfege/solfege/stock.py", line 71, in __init__
    self.add_icons(d)
  File "/usr/local/share/solfege/solfege/stock.py", line 33, in add_icons
    iconset = gtk.IconSet(gtk.gdk.pixbuf_new_from_file(os.path.join(self.datadir, filename)))
glib.GError: Couldn't recognize the image file format for file '/usr/local/share/solfege/graphics/solfege.svg'
Contributor

adamv commented Jun 29, 2012

Not sure what to say, sorry.

adamv closed this Jun 29, 2012

Contributor

2bits commented Jun 29, 2012

Did you try installing libsvg before you built cairo, pixman, and the rest? Because libsvg comes from the same developer, it likely integrates well. It's worth mentioning that our current version of cairo-1.10.2 is a bit old, and we are about to pull the trigger on cairo-1.12.2. There is still a pull request for XQuartz that has to go through first, and cairo is complicated to update because different OSes have completely different needs for it. But Jack has had this on his plate for a couple of months now, and I believe he has it sorted. Let us know how it goes, because solfege seems like a good addition to Homebrew.

Contributor

2bits commented Aug 12, 2012

@terhorst I finally got to the point where I can reproduce your error. I'm not sure which program is choking on the svg file, but I installed libsvg and that didn't help. Trying librsvg now.

Contributor

2bits commented Aug 12, 2012

I installed librsvg but that didn't fix it. This issue, however, did: #13786

What an obscure fix, thanks!

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.