Skip to content

BF: Re-add distro as a runtime dependency for linux & remove deprecated function.#6686

Merged
peircej merged 1 commit into
psychopy:devfrom
aforren1:bf-distro
Jul 9, 2024
Merged

BF: Re-add distro as a runtime dependency for linux & remove deprecated function.#6686
peircej merged 1 commit into
psychopy:devfrom
aforren1:bf-distro

Conversation

@aforren1
Copy link
Copy Markdown
Contributor

@aforren1 aforren1 commented Jul 8, 2024

I noticed a "ModuleNotFoundError: No module named 'distro'" in the app log, and it looks like distro was not specified as a runtime dependency when switching to pdm?

It looks like distro.linux_distribution() has been deprecated since ~2021, so replaced those calls with something functionally similar. The main difference is that the original function returned a prettier codename (e.g. "Focal Fossa" instead of "focal"), but as far as I can tell that shouldn't have practical impacts?

…ed function.

I noticed a "ModuleNotFoundError: No module named 'distro'" in the app log, and
it looks like distro was not specified as a runtime dependency when switching
to pdm?

It looks like distro.linux_distribution() has been deprecated since ~2021,
so replaced those calls with something functionally similar. The main
difference is that the original function returned a prettier codename
(e.g. "Focal Fossa" instead of "focal"), but as far as I can tell that
shouldn't have practical impacts?
@peircej peircej merged commit 63c2210 into psychopy:dev Jul 9, 2024
@peircej
Copy link
Copy Markdown
Member

peircej commented Jul 9, 2024

Thanks. Sounds good. Tests are failing for a different reason that I'm working on 😁

@peircej peircej added the 🐞 bug Issue describes a bug (crash or error) or undefined behavior. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants