sfu-db / connector-x

Fastest library to load data from DB to DataFrames in Rust and Python
https://sfu-db.github.io/connector-x
MIT License
1.94k stars 152 forks source link

Feature src_mysql doesn't build #516

Closed AnatolyBuga closed 1 year ago

AnatolyBuga commented 1 year ago

What language are you using?

Rust

What version are you using?

0.3.1 Windows

What database are you using?

MySQL

What dataframe are you using?

Polars

Can you describe your bug?

When I add this feature: "src_mysql", like: connectorx = { version = "0.3.1", features=["src_mysql"]}

I get this build time error:

cargo run
    Updating crates.io index
error: failed to select a version for the requirement `funty = "~1.2"`
candidate versions found which didn't match: 2.0.0, 1.1.0, 1.0.1, ...
location searched: crates.io index
required by package `bitvec v0.22.3`
    ... which satisfies dependency `bitvec = "^0.22.3"` of package `mysql_common v0.27.4`
    ... which satisfies dependency `mysql_common = "^0.27.2"` of package `mysql v21.0.0`
    ... which satisfies dependency `mysql = "^21"` of package `r2d2_mysql v21.0.0`
    ... which satisfies dependency `r2d2_mysql = "^21.0"` of package `connectorx v0.3.1`
    ... which satisfies dependency `connectorx = "^0.3.1"` (locked to 0.3.1) of package `practices2 v0.1.0 (C:\rust\practices2)`
perhaps a crate was updated and forgotten to be re-vendored?
AnatolyBuga commented 1 year ago

Same issue, which should've been resolved. Perhaps still not in the crates.io 0.3.1?

yuyang-ok commented 1 year ago

I have this issue too.

[yuyang@k8scpu04 servers]$ cargo check 
    Updating crates.io index
error: failed to select a version for the requirement `funty = "~1.2"`
candidate versions found which didn't match: 2.0.0, 1.1.0, 1.0.1, ...
location searched: crates.io index
required by package `bitvec v0.22.3`
    ... which satisfies dependency `bitvec = "^0.22.3"` of package `mysql_common v0.27.4`
    ... which satisfies dependency `mysql_common = "^0.27.2"` of package `mysql v21.0.0`
    ... which satisfies dependency `mysql = "^21"` of package `r2d2_mysql v21.0.0`
    ... which satisfies dependency `r2d2_mysql = "^21.0"` of package `connectorx v0.3.1`
    ... which satisfies dependency `connectorx = "^0.3.1-alpha.1"` (locked to 0.3.1) of package `servers v0.1.0 (/home/yuyang/data-fabric/src/servers)`
    ... which satisfies path dependency `servers` (locked to 0.1.0) of package `datafabric-binaries v0.1.0 (/home/yuyang/data-fabric/src/binaries)`
perhaps a crate was updated and forgotten to be re-vendored?

I am using

[yuyang@k8scpu04 servers]$ cargo version  
cargo 1.73.0-nightly (7ac9416d8 2023-07-24
[yuyang@k8scpu04 servers]$ rustup  target list | grep installed 
x86_64-unknown-linux-gnu (installed)
AnatolyBuga commented 1 year ago

@yuyang-ok the fix is not on crates.io yet. point to git master in your Cargo.toml smth like

connectorx = { git = "https://github.com/sfu-db/connector-x.git", branch="main", optional = true, features=["dst_arrow2", "src_mysql"]}