Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust] failed to select a version for byteorder #23821

Closed
asfimport opened this issue Jan 14, 2020 · 6 comments
Closed

[Rust] failed to select a version for byteorder #23821

asfimport opened this issue Jan 14, 2020 · 6 comments
Assignees
Milestone

Comments

@asfimport
Copy link
Collaborator

asfimport commented Jan 14, 2020

Description
builds is required by package thrift v0.12.0 is not found on crate.io, supported version are: 1.2.7, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1.

Error Message
C:...\decision_tree>cargo build
Updating git repository https://github.com/apache/arrow
Updating crates.io index
error: failed to select a version for byteorder.
... required by package thrift v0.12.0
... which is depended on by parquet v1.0.0-SNAPSHOT (https://github.com/apache/arrow#469e9cbc)
... which is depended on by datafusion v1.0.0-SNAPSHOT (https://github.com/apache/arrow#469e9cbc)
... which is depended on by decision_tree v0.1.0 (C:\...\decision_tree)
versions that meet the requirements ~1.2.1 are: 1.2.7, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1

all possible versions conflict with previously selected packages.

previously selected package byteorder v1.3.2
... which is depended on by base64 v0.10.1
... which is depended on by rust-argon2 v0.5.1
... which is depended on by redox_users v0.3.1
... which is depended on by dirs v1.0.5
... which is depended on by rustyline v4.1.0
... which is depended on by datafusion v1.0.0-SNAPSHOT (https://github.com/apache/arrow#469e9cbc)
... which is depended on by decision_tree v0.1.0 (C:\...\decision_tree)

failed to select a version for byteorder which could resolve this conflict

Repo steps

  1. added datafusion = { git = "https://github.com/apache/arrow" } to [dependences] section;
  2. in the console, run cargo build.

Relative issue
https://issues.apache.org/jira/browse/ARROW-7562

Environment: OS: Windows 10 home x64
Rust: rustc 1.40.0 (73528e339 2019-12-16)
tool-chain: stable-x86_64-pc-windows-gnu
Reporter: Huang Kaibo
Assignee: Andy Grove / @andygrove

Related issues:

Note: This issue was originally created as ARROW-7563. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Neville Dipale / @nevi-me:
This might be related to ARROW-7562, can you try build with nightly here too? I've updated dependencies and rebuilt, but haven't been able to reproduce this failure.

Thanks

@asfimport
Copy link
Collaborator Author

Andy Grove / @andygrove:
I've just run into the exact same issue on ubuntu with the latest nightly (nightly-2020-01-25).

 

error: failed to select a version for `byteorder`.
    ... required by package `thrift v0.12.0`
    ... which is depended on by `parquet v1.0.0-SNAPSHOT (https://github.com/andygrove/arrow#8a707069)`
    ... which is depended on by `datafusion v1.0.0-SNAPSHOT (https://github.com/andygrove/arrow#8a707069)`
    ... which is depended on by `ballista v0.1.3 (/home/andy/git/andygrove/ballista)`
versions that meet the requirements `~1.2.1` are: 1.2.7, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1all possible versions conflict with previously selected packages.  previously selected package `byteorder v1.3.2`
    ... which is depended on by `base64 v0.9.3`
    ... which is depended on by `kube v0.14.0`
    ... which is depended on by `ballista v0.1.3 (/home/andy/git/andygrove/ballista)`failed to select a version for `byteorder` which could resolve this conflict
 

@asfimport
Copy link
Collaborator Author

Andy Grove / @andygrove:
The problem is that parquet-format (which is not controlled by Apache) uses Thrift 0.12 which requires byteorder 1.2.x but the Arrow project requires byteorder 1.3.x. See ARROW-7507 and ARROW-6256

@asfimport
Copy link
Collaborator Author

Andy Grove / @andygrove:
A possible workaround here is to run "cargo update".

 

 cargo update
    Updating crates.io index
    Updating byteorder v1.3.2 -> v1.2.7
      Adding log v0.3.9
      Adding parquet-format v2.6.0
    Updating thrift v0.13.0 -> v0.12.0
      Adding try_from v0.2.2

@asfimport
Copy link
Collaborator Author

Andy Grove / @andygrove:
Closing this as not a problem. Running "cargo update" resolves this.

@asfimport
Copy link
Collaborator Author

Todd Farmer / @toddfarmer:
Transitioning issue from Resolved to Closed to based on resolution field value.

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

No branches or pull requests

2 participants