Attribute Error: 'NoneType' object has no attribute 'rfind'

390 views
Skip to first unread message

amitsk...@gmail.com

unread,
Sep 4, 2018, 5:41:59 AM9/4/18
to codename-taurus
Hi,

I have installed Taurus and created simple yaml file. when I run it I get below error:

[2018-09-04 17:37:08,032 DEBUG Engine] Module config: jmeter defaultdict(None, {'class': None})
[2018-09-04 17:37:08,035 ERROR root] AttributeError: 'NoneType' object has no attribute 'rfind'
Traceback (most recent call last):
  File "c:\dev\python\lib\site-packages\bzt\cli.py", line 253, in perform
    self.engine.prepare()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 171, in prepare
    self.__prepare_provisioning()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 517, in __prepare_provisioning
    self.provisioning.prepare()
  File "c:\dev\python\lib\site-packages\bzt\modules\provisioning.py", line 68, in prepare
    super(Local, self).prepare()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 927, in prepare
    instance = self.engine.instantiate_module(executor)
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 429, in instantiate_module
    classobj = self.__load_module(alias)
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 414, in __load_module
    self.modules[alias] = load_class(clsname)
  File "c:\dev\python\lib\site-packages\bzt\utils.py", line 803, in load_class
    module_name = full_name[:full_name.rfind('.')]
AttributeError: [2018-09-04 17:37:08,032 DEBUG Engine] Module config: jmeter defaultdict(None, {'class': None})
[2018-09-04 17:37:08,035 ERROR root] AttributeError: 'NoneType' object has no attribute 'rfind'
Traceback (most recent call last):
  File "c:\dev\python\lib\site-packages\bzt\cli.py", line 253, in perform
    self.engine.prepare()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 171, in prepare
    self.__prepare_provisioning()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 517, in __prepare_provisioning
    self.provisioning.prepare()
  File "c:\dev\python\lib\site-packages\bzt\modules\provisioning.py", line 68, in prepare
    super(Local, self).prepare()
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 927, in prepare
    instance = self.engine.instantiate_module(executor)
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 429, in instantiate_module
    classobj = self.__load_module(alias)
  File "c:\dev\python\lib\site-packages\bzt\engine.py", line 414, in __load_module
    self.modules[alias] = load_class(clsname)
  File "c:\dev\python\lib\site-packages\bzt\utils.py", line 803, in load_class
    module_name = full_name[:full_name.rfind('.')]
AttributeError: 'NoneType' object has no attribute 'rfind'


Regards,
Amit

Andrey Pokhilko

unread,
Sep 4, 2018, 5:44:52 AM9/4/18
to codenam...@googlegroups.com

Hi,

Most likely, you have punctuation/indentation error in your YAML file. Consider reading this: http://gettaurus.org/docs/YAMLTutorial/

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

04.09.2018 12:41, amitsk...@gmail.com пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
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/4124a898-382d-41d8-b815-87f25f5a3717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages