Closed deshipu closed 5 years ago
What version of Rust are you using? Could you try using Rust nightly and report back if you face the same issue?
This is almost certainly due to using a Rust that is too old. Apparently try_from
requires Rust 1.34. PyOxidizer's docs may be wrong about version requirements. And PyOxidizer should probably verify the Rust version before attempting to invoke it, as this failure mode is unpleasant and confusing to people who don't know Rust.
$ rustc --version
rustc 1.32.0
How do I use the nightly? I'm very much not familiar with Rust, mostly a Python developer, sorry. I saw that "--explain" for that error recommends using "rustup" command, but it doesn't exist on my system and I can't find it in the repos.
It seems you installed rust from a package manager. The recommended way to install Rust is to use rustup. As such, I'd recommend you uninstall Rust using the package manager and then follow the instructions to install rustup. As @indygreg mentioned, you don't need nightly after all, so installing rustup should be enough.
Oh, that's a shame. I'd rather not clobber my system by piping unknown scripts to a shell. I guess I will have to wait. Thank you for your help.
Isn't rustup an official Rust tool, maintained by the rust core team itself?
I ran into a similar issue. Perhaps make a note in the docs that Rust must be installed following Rust's documentation not using a package manager like scoop
on Windows?
The referenced commits address the feedback I received in this issue.
I removed a TryFrom
and reduced the minimum Rust version required from 1.34 to 1.33. I also updated the documentation on how to install Rust. Finally, pyoxidizer build
(and anything that calls the functionality under the hood) now verifies the minimum Rust version requirements before invoking Rust.
Hi, I can't even express how happy I am to see this project! I immediately had to give it a try. I compiled the pyoxidizer itself without problems (just had to install
libssl-dev
), but when I try to compile an app, I get this (I had to remove the modules lists, as it was too long to post):