thankyou
Donate to the B3 fund!

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

Author Topic: b3 plugin load fail  (Read 233 times)

Offline ghost173

  • Newbie
  • *
  • Posts: 5
b3 plugin load fail
« on: November 10, 2017, 07:35:49 AM »
i install b3 1.10.10 in linux vps 
then i try to load b3 plugin in b3.xml 


Code: [Select]
 <plugins>
    <plugin name="admin" config="@conf/plugin_admin.ini"/>
    <plugin name="punkbuster" config="@conf/plugin_punkbuster.xml"/>
    <plugin name="geowelcome" config="@conf/plugin_avd.xml"/>
<plugin name="avd" config="@conf/plugin_geowelcome.ini"/>
    <plugin name="firstkill" config="@conf/plugin_firstkill.ini"/>
<plugin name="location" config="@conf/plugin_location.ini"/>
  </plugins>


but i got this errors Traceback (most recent call last):

Code: [Select]
  File "/home/call/b3ag/b3/parser.py", line 861, in loadPlugins
    cfg = _get_plugin_config(p['name'], clz, p['conf'])
  File "/home/call/b3ag/b3/parser.py", line 838, in _get_plugin_config
    raise b3.config.ConfigFileNotFound('plugin %s cannot be loaded without a configuration file' % p_name)
ConfigFileNotFound: 'plugin punkbuster cannot be loaded without a configuration file'
171110 06:10:09 WARNING  u'Could not find specified configuration file /home/call/b3ag/b3/conf/plugin_avd.xml for plugin geowelcome'
171110 06:10:09 ERROR    'Could not load plugin geowelcome'
Traceback (most recent call last):
  File "/home/call/b3ag/b3/parser.py", line 861, in loadPlugins
    cfg = _get_plugin_config(p['name'], clz, p['conf'])
  File "/home/call/b3ag/b3/parser.py", line 838, in _get_plugin_config
    raise b3.config.ConfigFileNotFound('plugin %s cannot be loaded without a configuration file' % p_name)
ConfigFileNotFound: 'plugin geowelcome cannot be loaded without a configuration file'
171110 06:10:09 VERBOSE  'Avd is not a built-in plugin (No module named avd)'
171110 06:10:09 VERBOSE  u'Trying external plugin directory : /home/call/b3ag/b3/extplugins'
171110 06:10:09 ERROR    'Could not load plugin avd'
Traceback (most recent call last):
  File "/home/call/b3ag/b3/parser.py", line 859, in loadPlugins
    mod = self.pluginImport(p['name'], p['path'])
  File "/home/call/b3ag/b3/parser.py", line 1076, in pluginImport
    fp, pathname, description = imp.find_module(name, [self.config.get_external_plugins_dir()])
ImportError: No module named avd
171110 06:10:09 BOT      u'Loading configurati
how to fix this? plz help me thzz :)

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2640
Re: b3 plugin load fail
« Reply #1 on: November 10, 2017, 03:30:49 PM »
You are trying to load the avd plugin using the geowelcome config file, and vise versa

And it looks like your config files can't be found.

If you read the log file it will show you what is wrong.

Offline ghost173

  • Newbie
  • *
  • Posts: 5
Re: b3 plugin load fail
« Reply #2 on: November 10, 2017, 04:30:40 PM »
Code: [Select]
[b]this is my b3.log plz help me 
171110 09:21:22 BOT      'www.bigbrotherbot.net (b3) v1.10.10 [AngryBiscuit]'[/b]
[b]171110 09:21:22 BOT      'Python: 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]'[/b]
[b]171110 09:21:22 BOT      'Default encoding: ascii'[/b]
[b]171110 09:21:22 BOT      'Starting Cod4Parser v1.5.1 for server 139.59.126.98:28960 (autorestart = OFF)'[/b]
[b]171110 09:21:22 BOT      '--------------------------------------------'[/b]
[b]171110 09:21:22 BOT      'Connecting to MySQL database: mysql://root:******@localhost:3306/b31...'[/b]
[b]171110 09:21:22 BOT      'Successfully established a connection with MySQL database'[/b]
[b]171110 09:21:22 BOT      'Game log is: /home/call/.callofduty4/mods/tmx_public/mods/tmx_public/games_mp.log'[/b]
[b]171110 09:21:22 BOT      u'Starting bot reading file: /home/call/.callofduty4/mods/tmx_public/mods/tmx_public/games_mp.log'[/b]
[b]171110 09:21:22 BOT      'Rcon status cache expire time: [2 sec] Type: [False]'[/b]
[b]171110 09:21:22 BOT      'Game name is: cod4'[/b]
[b]171110 09:21:22 VERBOSE  "RCON sending (139.59.126.98:28960) 'status'"[/b]
[b]171110 09:21:22 VERBOSE  'RCON: more data to read in socket'[/b]
[b]171110 09:21:22 BOT      u'Loading plugins (external plugin directory: /home/call/b3ag/b3/extplugins)'[/b]
[b]171110 09:21:22 BOT      u'Loading configuration file /home/call/b3ag/b3/conf/plugin_admin.ini for plugin admin'[/b]
[b]171110 09:21:22 WARNING  u'Could not find specified configuration file /home/call/b3ag/b3/conf/plugin_avd.xml for plugin geowelcome'[/b]
[b]171110 09:21:22 ERROR    'Could not load plugin geowelcome'[/b]
[b]Traceback (most recent call last):[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 861, in loadPlugins[/b]
[b]    cfg = _get_plugin_config(p['name'], clz, p['conf'])[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 838, in _get_plugin_config[/b]
[b]    raise b3.config.ConfigFileNotFound('plugin %s cannot be loaded without a configuration file' % p_name)[/b]
[b]ConfigFileNotFound: 'plugin geowelcome cannot be loaded without a configuration file'[/b]
[b]171110 09:21:22 VERBOSE  'Avd is not a built-in plugin (No module named avd)'[/b]
[b]171110 09:21:22 VERBOSE  u'Trying external plugin directory : /home/call/b3ag/b3/extplugins'[/b]
[b]171110 09:21:22 ERROR    'Could not load plugin avd'[/b]
[b]Traceback (most recent call last):[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 859, in loadPlugins[/b]
[b]    mod = self.pluginImport(p['name'], p['path'])[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 1076, in pluginImport[/b]
[b]    fp, pathname, description = imp.find_module(name, [self.config.get_external_plugins_dir()])[/b]
[b]ImportError: No module named avd[/b]
[b]171110 09:21:23 BOT      u'Loading configuration file /home/call/b3ag/b3/conf/plugin_firstkill.ini for plugin firstkill'[/b]
[b]171110 09:21:23 BOT      u'Loading configuration file /home/call/b3ag/b3/conf/plugin_location.ini for plugin location'[/b]
[b]171110 09:21:23 DEBUG    'Plugin location has unmet dependency : geolocation : trying to load plugin geolocation...'[/b]
[b]171110 09:21:23 DEBUG    'Looking for plugin geolocation module and configuration file...'[/b]
[b]171110 09:21:23 VERBOSE  'Geolocation is not a built-in plugin (No module named requests)'[/b]
[b]171110 09:21:23 VERBOSE  u'Trying external plugin directory : /home/call/b3ag/b3/extplugins'[/b]
[b]171110 09:21:23 ERROR    'Could not load plugin location'[/b]
[b]Traceback (most recent call last):[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 935, in loadPlugins[/b]
[b]    plugin_list += _get_plugin_data(plugin_data)[/b]
[b]  File "/home/call/b3ag/b3/parser.py", line 914, in _get_plugin_data[/b]
[b]    raise MissingRequirement('missing required plugin: %s : %s' % (r, extract_tb(sys.exc_info()[2])), ex)[/b]
[b]MissingRequirement: missing required plugin: geolocation : [('/home/call/b3ag/b3/parser.py', 911, '_get_plugin_data', 'collection += _get_plugin_data(PluginData(name=r))'), ('/home/call/b3ag/b3/parser.py', 924, '_get_plugin_data', 'p_data.module = self.pluginImport(p_data.name)'), ('/home/call/b3ag/b3/parser.py', 1076, 'pluginImport', 'fp, pathname, description = imp.find_module(name, [self.config.get_external_plugins_dir()])')] - "ImportError('No module named geolocation',)"[/b]
[b]171110 09:21:23 BOT      'Sorting plugins according to their dependency tree...'[/b]
[b]171110 09:21:23 BOT      'Ready to create plugin instances: admin, firstkill'[/b]
[b]

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2640
Re: b3 plugin load fail
« Reply #3 on: November 10, 2017, 08:45:12 PM »
Read my previous reply and your log file

Offline ghost173

  • Newbie
  • *
  • Posts: 5
Re: b3 plugin load fail
« Reply #4 on: November 11, 2017, 03:37:11 PM »
don't know how to fix parser.py error 

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2640
Re: b3 plugin load fail
« Reply #5 on: November 11, 2017, 11:04:05 PM »
Read my first reply

 


Rate this page +1 at Google Search