networkop / k8s-topo

Topology builder for network simulations inside K8S
BSD 3-Clause "New" or "Revised" License
72 stars 18 forks source link

Requirement install error #7

Closed tahir24434 closed 4 years ago

tahir24434 commented 4 years ago

I run below instructions

git clone https://github.com/networkop/k8s-topo.git && cd k8s-topo/
sudo apt install -y python3-venv
python3.6 -m venv venv3.6
source venv3.6/bin/activate
sudo apt install build-essential libssl-dev libffi-dev python3-dev
pip3 install -r requirements.txt

And hit below error

Running setup.py bdist_wheel for networkx ... error
  Complete output from command /home/ubuntu/venvtest/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t8los68o/networkx/setup.py';f=getattr(tokenize, 'open', op
en)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpvp36wh31pip-wheel- --python-tag cp36:
  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 networkx
  Running setup.py clean for networkx
  Running setup.py bdist_wheel for pyyaml ... error
  Complete output from command /home/ubuntu/venvtest/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t8los68o/pyyaml/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/tmp9jycn9ybpip-wheel- --python-tag cp36:
  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 pyyaml
  Running setup.py clean for pyyaml
  Running setup.py bdist_wheel for pycparser ... error
  Complete output from command /home/ubuntu/venvtest/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t8los68o/pycparser/setup.py';f=getattr(tokenize, 'open', o
pen)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpfkm9bdfrpip-wheel- --python-tag cp36:
  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'
tahir24434 commented 4 years ago

Error can be resolved by adding 'wheel' package in requirement.txt. I'll submit the patch shortly.

tahir24434 commented 4 years ago

You just need to run "pip3 install wheel". It might be specific to Ubuntu18.04. I'm closing this issue.