brettcannon / python-launcher

Python launcher for Unix

Home Page:https://python-launcher.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile issue (error[E0658])

darrida opened this issue · comments

Hi there. I heard about this on PythonBytes the other day. Really enjoy the times they've had you on either that or Talk Python.

This tool sounds great. When working on Windows I have a batch script on my path that allows me to use pyv to create an environment, upgrade pip, install from requirements (or setup.py if it exists). I've really wanted something that would at least quickly activate an environment when using something like WSL, but never got around to looking into it.

I'm attempting to install this in Ubuntu-20.04 WSL2 (on Windows 10 Pro 19042.804). I've only used cargo a couple of times, but had just installed it fresh this time. Looks like cargo version 1.46.0.

Any thoughts?

(btw - thanks so much for all you do)

$ cargo install python-launcher
    Updating crates.io index
  Installing python-launcher v0.14.3
   Compiling libc v0.2.86
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.24
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling memchr v2.3.4
   Compiling bitflags v1.2.1
   Compiling getrandom v0.2.2
   Compiling smallvec v1.6.1
   Compiling scopeguard v1.1.0
   Compiling serde v1.0.123
   Compiling regex-syntax v0.6.22
   Compiling gimli v0.23.0
   Compiling unicode-segmentation v1.7.1
   Compiling adler v1.0.2
   Compiling serde_derive v1.0.123
   Compiling termcolor v1.1.2
   Compiling object v0.23.0
   Compiling rustc-demangle v0.1.18
   Compiling strum v0.20.0
   Compiling exitcode v1.1.2
   Compiling instant v0.1.9
   Compiling lock_api v0.4.2
   Compiling thread_local v1.0.1
   Compiling heck v0.3.2
   Compiling aho-corasick v0.7.15
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling miniz_oxide v0.4.4
   Compiling quote v1.0.9
   Compiling regex v1.4.3
   Compiling parking_lot_core v0.8.3
   Compiling signal-hook-registry v1.3.0
   Compiling mio v0.7.9
   Compiling time v0.1.43
   Compiling atty v0.2.14
   Compiling nix v0.19.1
   Compiling addr2line v0.14.1
   Compiling parking_lot v0.11.1
   Compiling signal-hook v0.1.17
   Compiling uuid v0.8.2
   Compiling os_type v2.2.0
   Compiling chrono v0.4.19
   Compiling crossterm v0.19.0
   Compiling backtrace v0.3.56
   Compiling stderrlog v0.5.1
   Compiling toml v0.5.8
   Compiling strum_macros v0.20.1
   Compiling comfy-table v2.1.0
   Compiling human-panic v1.0.3
   Compiling python-launcher v0.14.3
error[E0658]: use of unstable library feature 'bool_to_option'
   --> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/python-launcher-0.14.3/src/cli.rs:146:24
    |
146 |     venv_path.exists().then(|| {
    |                        ^^^^
    |
    = note: see issue #64260 <https://github.com/rust-lang/rust/issues/64260> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `python-launcher`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `python-launcher v0.14.3`, intermediate artifacts can be found at `/tmp/cargo-installEVaE2b`

Caused by:
  build failed

You're using an old version of Rust. Upgrade to Rust 1.50.0 and it will compile fine.

And thanks for the compliment!

Worked perfect. Thanks for the help.