Taurus CLI Tool v1.11.1 test not starting

278 views
Skip to first unread message

bpc...@gmail.com

unread,
May 16, 2018, 1:40:57 PM5/16/18
to codename-taurus
Using:
Sample code from http://gettaurus.org/
Python: CPython 2.7.5
CentOS Linux release 7.4.1708
jre-10.0.1-10.0.1-ga.x86_64
JavaVM output: java version "10.0.1" 2018-04-17

Error:
10:25:36 INFO: Taurus CLI Tool v1.11.1
10:25:36 INFO: Starting with configs: ['bzt.yml']
10:25:36 INFO: Configuring...
10:25:36 INFO: Artifacts dir: /home/bcarson/2018-05-16_10-25-36.592209
10:25:36 INFO: Preparing...
10:25:38 WARNING: Thread group detection: plugin for ConcurrentThreadGroup not found, regular ThreadGroup will be used
10:25:45 ERROR: AttributeError: 'module' object has no attribute 'XMLPullParser'
Traceback (most recent call last):
 
File "/usr/lib/python2.7/site-packages/bzt/cli.py", line 249, in perform
   
self.engine.prepare()
 
File "/usr/lib/python2.7/site-packages/bzt/engine.py", line 168, in prepare
   
self.__prepare_provisioning()
 
File "/usr/lib/python2.7/site-packages/bzt/engine.py", line 514, in __prepare_provisioning
   
self.provisioning.prepare()
 
File "/usr/lib/python2.7/site-packages/bzt/modules/provisioning.py", line 72, in prepare
    executor
.prepare()
 
File "/usr/lib/python2.7/site-packages/bzt/modules/jmeter.py", line 314, in prepare
   
self.reader = JTLReader(self.kpi_jtl, self.log, self.log_jtl)
 
File "/usr/lib/python2.7/site-packages/bzt/modules/jmeter.py", line 940, in __init__
   
self.errors_reader = JTLErrorsReader(errors_filename, parent_logger)
 
File "/usr/lib/python2.7/site-packages/bzt/modules/jmeter.py", line 1286, in __init__
   
self.parser = etree.XMLPullParser(events=('end',))
AttributeError: 'module' object has no attribute 'XMLPullParser'


Thanks for the help!
-Bruce

Dmitri Pribysh

unread,
May 16, 2018, 5:00:43 PM5/16/18
to Bruce Carson, codename-taurus
Hi,

Which version of lxml is installed on your system? You can learn it by invoking `pip show lxml`.


  Dimitri

--
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-taurus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/be8306e1-5777-4212-97f3-16ae749cb0ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bpc...@gmail.com

unread,
May 16, 2018, 5:03:47 PM5/16/18
to codename-taurus
Name: lxml
Version: 4.2.1
Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Home-page: http://lxml.de/
Author: lxml dev team
Author-email: lxml...@lxml.de
License: BSD
Location: /usr/lib64/python2.7/site-packages
Requires:
Required-by: bzt, apiritif
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

Dmitri Pribysh

unread,
May 17, 2018, 3:23:44 AM5/17/18
to codenam...@googlegroups.com

The only idea i have right now is that somehow Python has multiple versions of lxml installed and for some reason uses the old one.

Can you create a clean virtualenv and attempt to install Taurus with all its dependencies into it?

- `[sudo] pip install virtualenv`
- `virtualenv venv`
- `source venv/bin/activate`
- `pip install bzt`
- `bzt your-config.yml`

bpc...@gmail.com

unread,
May 17, 2018, 12:38:22 PM5/17/18
to codename-taurus
Yep that worked! Is there any difference I need to be aware of when running a test via venv?

Dmitri Pribysh

unread,
May 17, 2018, 12:47:27 PM5/17/18
to bpc...@gmail.com, codename-taurus
Not really, except that you have to activate venv each time you open a shell to run bzt, which is not exactly convenient. Still, it’s an easy way to have a working bzt installation. 

The venv was just for checking if you have a problem with your system python environment, which seems to be true. Do you by any chance have multiple Pythons installed?

  Dimitri

Reply all
Reply to author
Forward
0 new messages