google-deepmind / tree

tree is a library for working with nested data structures
https://tree.readthedocs.io
Apache License 2.0
938 stars 59 forks source link

Installing on a remote computer #70

Closed salazardetroya closed 2 years ago

salazardetroya commented 2 years ago

Hello, I am trying to install dm-tree==0.1.6 on a linux machine with python 3.8.2 and I am getting the error below

Collecting dm-tree==0.1.6
  Using cached https://files.pythonhosted.org/packages/ec/45/be407a60068204dd5248dae5a4d325370d9b1b3c2cb2a1adb0d673a0d3ae/dm-tree-0.1.6.tar.gz
Requirement already satisfied: six>=1.12.0 in /g/g92/miguel/scicomp_libraries/jax/lib/python3.8/site-packages (from dm-tree==0.1.6) (1.16.0)
Installing collected packages: dm-tree
  Running setup.py install for dm-tree ... error
    ERROR: Command errored out with exit status 1:
     command: /g/g92/miguel/scicomp_libraries/jax/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/miguel/pip-install-xnt0v0b8/dm-tree/setup.py'"'"'; __file__='"'"'/tmp/miguel/pip-install-xnt0v0b8/dm-tree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/miguel/pip-record-upgc741i/install-record.txt --single-version-externally-managed --compile --install-headers /g/g92/miguel/scicomp_libraries/jax/include/site/python3.8/dm-tree --user --prefix=
         cwd: /tmp/miguel/pip-install-xnt0v0b8/dm-tree/
    Complete output (13 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/tree
    copying tree/__init__.py -> build/lib.linux-x86_64-3.8/tree
    copying tree/tree_benchmark.py -> build/lib.linux-x86_64-3.8/tree
    copying tree/tree_test.py -> build/lib.linux-x86_64-3.8/tree
    running build_ext
    bazel build //tree:_tree --symlink_prefix=build/temp.linux-x86_64-3.8/bazel- --compilation_mode=opt
    unable to execute 'bazel': Permission denied
    error: command 'bazel' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /g/g92/miguel/scicomp_libraries/jax/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/miguel/pip-install-xnt0v0b8/dm-tree/setup.py'"'"'; __file__='"'"'/tmp/miguel/pip-install-xnt0v0b8/dm-tree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/miguel/pip-record-upgc741i/install-record.txt --single-version-externally-managed --compile --install-headers /g/g92/miguel/scicomp_libraries/jax/include/site/python3.8/dm-tree --user --prefix= Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I am trying to install dm-tree in a virtual environment. Am I getting this error because I do not have permissions or because I need to install bazel first? Thanks.

salazardetroya commented 2 years ago

I've learned about the change to CMake in the build system so I switched to install the master version instead of a release.