Issue installing Taurus on Ubuntu 1604 gives "ImportError: No module named setuptools"

154 views
Skip to first unread message

Philippe Mouawad

unread,
Apr 29, 2019, 3:03:47 AM4/29/19
to codename-taurus
Hello,

Running documentation commands:
    sudo apt-get update
    sudo apt-get install python default-jre-headless python-tk python-pip python-dev libxml2-dev libxslt-dev zlib1g-dev net-tools
    sudo pip install --upgrade pip
    sudo pip install bzt

I get for the last one this output:
------------------------------------------------------------------------------------------------------------------
Collecting bzt
  Downloading https://files.pythonhosted.org/packages/76/24/38e00d8b6a806d9a90c6069d854445afd93ce20c280eac110bc74bd690c5/bzt-1.13.4-py2.py3-none-any.whl (1.0MB)
Collecting apiritif>=0.8.1 (from bzt)
  Downloading https://files.pythonhosted.org/packages/ec/da/db4ebb14acfab7aa55a9bdba5f3c16b4fe5c164ec65a6021b9f21c8c43a8/apiritif-0.8.1-py2.py3-none-any.whl
Collecting gevent!=1.3.5 (from bzt)
  Downloading https://files.pythonhosted.org/packages/e6/e9/3a693414f706e12abe60554cd73c5ae8f848b182ae58018f93d86c9eb418/gevent-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl (5.0MB)
Collecting progressbar33 (from bzt)
  Downloading https://files.pythonhosted.org/packages/71/fc/7c8e01f41a6e671d7b11be470eeb3d15339c75ce5559935f3f55890eec6b/progressbar33-2.4.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-gIF_9d/progressbar33/

------------------------------------------------------------------------------------------------------------------

Adding this fixed issue:
    sudo pip install --upgrade setuptools

But I also get then :
ERROR: requests 2.21.0 has requirement urllib3<1.25,>=1.21.1, but you'll have urllib3 1.25.1 which is incompatible.


--
Regards.
Philippe M.


Andrey Pokhilko

unread,
Apr 29, 2019, 5:05:57 AM4/29/19
to codenam...@googlegroups.com

Hi,

What is the OS and python version you use?

--

Andrey

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/CAH9fUpbfbMqBARbENppEFaCE5LTkkstv%3DZXeRtJ75r_00EAwkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Philippe Mouawad

unread,
Apr 29, 2019, 7:49:50 AM4/29/19
to Andrey Pokhilko, codename-taurus
Hello Andrey,

Linux fv-az510 4.15.0-1041-azure #45-Ubuntu SMP Fri Mar 15 14:41:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Python 2.7.12

Regards


For more options, visit https://groups.google.com/d/optout.


--
Cordialement.
Philippe Mouawad.


Andrey Pokhilko

unread,
Apr 30, 2019, 8:20:27 AM4/30/19
to codename-taurus

I'm not sure why this problem happens, something with dependencies.

With Linux, there are too many possible combinations of dependencies to document them all. This is why we prefer using Docker image that holds valid combination inside.

--

Andrey

Philippe Mouawad

unread,
Apr 30, 2019, 11:18:19 AM4/30/19
to Andrey Pokhilko, codename-taurus
Hello Andrey,
Yes issue is due to environment.

I understand docker image is a way.
But I see 2 issues:
  • Major: since Taurus is now used for example within Performance Plugin in Jenkins, does it mean that it cannot run safely on all Linux OSes (This version of Ubuntu is rather common)  ?
  • Minor: Running through Docker introduces an overhead not affordable in certain cases

Regards



For more options, visit https://groups.google.com/d/optout.


--
Cordialement.
Philippe Mouawad.


Andrey Pokhilko

unread,
Apr 30, 2019, 11:26:32 AM4/30/19
to Philippe Mouawad, codename-taurus

From our testing, there are no problems in most of Ubuntu versions. Probably, Azure's image has some specifics that causes these dependency problems.

I am sure these problems are solvable. For example, by upgrading urllib3 which does not satisfy minimum version requirement.

--

Andrey

Reply all
Reply to author
Forward
0 new messages