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

Failed to open file “/usr/local/share/ui/preferenceDialog.ui” #129

Closed
dodona2 opened this issue Jun 22, 2020 · 5 comments
Closed

Failed to open file “/usr/local/share/ui/preferenceDialog.ui” #129

dodona2 opened this issue Jun 22, 2020 · 5 comments

Comments

@dodona2
Copy link

dodona2 commented Jun 22, 2020

gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/usr/local/share/ui/preferenceDialog.ui”: No such file or directory (4)

@cydanil
Copy link
Collaborator

cydanil commented Jun 22, 2020

Thanks for reporting this issue! :)

This issue arises when Gourmet is installed in place, and not in edit mode (ie. pip install . as opposed to pip install -e .).
We hadn't caught this issue, as in the CI, Gourmet is installed in edit mode.

It is due to the setup misusing relative paths (the files should be placed within the Gourmet installation folder).
As far as I know @kirienko is looking into it, see issue #107

Once the issue is resolved, we should consider doing some lightweight automated GUI testing with Dogtail on the build runner.

@cydanil cydanil closed this as completed Jun 22, 2020
@dodona2
Copy link
Author

dodona2 commented Jun 22, 2020

python setup.py install fails wherever -e is places as well as pip install -e gourmet

@dodona2
Copy link
Author

dodona2 commented Jun 22, 2020

dnf install gourmet fails on fedora with:
No match for argument: gourmet
Error: Unable to find a match: gourmet
guess RH removed it (it was available in 31) because of the mentioned problem.

@dodona2
Copy link
Author

dodona2 commented Jun 22, 2020

after a git puöö 'python setup.py install' installs. However:
/usr/local/bin/gourmet
-->
elib.intl failed to load.
IF YOU HAVE TROUBLE WITH TRANSLATIONS, MAKE SURE YOU HAVE THIS LIBRARY INSTALLED.
args = Namespace(db_url='', debug=None, debug_file='', gourmetdir='', html_plugin_dir='', thread_debug=False, thread_debug_interval=5.0, threads=False, time=False)
elib.intl failed to load.
IF YOU HAVE TROUBLE WITH TRANSLATIONS, MAKE SURE YOU HAVE THIS LIBRARY INSTALLED.
Traceback (most recent call last):
File "/usr/local/bin/gourmet", line 481, in
from gourmet import GourmetRecipeManager
File "/usr/local/lib/python3.8/site-packages/gourmet/GourmetRecipeManager.py", line 13, in
from . import batchEditor
File "/usr/local/lib/python3.8/site-packages/gourmet/batchEditor.py", line 3, in
from . import gglobals
File "/usr/local/lib/python3.8/site-packages/gourmet/gglobals.py", line 141, in
from .gtk_extras import dialog_extras
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 779, in exec_module
File "", line 915, in get_code
File "", line 972, in get_data
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.8/site-packages/gourmet/gtk_extras/dialog_extras.py'

@maweki
Copy link
Collaborator

maweki commented Jun 22, 2020

guess RH removed it (it was available in 31) because of the mentioned problem.

no, it was removed because no python2 application is allowed in the standard repo

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

No branches or pull requests

3 participants