google / google/grr

error: can't copy 'version.ini': doesn't exist or not a regular file

Open
#731 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
796
PR merge metrics
No merged PRs in 30d

Description

Issue with pip install on HEAD

```
copying grr_response_core/artifacts/flow_templates/processes.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/windows.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/cron.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/grr_actions.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/disk.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/darwin.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n warning: install_data: setup script did not provide a directory for 'version.ini' -- installing right in '/usr/local/share/env-grr'\n \n error: can't copy 'version.ini': doesn't exist or not a regular file\n ----------------------------------------\nERROR: Command errored out with exit status 1: /usr/local/share/env-grr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-a2nOZN/grr-response-core/grr/core/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-a2nOZN/grr-response-core/grr/core/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/pip-record-8cqovZ/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/share/env-grr/include/site/python2.7/grr-response-core Check the logs for full command output.\n"}
```
https://travis-ci.org/juju4/ansible-grr/jobs/579014806#L2381
(Ubuntu 18.04, pip install from google github HEAD with python2)

similar with python3 on centos7 + ubuntu 18.04 and slightly updated code
(https://github.com/google/grr/compare/master...juju4:devel)
```
copying grr_response_core/artifacts/flow_templates/disk.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n copying grr_response_core/artifacts/flow_templates/darwin.yaml -> /usr/local/share/env-grr/grr_response_core/artifacts/flow_templates\n warning: install_data: setup script did not provide a directory for 'version.ini' -- installing right in '/usr/local/share/env-grr'\n \n error: can't copy 'version.ini': doesn't exist or not a regular file\n ----------------------------------------\nERROR: Command errored out with exit status 1: /usr/local/share/env-grr/bin/python36 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-0d6sbs6d/grr-response-core/grr/core/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-0d6sbs6d/grr-response-core/grr/core/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/pip-record-9w9l_8cy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/share/env-grr/include/site/python3.6/grr-response-core Check the logs for full command output.\n"}
```
https://travis-ci.org/juju4/ansible-grr/jobs/579014808#L1659
https://travis-ci.org/juju4/ansible-grr/jobs/579014810#L2388

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.