Skip to content

"Error: Can not find Rust compiler" #54

Closed
@kangaroo42

Description

@kangaroo42

I am trying to run the "word-count" example and am getting a "Can not find Rust compiler" error, which I believe is being thrown from the get_rust_version method in setuptools_rust/utils.py. Running rustc -V gives me "rustc 1.36.0-nightly (d595b1135 2019-05-10)".

🌍 Environment

  • Your operating system and version: Ubuntu 18.04.1
  • Your python version: 3.6.7 [GCC 8.2.0] on Linux
  • How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: apt. No.
  • Your rust version (rustc --version): "rustc 1.36.0-nightly"
  • Are you using the latest pyo3 version? Have you tried using latest master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")? Yes. Yes.

💥 Reproducing

CLI:
[/pyo3/examples/word-count/] sudo python3 setup.py install

Trace:

running install
running bdist_egg
running egg_info
writing word_count.egg-info/PKG-INFO
writing dependency_links to word_count.egg-info/dependency_links.txt
writing top-level names to word_count.egg-info/top_level.txt
reading manifest file 'word_count.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'word_count.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/word_count
copying word_count/init.py -> build/lib.linux-x86_64-3.6/word_count
running build_ext
running build_rust
error: Can not find Rust compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions