dylanbstorey / pyo3-pylogger

log messages for pyo3 embedded Python applications using the logging module
Apache License 2.0
3 stars 2 forks source link

Release constraint on pyO3 version #3

Closed AzHicham closed 9 months ago

AzHicham commented 9 months ago

Hello,

I tried to use pyo3-pylogger but unfortunately I'm also using pyO3 0.20. This is incompatible because of the constrained pyO3 version (0.17) in pyo3-pylogger.

Here is the compiler error:

error: failed to select a version for `pyo3-ffi`.
    ... required by package `pyo3 v0.17.0`
    ... which satisfies dependency `pyo3 = "^0.17"` of package `pyo3-pylogger v0.2.0`
    ... which satisfies dependency `pyo3-pylogger = "^0.2"` of package `dispatcher v0.0.0 (/Users/hazimani/dev/prime-dx/services/dispatcher)`
versions that meet the requirements `=0.17.0` are: 0.17.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.20.0`
    ... which satisfies dependency `pyo3-ffi = "=0.20.0"` of package `pyo3 v0.20.0`
    ... which satisfies dependency `pyo3 = "^0.20.0"` of package `dispatcher v0.0.0 (/Users/hazimani/dev/prime-dx/services/dispatcher)`
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 ='pyo3-ffi' 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

Thank you for your help

dylanbstorey commented 9 months ago

I'll get an update in this week, just realized i never did the basics like a release pipeline on this project so i'll need to pull it down and test locally.

dylanbstorey commented 9 months ago

@AzHicham - just released 0.2.1 with loosened constraints. Thanks , hopefully this works for you - if you have any problems feel free to grab me !