Bug #2339
closedFailed building wheel for suricata-update
Description
On LTS Xenial I get the following error on a first time install - but it seems non critical as "suricata-update" reports successful installation and sources addition/updates etc seems to work normally.
Maybe not really supposed to run as root.
root@LTS-64-1:~ # pip install --pre --upgrade suricata-update Collecting suricata-update Downloading suricata-update-1.0.0a1.tar.gz (55kB) 100% |████████████████████████████████| 61kB 1.1MB/s Building wheels for collected packages: suricata-update Running setup.py bdist_wheel for suricata-update ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ABIzb5/suricata-update/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp6l00n9pip-wheel- --python-tag cp27: fatal: Not a git repository (or any of the parent directories): .git Failed to get current git revision: Command '['git', 'rev-parse', '--short', 'HEAD']' returned non-zero exit status 128 usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- Failed building wheel for suricata-update Running setup.py clean for suricata-update Failed to build suricata-update Installing collected packages: suricata-update Running setup.py install for suricata-update ... done Successfully installed suricata-update-1.0.0a1
Updated by Peter Manev over 7 years ago
Some more info
root@LTS-64-1:~ # suricata-update -v 8/12/2017 -- 09:47:56 - <Debug> -- This is suricata-update version 1.0.0a1 (rev: 835898b); Python: 2.7.12 (default, Nov 20 2017, 18:23:56) - [GCC 5.4.0 20160609] 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/local/sbin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/local/bin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/sbin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/bin 8/12/2017 -- 09:47:56 - <Debug> -- Found /usr/bin. 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/local/sbin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/local/bin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/sbin 8/12/2017 -- 09:47:56 - <Debug> -- Testing path: /usr/bin 8/12/2017 -- 09:47:56 - <Debug> -- Found /usr/bin. 8/12/2017 -- 09:47:56 - <Info> -- Found Suricata version 4.0.3 at /usr/bin/suricata. 8/12/2017 -- 09:47:56 - <Info> -- Loading /etc/suricata/suricata.yaml
Updated by Jason Ish over 7 years ago
This is interesting as I can't replicate, and even though there is an exception handling in there to catch failing to write the git revision, which I can see being caught, and python setup.py error is raised as well.
I tried on 16.04.3 and couldn't replicate. But could you try:
pip install --pre --upgrade https://github.com/jasonish/suricata-update/archive/issue-2339-1.zip
Updated by Jason Ish over 7 years ago
This possible fix is now in git master. Basically if .git does not exist, don't try to extract the git revision. I don't think this is the cause of
error: invalid command 'bdist_wheel'
though.
Updated by Jason Ish over 6 years ago
- Status changed from New to Closed
I believe this to be fixed now. Commit a831d5be8b5c1b2635da98bc212127c159de1e2d.