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

_common.sh: line 14: virtualenv: command not found #36

Closed
Foxtune opened this issue Jun 16, 2019 · 3 comments
Closed

_common.sh: line 14: virtualenv: command not found #36

Foxtune opened this issue Jun 16, 2019 · 3 comments

Comments

@Foxtune
Copy link

Foxtune commented Jun 16, 2019

Just trying to install borg client and have the same message on 4 différents server (some with YNH 3.4.2.4 and 3.5.2.2)

2019-06-16 10:35:24,078: WARNING - _common.sh: line 14: virtualenv: command not found
2019-06-16 10:35:24,080: DEBUG - + '[' '!' -d /opt/borg-env ']'
2019-06-16 10:35:24,081: WARNING - !!
2019-06-16 10:35:24,081: DEBUG - + virtualenv --python=python3 /opt/borg-env
2019-06-16 10:35:24,081: WARNING - borg's script has encountered an error. Its execution was cancelled.

@gusttt
Copy link

gusttt commented Jan 3, 2020

Hello,
Running in the same issue:

  - 2020-01-03 15:14:29,385: DEBUG - + local legacy_args=m                                                                                                                                                         
  - 2020-01-03 15:14:29,385: WARNING -   borg's script has encountered an error. Its execution was cancelled.                                                                                                      
  - 2020-01-03 15:14:29,385: DEBUG - + args_array=([m]=message=)
  - 2020-01-03 15:14:29,385: WARNING - !!         
  - 2020-01-03 15:14:29,385: DEBUG - + declare -Ar args_array
  - 2020-01-03 15:14:29,386: WARNING - Please find here an extract of the log before the crash:
  - 2020-01-03 15:14:29,386: DEBUG - + local message
  - 2020-01-03 15:14:29,386: WARNING - [DEBUG]: DEBUG   - + read dpkg_file
  - 2020-01-03 15:14:29,386: DEBUG - + ynh_handle_getopts_args '--message=!!\n  borg'\''s script has encountered an error. Its execution was cancelled.\n!!'
  - 2020-01-03 15:14:29,387: WARNING - [DEBUG]: DEBUG   - + return 0
  - 2020-01-03 15:14:29,387: DEBUG - + set +x
  - 2020-01-03 15:14:29,387: WARNING - [DEBUG]: DEBUG   - + dpkg-query -W -f '${Status}' borg-ynh-deps
  - 2020-01-03 15:14:29,387: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  borg'\''s script has encountered an error. Its execution was cancelled.\n!!'
  - 2020-01-03 15:14:29,388: WARNING - [DEBUG]: DEBUG   - + grep -c 'ok installed'
  - 2020-01-03 15:14:29,388: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  borg'\''s script has encountered an error. Its execution was cancelled.\n!!'
  - 2020-01-03 15:14:29,388: WARNING - [DEBUG]: DEBUG   - + rm /tmp/borg-ynh-deps.control
  - 2020-01-03 15:14:29,388: DEBUG - + '[' cli == cli ']'
  - 2020-01-03 15:14:29,389: WARNING - [DEBUG]: DEBUG   - + ynh_app_setting_set --app=borg --key=apt_dependencies '--value=python3-pip, python3-dev, libacl1-dev, libssl-dev, liblz4-dev, python3-jinja2, python3-s
etuptools, python-virtualenv'  
  - 2020-01-03 15:14:29,389: DEBUG - + set +x
  - 2020-01-03 15:14:29,389: WARNING - [DEBUG]: DEBUG   - + local legacy_args=akv
  - 2020-01-03 15:14:29,389: DEBUG - + type -t ynh_clean_setup
  - 2020-01-03 15:14:29,389: WARNING - [DEBUG]: DEBUG   -=value=)
  - 2020-01-03 15:14:29,390: DEBUG - + ynh_die
  - 2020-01-03 15:14:29,390: WARNING - [DEBUG]: DEBUG   - + declare -Ar args_array
  - 2020-01-03 15:14:29,390: DEBUG - + local legacy_args=mc
  - 2020-01-03 15:14:29,390: WARNING - [DEBUG]: DEBUG   - + local app
  - 2020-01-03 15:14:29,391: DEBUG - + args_array=([m]=message= [c]=ret_code=)
  - 2020-01-03 15:14:29,391: WARNING - [DEBUG]: DEBUG   - + local key
  - 2020-01-03 15:14:29,391: DEBUG - + declare -Ar args_array
  - 2020-01-03 15:14:29,391: WARNING - [DEBUG]: DEBUG   - + local value
  - 2020-01-03 15:14:29,391: DEBUG - + local message                                      
  - 2020-01-03 15:14:29,392: WARNING - [DEBUG]: DEBUG   - + ynh_handle_getopts_args --app=borg --key=apt_dependencies '--value=python3-pip, python3-dev, libacl1-dev, libssl-dev, liblz4-dev, python3-jinja2, pytho
n3-setuptools, python-virtualenv'
  - 2020-01-03 15:14:29,392: DEBUG - + local ret_code
  - 2020-01-03 15:14:29,392: WARNING - [DEBUG]: DEBUG   - + set +x
  - 2020-01-03 15:14:29,392: DEBUG - + ynh_handle_getopts_args
  - 2020-01-03 15:14:29,392: WARNING - [DEBUG]: DEBUG   - + ynh_app_setting set borg apt_dependencies 'python3-pip, python3-dev, libacl1-dev, libssl-dev, liblz4-dev, python3-jinja2, python3-setuptools, python-vi
rtualenv'
  - 2020-01-03 15:14:29,393: DEBUG - + set +x
  - 2020-01-03 15:14:29,393: WARNING - [DEBUG]: DEBUG   - + ACTION=set
  - 2020-01-03 15:14:29,393: DEBUG - + echo ''
  - 2020-01-03 15:14:29,393: WARNING - [DEBUG]: DEBUG   - + APP=borg
  - 2020-01-03 15:14:29,393: DEBUG - + exit 1
  - 2020-01-03 15:14:29,393: WARNING - [DEBUG]: DEBUG   - + KEY=apt_dependencies
  - 2020-01-03 15:14:29,394: WARNING - [DEBUG]: DEBUG   - + VALUE='python3-pip, python3-dev, libacl1-dev, libssl-dev, liblz4-dev, python3-jinja2, python3-setuptools, python-virtualenv'
  - 2020-01-03 15:14:29,394: WARNING - [DEBUG]: DEBUG   - + python -
  - 2020-01-03 15:14:29,394: WARNING - [DEBUG]: DEBUG   - + install_borg_with_pip
  - 2020-01-03 15:14:29,394: WARNING - [DEBUG]: WARNING - _common.sh: line 14: virtualenv: command not found
  - 2020-01-03 15:14:29,395: WARNING - [DEBUG]: DEBUG   -'
  - 2020-01-03 15:14:29,395: WARNING - [DEBUG]: DEBUG   - + virtualenv --python=python3 /opt/borg-env
  - 2020-01-03 15:14:29,395: WARNING - [DEBUG]: DEBUG   - + ynh_exit_properly
  - 2020-01-03 15:14:29,395: WARNING -

@hieronymousch
Copy link

Install virtual env: "apt-get install virtualenv" and installation continues

@zamentur
Copy link
Contributor

It should be fixed now, thanks for reporting this.

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

4 participants