Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
January Donations
MordyT USD25.00

Author Topic: Netblocker issue  (Read 884 times)

Offline obteo

  • Sr. Member
  • ****
  • Posts: 170
    • B2KilL Clan
Netblocker issue
« on: December 14, 2017, 03:11:46 PM »
Hi guys, I'm having this error, any idea please?

Code: [Select]
171214 15:04:34 ERROR    'Could not load plugin netblocker'
Traceback (most recent call last):
  File "/home/b2k/cod4/bot/b3/parser.py", line 859, in loadPlugins
    mod = self.pluginImport(p['name'], p['path'])
  File "/home/b2k/cod4/bot/b3/parser.py", line 1072, in pluginImport
    return imp.load_module(name, fp, pathname, description)
  File "/home/b2k/cod4/bot/b3/plugins/netblocker/__init__.py", line 28, in <module>
    import b3.plugins.netblocker.netblock as netblock
  File "/home/b2k/cod4/bot/b3/plugins/netblocker/__init__.py", line 28, in <module>
    import b3.plugins.netblocker.netblock as netblock
AttributeError: 'module' object has no attribute 'netblocker'

Offline obteo

  • Sr. Member
  • ****
  • Posts: 170
    • B2KilL Clan
Re: Netblocker issue
« Reply #1 on: December 20, 2017, 02:08:22 PM »
anyone can help me here please?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 1001
    • GitHub
Re: Netblocker issue
« Reply #2 on: December 21, 2017, 12:10:55 PM »
You can try the following:

Open the netblocker.py file (in b3/plugins/netblocker/netblocker.py) and replace

Code: [Select]
import b3.plugins.netblocker.netblock as netblock

with

Code: [Select]
import .netblock as netblock

Offline obteo

  • Sr. Member
  • ****
  • Posts: 170
    • B2KilL Clan
Re: Netblocker issue
« Reply #3 on: December 21, 2017, 02:47:21 PM »
You can try the following:

Open the netblocker.py file (in b3/plugins/netblocker/netblocker.py) and replace

Code: [Select]
import b3.plugins.netblocker.netblock as netblock

with

Code: [Select]
import .netblock as netblock

Thanks but is not working:


Code: [Select]
171221 14:45:26 ERROR    'Could not load plugin netblocker'
Traceback (most recent call last):
  File "/home/b2k/cod4/bot/b3/parser.py", line 859, in loadPlugins
    mod = self.pluginImport(p['name'], p['path'])
  File "/home/b2k/cod4/bot/b3/parser.py", line 1072, in pluginImport
    return imp.load_module(name, fp, pathname, description)
  File "/home/b2k/cod4/bot/b3/plugins/netblocker/__init__.py", line 29
    import .netblock as netblock
           ^
SyntaxError: invalid syntax

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 1001
    • GitHub
Re: Netblocker issue
« Reply #4 on: December 21, 2017, 04:27:57 PM »
Sorry, quick reply is always the wrong one.

Try: from . import netblock

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2640
Re: Netblocker issue
« Reply #5 on: December 28, 2017, 08:35:01 PM »
Nice job Fenix, that one seems to work!

Offline obteo

  • Sr. Member
  • ****
  • Posts: 170
    • B2KilL Clan
Re: Netblocker issue
« Reply #6 on: January 08, 2018, 08:12:15 AM »
The starting error seems fixed but the usage not... I write:

!netblock 192.168.100.0/24

and it says unricognized command netblock...

Thank you.

 


Rate this page +1 at Google Search

anything