forked from gramps-project/gramps
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ MANIFEST | |
build/ | ||
dist/ | ||
|
||
# Setuptools | ||
gramps.egg-info/ | ||
|
||
# Gramps | ||
data/tips.xml | ||
data/holidays.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this one, wheels are the way to go π
Found your test on pypi:
pip install -i https://testpypi.python.org/pypi gramps
Need to install:
But when I run:
python -c "from gramps.grampsapp import main; main()"
ResourcePath.ERROR: Unable to determine resource path
Not sure what Gramps is asking for? Any pointers?
Also get the same from python:
For dir(gramps) I was expecting to see cli, gen, gui at least?
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not so far :(
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The resource path specifies where Gramps can find its resource files. It is written to the gramps/gen/utils/resource-path file during installation. This file is not present if Gramps is run from a git tree in development.
It can also be specified using the GRAMPS_RESOURCES environment variable. This is used in Mac bundles.
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nick-Hall I don't believe you actually tried installing this as per @enlite93 's comment from the wheel which is like the python-egg?
I just tried it in an empty Linux VM and pip installed and I get the error mentioned, (so Gramps is not being run from a git tree development by me but from the pip wheel install), my guess is that @sam-m888 is right the Gramps needs to be told where its resources live without having to use the GRAMPS_RESOURCES environment variable HTH?
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daleathan Sorry, I don't have time to investigate this myself.
Did the installation create the gramps/gen/utils/resource-path file? What are its contents?
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Linux Debian 8 no gramps/gen/utils/resource-path file was created
And with Win 10 the gramps/gen/utils/resource-path file was created but is a zero byte file. Also if you type gramps at the command line it is not recognised as no shortcut is installed like on Linux, but you can start python and import gramps
@Nick-Hall Wasn't aware of this configuration file; could only find it mentioned by youself.
@sam-m888 Hope this helps you?
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no resource-path file in the wheel that Sam uploaded. The path is only known at installation, not when the wheel is created. Running a post-install script is not possible with wheels, so it looks like we need another approach. I suggest that we look for the resources in the standard places at run-time.
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related discussion of gramps-dev
https://sourceforge.net/p/gramps/mailman/message/36029538/
https://github.com/pypa/pip/issues
1bd29ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should discuss this on the list again. disutils2 is now dead. setuptools/pip/wheels appears to be the way forward.