Evertras / lakitu

A playground for tiny virtual cloud things
MIT License
5 stars 1 forks source link

Maybe we need sudo for make ansible-ping? #8

Closed TomyYamy closed 2 weeks ago

TomyYamy commented 1 month ago

If no sudo,

$ make ansible-ping
:
Collecting resolvelib==0.5.4
  Using cached https://artifactory-ha.tmc-stargate.com/artifactory/api/pypi/arene-development-pypi-local-private/packages/packages/eb/11/bda2b7dee2c84d1f1923ae273023bb94d3e5ab3d1a46b4bd8cf5eb81a241/resolvelib-0.5.4-py2.py3-none-any.whl (12 kB)
Building wheels for collected packages: ansible, ansible-core
  Building wheel for ansible (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/data/Repos/lakitu/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5mssz5no/ansible/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5mssz5no/ansible/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-l5rh3626
       cwd: /tmp/pip-install-5mssz5no/ansible/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for ansible
  Running setup.py clean for ansible
  Building wheel for ansible-core (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/data/Repos/lakitu/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5mssz5no/ansible-core/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5mssz5no/ansible-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iwx39n8_
       cwd: /tmp/pip-install-5mssz5no/ansible-core/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for ansible-core
  Running setup.py clean for ansible-core
Failed to build ansible ansible-core
Installing collected packages: PyYAML, pycparser, cffi, cryptography, MarkupSafe, Jinja2, pyparsing, packaging, resolvelib, ansible-core, ansible
    Running setup.py install for ansible-core ... done
    Running setup.py install for ansible ... done
Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 PyYAML-6.0 ansible-5.3.0 ansible-core-2.12.2 cffi-1.15.0 cryptography-36.0.1 packaging-21.3 pycparser-2.21 pyparsing-3.0.7 resolvelib-0.5.4
./.venv/bin/ansible-galaxy install -r requirements.yaml
Starting galaxy role install process
- downloading role 'docker', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-docker/archive/7.1.0.tar.gz
 [ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - geerlingguy.docker was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
make: *** [Makefile:101: .requirements-installed] Error 1

If sudo, it is smooth.

Collecting resolvelib==0.5.4
  Using cached https://artifactory-ha.tmc-stargate.com/artifactory/api/pypi/arene-development-pypi-local-private/packages/packages/eb/11/bda2b7dee2c84d1f1923ae273023bb94d3e5ab3d1a46b4bd8cf5eb81a241/resolvelib-0.5.4-py2.py3-none-any.whl (12 kB)
Building wheels for collected packages: ansible, ansible-core
  Building wheel for ansible (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/data/Repos/lakitu/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5mssz5no/ansible/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5mssz5no/ansible/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-l5rh3626
       cwd: /tmp/pip-install-5mssz5no/ansible/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for ansible
  Running setup.py clean for ansible
  Building wheel for ansible-core (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/data/Repos/lakitu/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5mssz5no/ansible-core/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5mssz5no/ansible-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iwx39n8_
       cwd: /tmp/pip-install-5mssz5no/ansible-core/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for ansible-core
  Running setup.py clean for ansible-core
Failed to build ansible ansible-core
Installing collected packages: PyYAML, pycparser, cffi, cryptography, MarkupSafe, Jinja2, pyparsing, packaging, resolvelib, ansible-core, ansible
    Running setup.py install for ansible-core ... done
    Running setup.py install for ansible ... done
Successfully installed Jinja2-3.0.3 MarkupSafe-2.0.1 PyYAML-6.0 ansible-5.3.0 ansible-core-2.12.2 cffi-1.15.0 cryptography-36.0.1 packaging-21.3 pycparser-2.21 pyparsing-3.0.7 resolvelib-0.5.4
./.venv/bin/ansible-galaxy install -r requirements.yaml
Starting galaxy role install process
- downloading role 'docker', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-docker/archive/7.1.0.tar.gz
 [ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - geerlingguy.docker was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
make: *** [Makefile:101: .requirements-installed] Error 1

May I update the README?

TomyYamy commented 2 weeks ago

it is "make" issue rather than in specific "make ansible-ping".

TomyYamy commented 2 weeks ago

I find we should not use sudo. It give sudo privileged to .venv/

TomyYamy commented 2 weeks ago

The reason should be different. We may discuss it at #9.