pola-rs / pyo3-polars

Plugins/extension for Polars
MIT License
232 stars 38 forks source link

Upgrade to PyO3 0.21.1 #77

Closed dennis-barrett closed 4 months ago

dennis-barrett commented 4 months ago

I'm receiving the following error when trying to install pyo3-polars after upgrading to pyo3 version 0.21.1:

error: failed to select a version for `pyo3-ffi`.
    ... required by package `pyo3 v0.20.0`
    ... which satisfies dependency `pyo3 = "^0.20.0"` of package `pyo3-polars v0.12.0`
    ... which satisfies dependency `pyo3-polars = "^0.12.0"` of package <my-package>`
versions that meet the requirements `=0.20.0` are: 0.20.0

the package `pyo3-ffi` links to the native library `python`, but it conflicts with a previous package which links to `python` as well:
package `pyo3-ffi v0.21.1`
    ... which satisfies dependency `pyo3-ffi = "^0.21.1"` of package `<my-package>`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "python"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `pyo3-ffi` which could resolve this conflict

Basically this issue: https://github.com/pola-rs/pyo3-polars/issues/38.

Would it be possible to upgrade to pyo3 version 0.21.1? (Happy to create the PR myself.)

messense commented 4 months ago

See #75

dennis-barrett commented 4 months ago

Ah nice, thanks, I didn't think to check the open PRs. Let's hope for approval soon🙏