-
Notifications
You must be signed in to change notification settings - Fork 2
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
Possible to update python? #4
Comments
I would have to update the base image of it. Probably about time. |
Yeah, I was first trying to use the Nix deployment, but wasn't sure how to square the nix dev shell with a python venv, so switched back to the snap install. I'll try it again. |
So naively trying a complex install of a bunch of extra python modules (see litex_setup.py) into the nix dev shell doesn't work. No surprise as it seems Nix's whole aim is to prevent that type of thing... but a quick pass over Nix's python functionality documentation also doesn't look friendly to litex's "clone n build all the whl locally" approach either. Surprisingly, sourcing the a venv (via a script that also monkeys with PATH) does work on top of the nix dev shell, up to the same "no module" error running Now this looks a lot less like a python path / versioning issue, as all the nix paths are there... but that also seems to be the only reason python would fail to find a builtin module.
Anyway, all that's to say, maybe updating the snap core et al wont actually solve my troubles using openxc7 with litex. The toolchains all work with trivial verilog examples. Cheers. |
okay okay, last post. If I do a VERY bad thing and
Path of least resistance is to find a release of litex that uses 3.10 and use it with the nix-toolchain. |
Using a python venv in a nix devshell should work. |
@hansfbaier you may already be aware of this, but your snap install is straight up hardcoded into HEAD of Litex:
in a few places in this file |
Yes, but only if the environment variable is not set, and it is set in the nix toolchain. |
I'm trying to use the snap install with oss-cad-suite + litex environments and I think I'm hitting a 3.8 vs 3.11 issue with a script crashing:
Can the snap python version be updated to 3.11?
The text was updated successfully, but these errors were encountered: