Skip to content

Benchmarks use PyParser_ASTFromStringObject, which is removed from Python 3.10 #3498

Closed

Description

@dralley

Benchmarks fail to compile on a system with Python 3.10, in my case, Fedora 35.

[dalley@localhost RustPython]$ cargo bench
   Compiling rustpython v0.1.2 (/home/dalley/Devel/rustpython-dev/RustPython)
error[E0425]: cannot find function, tuple struct or tuple variant `PyParser_ASTFromStringObject` in crate `python3_sys`
  --> benches/execution.rs:82:32
   |
82 |         let ret = python3_sys::PyParser_ASTFromStringObject(
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `python3_sys`

For more information about this error, try `rustc --explain E0425`.
error: could not compile `rustpython` due to previous error

python/cpython#25001

dgrunwald/rust-cpython@7bcf2d3#diff-3a5720e55119ee77dd2db4a0e191e513099d227760a8c40891a9f78872b46982R91

Activity

  1. fanninpm commented on Apr 19, 2022

    @fanninpm
    Contributor

    git-blame suggests @coolreader18

  2. InnovativeInventor commented on Sep 20, 2022

    @InnovativeInventor

    What is the status on this? The benchmarks are still failing . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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