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

Gramps XML import fails due to media path #521

Open
DavidMStraub opened this issue Jul 10, 2024 · 1 comment
Open

Gramps XML import fails due to media path #521

DavidMStraub opened this issue Jul 10, 2024 · 1 comment

Comments

@DavidMStraub
Copy link
Member

werkzeug.exceptions.HTTPException: 500 Internal Server Error: Could not change media path
The opened file has media path /home/XXX/XXX/, which conflicts with the media path of the Family Tree you import into. The original media path has been retained. Copy the files to a correct directory or change the media path in the Preferences.

It works if I removed the <mediapath> tag in the XML.

@DavidMStraub DavidMStraub added the bug Something isn't working label Jul 10, 2024
@DavidMStraub DavidMStraub removed the bug Something isn't working label Nov 28, 2024
@DavidMStraub DavidMStraub moved this to High Priority in Gramps Web Roadmap Dec 14, 2024
@DavidMStraub
Copy link
Member Author

I'm not sure how to fix this.

The cleanest option is to make setting the media path optional in Gramps core, but that will take long to propagate.

Another option is to modify the file programmatically before importing it, but that seems like a terrible hack.

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

No branches or pull requests

1 participant