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

Remove custom python override #5

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Remove custom python override #5

merged 1 commit into from
Jan 2, 2024

Conversation

nbdd0121
Copy link
Collaborator

@nbdd0121 nbdd0121 commented Jan 2, 2024

It turns out the python override is fixing the wrong problem. All module not found issue comes from the fact that PATH is overriden and wrong python3 binary is being used when a program is called from fusesoc.

The change to PATH is caused by the python program wrapper, but in this case it's not necessary for fusesoc. Simply stopping wrapping fusesoc is enough to fix the issue.

It turns out the python override is fixing the wrong problem. All module
not found issue comes from the fact that `PATH` is overriden and wrong
python3 binary is being used when a program is called from fusesoc.

The change to `PATH` is caused by the python program wrapper, but in
this case it's not necessary for fusesoc. Simply stopping wrapping
fusesoc is enough to fix the issue.
Copy link
Contributor

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A much nicer fix. Thanks for working this out @nbdd0121 !

@hcallahan-lowrisc hcallahan-lowrisc merged commit ffe3a76 into main Jan 2, 2024
3 checks passed
@hcallahan-lowrisc
Copy link
Contributor

This fix seems a bit subtle to me, so just wanted to leave some related items here about it.
This fix was also separately used here : qmk/qmk_firmware#12855 (comment)
The original override came from here : charlottia/hdx#1
Possibly related upstream issue : NixOS/nixpkgs#23676

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

Successfully merging this pull request may close these issues.

2 participants