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

Make subprocess inherit environment variables #1638

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Make subprocess inherit environment variables #1638

merged 1 commit into from
Feb 8, 2024

Conversation

TomaSajt
Copy link
Contributor

I was trying to build the latest beta versions of the package, but I got an error coming from the merge(...) function in setup.py

error: [Errno 2] No such file or directory: 'msgfmt'

It turns out, a call to msgfmt was setting an environment variable without inheriting the current environment variables. Because of this, the PATH environment variable got unset for that subprocess, thus not being able to find msgfmt.

Luckily, I found a quick fix for it.

@Nick-Hall Nick-Hall added the bug label Jan 29, 2024
@Nick-Hall Nick-Hall changed the base branch from master to maintenance/gramps52 February 8, 2024 21:35
The PATH environment variable got unset for that subprocess,
thus not being able to find msgfmt.
@Nick-Hall
Copy link
Member

Rebased onto gramps52.

@Nick-Hall Nick-Hall merged commit d6a9b40 into gramps-project:maintenance/gramps52 Feb 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants