Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)Python-Twitter help
Pages: [1]   Go Down
  Print  
Author Topic: Python-Twitter help  (Read 746 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« on: June 27, 2011, 06:29:18 PM »

Hey guys, first time posting on the forums. I am familiar with extplugins but I dont quite understand what to do with the extra files in bantweeter. I understand the the xml file and the .py file, I just dont understand what to do with the python-twitter or simplejson

How to:
Python-Twitter?
simplejson?

I dont understand what to do with these files. I download them open up setup.py for each and nothing happens. Just a fast command prompt then exit out. IF anyone could tell me what to do with these files to get bantweeter to work.

I have posted in the bantweeter topic but no one has responded so I decided to post on here.

Thanks in advance.

Hester
« Last Edit: June 28, 2011, 09:05:41 AM by Courgette » Logged


Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: June 27, 2011, 10:26:29 PM »

This plugin requires that you install B3 from sources. This also requires that you install python and python-mysql on the computer that runs B3
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #2 on: June 28, 2011, 08:51:54 AM »

Ya I have 4 servers running b3 already. With pythontosql, I was just wondering what to do with the python to sql files. I am not a noob with extplugins, just need a little jump start in the right direction.

THanks
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: June 28, 2011, 09:07:30 AM »

you need to install the two additional python modules as described in the first post of the b3 twitter plugin topic. Make sure you have them installed for the version of python you have
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #4 on: June 28, 2011, 11:59:39 AM »

Maybe I don't have the right version of python. What version do you have?

Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #5 on: June 28, 2011, 12:08:51 PM »

Version 2.6 and 2.7 seem to be best
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #6 on: June 28, 2011, 12:13:59 PM »

Version 2.6 and 2.7 seem to be best

Hmm maybe that's the problem ibhave python 2.5 okay I will try that lator today thanks
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #7 on: June 28, 2011, 12:34:30 PM »

2.5 should work...
I was just saying I notice less issues with those 2 version (ofc, all my B3 bots use FTP, so I think 2.6 is minimal for me).
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #8 on: June 28, 2011, 07:41:13 PM »

Okay so I have successfully executed the python-twitter setup.py file, and the simplejson setup.py I ran all the stuff I could. Now I get this error in b3.




110628 17:36:57  BOT      'Plugin mute (1.0 - Spoon) loaded'
110628 17:36:57  BOT      'Loading Plugin #14 twitterban [C:\\BigBrotherBot\\extplugins\\conf\\twitterban.xml]'
110628 17:36:57  INFO  'Could not load built in plugin twitterban (No module named twitterban)'
110628 17:36:57  INFO  'trying external plugin directory : C:\\BigBrotherBot\\extplugins'
110628 17:36:57  CRITICAL  'Error loading plugin: No module named twitter'
Traceback (most recent call last):
  File "b3\parser.pyo", line 591, in loadPlugins
  File "b3\parser.pyo", line 704, in pluginImport
  File "C:\BigBrotherBot\extplugins\twitterban.py", line 27, in <module>
ImportError: No module named twitter





Anyone could help me out?
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #9 on: June 28, 2011, 09:58:30 PM »

it looks like the version of python you are using to run B3 is unaware of any twitter module installation.

You might had an error while installing the python-twitter module, or installed it for the wrong version of python (assuming you have more than one on your computer)
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #10 on: June 29, 2011, 09:54:27 AM »

I have updated from python 2.5 to 2.7

I will try my 2.5 install too.

Could I use someone elses compiled .py file? It would save me the trouble. Thanks
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #11 on: June 29, 2011, 10:42:13 AM »

.py files aren't compiled. You would still need python and stuff
Logged

Tags: Python  Twitter 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal