Project

General

Profile

Actions

Bug #2339

closed

Failed building wheel for suricata-update

Added by Peter Manev over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

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
Actions #1

Updated by Peter Manev over 6 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

Actions #2

Updated by Jason Ish over 6 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

Actions #3

Updated by Jason Ish over 6 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.

Actions #4

Updated by Jason Ish over 5 years ago

  • Status changed from New to Closed

I believe this to be fixed now. Commit a831d5be8b5c1b2635da98bc212127c159de1e2d.

Actions

Also available in: Atom PDF