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
When attempting to start a local copy (not installed with python setup.py install), paths are incorrect #867
Comments
Funny enough, this seems to be a regression in the last commit to that file, ff0db3f. |
@thinkle ^ |
^^ Run into the same trouble with the ui, reverted the commit for this change and everything works again. Additionally no plugins were found at my development install, there is a gourmet too much in the path, I thing this was introduced in commit a4a75d9. Hopefully this can be fixed soon, otherwise I am unable to develop. PATH: ['/home/sven/workspace/gourmet/bin', '/usr/lib/python2.7/dist-packages/gst-0.10', '../..', '/home/sven/workspace/gourmet/bin', '/home/sven/workspace/gourmet', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/local/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2', '/home/sven/workspace/gourmet/gourmet/../build/share/gourmet/plugins', '/home/sven/workspace/gourmet/gourmet/../gourmet/gourmet/plugins', '/home/sven/workspace/gourmet/gourmet/../gourmet/gourmet/plugins/import_export', '/home/sven/workspace/gourmet/gourmet/../build/share/gourmet/plugins/import_export'] |
The Head of Master has 3 run time breakages:Pull Request #910 1. The head of master fails to launch from source tree bin/ directoryfile: ./bin/gourmet Steps to reproduce issue: Clean install Gourmet on Ubuntu host. Build localized and plugin files within build/ directory Launch gourmet from source tree:
It appears that commit b865a1a to bin/gourmet* broke the execute path:
Resolution:
2. Plugin path has 1 too many 'gourmet/' in pathModule: ./gourmet/ggolbals.py Steps to reproduce issue: Launch gourmet from souce tree: Click on Settings --> Plugins No plugins are listed in Plugin dialog. Examine console log:
lib_dir path is incorrectly set to './gourmet/../gourmet/gourmet/' but should be './gourmet/../gourmet/' Resolution: Remove 'gourmet' from lib_dir path in ggolbals.py:
3. doc_dir path is brokenModule: ./gourmet/settings.py Steps to reproduce issue: Launch gourmet from souce tree: Click on Help --> About
Paths are set as follows:
It appears that committ a4a75d9 to gourmet/settings.py on 2 Jan 2016 introduced the breakage. doc_dir path is set to './gourmet/' but should be set to './' Resolution:
Verification: This fix sets the paths as follows:
|
Fixed broken source tree run time paths (ticket #867)
Attempting to start gourmet as per the directions in CODING.md, the following error is reached:
This seems to be because the UI directory thinks it's nested in the data directory which is not how the source code is structured. Changing gourmet/settings.py from
ui_base = os.path.join(data_dir, 'ui')
toui_base = os.path.join(base_dir, 'ui')
to seems to resolve the issue, but due to processing that thesetup.py
does, this may have downstream effects (hence why this does not have a PR attached).The text was updated successfully, but these errors were encountered: