Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error finding preferenceDialog.ui after recent commit #899

Closed
dyoung418 opened this issue Feb 23, 2018 · 0 comments · Fixed by #1010
Closed

Error finding preferenceDialog.ui after recent commit #899

dyoung418 opened this issue Feb 23, 2018 · 0 comments · Fixed by #1010

Comments

@dyoung418
Copy link
Collaborator

After installing gourmet from the the latest source today under linux mint, I get the following error when I try to run the program:

  File "/usr/local/bin/gourmet", line 17, in <module>
    GourmetRecipeManager.startGUI()
  File "/usr/local/lib/python2.7/dist-packages/gourmet/GourmetRecipeManager.py", line 696, in startGUI
    r=RecGui(splash_label=splash.label)
  File "/usr/local/lib/python2.7/dist-packages/gourmet/GourmetRecipeManager.py", line 906, in __init__
    GourmetApplication.__init__(self, splash_label=splash_label)
  File "/usr/local/lib/python2.7/dist-packages/gourmet/GourmetRecipeManager.py", line 76, in __init__
    self.setup_prefs() # Setup preferences...
  File "/usr/local/lib/python2.7/dist-packages/gourmet/GourmetRecipeManager.py", line 98, in setup_prefs
    buttons={'clear_remembered_optional_button':lambda *args: self.forget_remembered_optional_ingredients()}
  File "/usr/local/lib/python2.7/dist-packages/gourmet/prefsGui.py", line 60, in __init__
    self.ui.add_from_file(uifile)
glib.GError: Failed to open file '/usr/local/share/ui/preferenceDialog.ui': No such file or directory

The installation had placed preferenceDialog.ui in /usr/local/share/gourmet/ui, not /usr/local/share/ui. Hence the program couldn't find it.

I'm guessing this was caused by commit dd5eae26ea134da578e8c889c2fa35314f92511c which changed the location of the ui files in settings.py. However, in the limited time I've had to trace this, I'm still unsure how settings.py and setup.py work together and so I don't have a fix to upload. Can anyone who is more familiar with setup.py take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant