Skip to content

Unable to read python.rs when installing RustPython from source #4117

@charliermarsh

Description

@charliermarsh

Summary

In my Cargo.toml, I have:

[dependencies]
rustpython-parser = { git = "https://github.com/RustPython/RustPython.git", rev = "f1c7aebfad707526602c8162c8094a67129b6731" }

Now, running cargo build on my project yields:

∴ cargo build
   Compiling rustpython-parser v0.1.2 (https://github.com/RustPython/RustPython.git?rev=f1c7aebfad707526602c8162c8094a67129b6731#f1c7aebf)
error: couldn't read /Users/crmarsh/.cargo/git/checkouts/rustpython-f8ef4d934ac33cd8/f1c7aeb/parser/src/../python.rs: No such file or directory (os error 2)
 --> /Users/crmarsh/.cargo/git/checkouts/rustpython-f8ef4d934ac33cd8/f1c7aeb/parser/src/python.rs:3:1
  |
3 | include!("../python.rs");
  | ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)

The following warnings were emitted during compilation:

warning: python.rs doesn't exist. regenerate.

error: could not compile `rustpython-parser` due to previous error

Is this a user error? I know this is a recent change as my project built without error on dff916d45c5d13074d21ad329a5ab68a6499426a.

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