Sign in to follow this  
swamy

help need in plugins

Recommended Posts

180328 17:14:00 VERBOSE  'Listadmins is not a built-in plugin (No module named listadmins)'
180328 17:14:00 VERBOSE  u'Trying external plugin directory : /usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/extplugins'
180328 17:14:00 ERROR    'Could not load plugin listadmins'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/parser.py", line 859, in loadPlugins
    mod = self.pluginImport(p['name'], p['path'])
  File "/usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/parser.py", line 1077, in pluginImport
    return imp.load_module(name, fp, pathname, description)
  File "/usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/extplugins/listadmins.py", line 25
    level = self.config.get('commands', cmd)
        ^
IndentationError: expected an indented block

 

 

180328 17:14:00 VERBOSE  'Discordban is not a built-in plugin (No module named discordban)'
180328 17:14:00 VERBOSE  u'Trying external plugin directory : /usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/extplugins'
180328 17:14:00 ERROR    'Could not load plugin discordban'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/parser.py", line 859, in loadPlugins
    mod = self.pluginImport(p['name'], p['path'])
  File "/usr/local/lib/python2.7/dist-packages/b3-1.10.10-py2.7.egg/b3/parser.py", line 1076, in pluginImport
    fp, pathname, description = imp.find_module(name, [self.config.get_external_plugins_dir()])
ImportError: No module named discordban

Share this post


Link to post
Share on other sites

IndentationError: expected an indented block

reading hard? you have syntax errors in your code

Share this post


Link to post
Share on other sites

If it's seemingly indented correctly most common error is to use a mix of tabs and spaces

Share this post


Link to post
Share on other sites
On 3/28/2018 at 11:40 PM, swamy said:

IndentationError: expected an indented block

Most programming languages permit indentation, but don't enforce it. Python enforces it with an iron fist, it has caused confusion for many beginners. The error expected an indented block  is probably caused by a mix of tabs and spaces and this can lead to some confusing errors. Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:

  •     Forgetting to indent the statements within a compound statement
  •     Forgetting to indent the statements of a user-defined function.

The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Most editors have an option for automatically converting tabs to spaces. If your editor has this option, turn it on.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this