Skip to content
New issue

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

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

Already on GitHub? # to your account

missing unzip dependency for install script #453

Closed
thomaspeyrucain opened this issue Aug 16, 2023 · 3 comments · Fixed by #454
Closed

missing unzip dependency for install script #453

thomaspeyrucain opened this issue Aug 16, 2023 · 3 comments · Fixed by #454

Comments

@thomaspeyrucain
Copy link
Contributor

If unzip is not installed the installation script fails with this error:

Torch version not defined, version 1.9.0 will be installed.
For a specific Torch version please define TORCH_VERSION with 'export TORCH_VERSION=x.x.x'
Downloading and installing LibTorch and torchvision (cpu-only) ...
Downloading LibTorch and torchvision ...
Downloading Libtorch and torchvision done.
./install_torch_c_api.sh: line 37: unzip: command not found
./install_torch_c_api.sh: line 38: cd: libtorch: No such file or directory
tar (child): vision.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat 'vision-*': No such file or directory
./install_torch_c_api.sh: line 47: cd: vision: No such file or directory
CMake Error: The source directory "/home/user/exchange/opendr" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
make[1]: *** No rule to make target 'desktop'.  Stop.
make: *** [Makefile:42: install_compilation_dependencies] Error 2
@tsampazk
Copy link
Collaborator

Hey @thomaspeyrucain, thanks for reporting this. Could you provide some additional information?

  • Are you attempting a full toolkit installation on a desktop by cloning and running the installation script as described here?
  • After failing, did you install unzip, then retried the installation and it ran successfully? If so, how exactly did you install unzip?

@thomaspeyrucain
Copy link
Contributor Author

Hello @tsampazk ,

  • We tried a full toolkit installation on a docker container with noetic installed
  • After installing via apt install unzip we retried and it was successful

@tsampazk
Copy link
Collaborator

Thanks! It seems that most systems that we use have unzip pre-installed. I think we can install unzip along other base ubuntu dependencies, which should do the trick.

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

Successfully merging a pull request may close this issue.

2 participants