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

ERROR: Failed building wheel for dm-tree #2293

Open
Asriel31 opened this issue Jul 26, 2021 · 2 comments
Open

ERROR: Failed building wheel for dm-tree #2293

Asriel31 opened this issue Jul 26, 2021 · 2 comments

Comments

@Asriel31
Copy link

Asriel31 commented Jul 26, 2021

I'm using anaconda3-2019.03 Python 3.7.3
I've performed conda install -c conda-forge dm-tree
Another thing that I don't understand my macosx version is 10.13.6 x86_64 High Sierra and here above the build is performed toward macosx 10.9 x86_64

Complete output (13 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/tree
copying tree/init.py -> build/lib.macosx-10.9-x86_64-3.7/tree
copying tree/tree_test.py -> build/lib.macosx-10.9-x86_64-3.7/tree
copying tree/tree_benchmark.py -> build/lib.macosx-10.9-x86_64-3.7/tree
running build_ext
bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.9-x86_64-3.7/bazel- --compilation_mode=opt
unable to execute 'bazel': No such file or directory
error: command 'bazel' failed with exit status 1
ERROR: Failed building wheel for dm-tree

Can someone help me please I've saw the previous issue similar to this topic but it is closed and not solves mine.
Morever i've tried with several python and miniconda and anaconda version it's always the same issue

@krzentner
Copy link
Contributor

Yeah, this breakage occurred because dm-tree's build script is broken, and the platform you're on doesn't have a pre-built dm-tree package uploaded to PyPI. Here are a few workarounds you can try:

If you don't need tensorflow support, you can install garage from this branch, which makes tensorflow optional.

Alternatively, the dm-tree repo has had a cmake based build for several months (but no PyPI release). You can try installing dm-tree from source, which might work.

I hope one of these options works for you.

@Asriel31
Copy link
Author

Asriel31 commented Jul 27, 2021

Thanks a lot to you've been so responsive, I'm gonna try to compile the dm-tree package.
Do you know where can I reach the dm-tree repo that has a cmake based build, please?

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

No branches or pull requests

2 participants