Requisitos de Python do AWS Locust falha

1

Gente,   Tentando configurar o Locust no AWS usando o mais recente Linux da Amazon. Depois de instalar o gafanhoto, recebo o seguinte ao iniciar no modo mestre:

locust -f foo.py --master
Traceback (most recent call last):
  File "/usr/bin/locust", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=2.4.1

Qual seria a solução mais elegante para isso? Obrigado

    
por CMag 23.11.2014 / 00:14

1 resposta

1

Bem, se alguém se importa, atualizar python para v 2.7 resolve meu problema:

link

33  yum install make automake gcc gcc-c++ kernel-devel git-core -y
34  yum install python27-devel -y
35  rm /usr/bin/python
36  ln -s /usr/bin/python2.7 /usr/bin/python
37  cp /usr/bin/yum /usr/bin/_yum_before_27
38  sed -i s/python/python2.6/g /usr/bin/yum
39  sed -i s/python2.6/python2.6/g /usr/bin/yum
40  python -V
    
por 23.11.2014 / 00:26