[RÉSOLU] Problème SQL B3

Tout ce qui concerne la configuration et l'administration des serveurs.
Rendez-vous dans Outils de communication & communautaires pour la conception de sites Internet.
RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Problème SQL B3

Message par RoToR » 01 mars 2011, 13:20

Bonjour a tous,

Je viens de suivre, en entier, le tuto de UrT france sur l' installation de B3. J' ai redémarré mon ordi, (je suis sous ubuntu);

Mais voilà, je lance mon serveur UrT puis B3 avec la commande:

Code : Tout sélectionner

python ./b3_run.py -c /home/nico/b3/b3/conf/b3.xml


Puis je ne sais pas trop ce qu' il ce passe mais en gros le bot ne ce lance pas. Je vais donc voir dans le log de B3 et voilà ce qu' il y à d' inscrit:

Code : Tout sélectionner

110301 12:07:00   BOT       www.BigBrotherBot.com (b3) v1.2.1 [posix] (Daniel)
110301 12:07:00   BOT       Python: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
110301 12:07:00   BOT       Starting Iourt41Parser server for 127.0.0.1:27961
110301 12:07:00   BOT       --------------------------------------------
110301 12:07:00   BOT       Attempting to connect to database mysql://root:******@localhost/b3...
110301 12:07:00   CRITICAL   No module named MySQLdb. You need to install python-myqsldb. Look for 'dependencies' in B3 documentation.
Traceback (most recent call last):
  File "/home/nico/b3/b3/storage.py", line 152, in getConnection
    import MySQLdb
ImportError: No module named MySQLdb


Je ne suis pas très "calé" en sql ni en python, mais j' ai compris qu' il ne trouve rien du nom de "MySQLdb" or dans le tuto de UrT france, à aucun moment on parle de ca. Je ne sois pas comment palier à ce "manque", donc si une âme charitable voulais bien m' aider, je lui serais reconnaissante. :roll:

Bonne journée,
RoToR{Z}

Domie
Messages : 237
Enregistré le : 19 févr. 2010, 14:46

Re: Problème SQL B3

Message par Domie » 01 mars 2011, 13:26

C'est clair pourtant, il faut installer MySQLdb.

RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Re: Problème SQL B3

Message par RoToR » 01 mars 2011, 13:38

Euh, oui mais comment faire? Parce que j' ai pas trouvé grand chose sur internet et quand je tape:

Code : Tout sélectionner

sudo apt-get install python-myqsldb

Il me dis qu' il trouve rien.
Et pour installer MySQLdb je ne sais pas comment faire car quand je tape:

Code : Tout sélectionner

sudo apt-get install MySQLdb

La non plus il trouve rien.

Bonne journée,
RoToR{Z}

Barbatos
Développement & Maintenance UrT France
Messages : 5056
Enregistré le : 30 déc. 2008, 23:10

Re: Problème SQL B3

Message par Barbatos » 01 mars 2011, 15:07

RoToR a écrit :

Code : Tout sélectionner

sudo apt-get install python-myqsldb

Il me dis qu' il trouve rien.


Le paquet s'appelle python-mysqldb et non python-myqsldb.
<MajkiFajki> Carmack compared to you is a vegetable
Twitter

Avatar du membre
PtitBigorneau
Messages : 516
Enregistré le : 19 oct. 2008, 13:50
Localisation : brest

Re: Problème SQL B3

Message par PtitBigorneau » 01 mars 2011, 18:48

dans l ordre

Code : Tout sélectionner

apt-get install apache2 apache2-doc mysql-server 
mysql_secure_installation
apt-get install php5 libapache2-mod-php5 php5-mysql
apt-get install python-mysqldb
apt-get install phpmyadmin
 ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin
-[TPF]-PtitBigorneau
http://www.PtitBigorneau.fr

RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Re: Problème SQL B3

Message par RoToR » 01 mars 2011, 22:22

Oki merci ^^

Je fais ce que tu ma proposé PitiBigorneau demain et je reviens te dire.

Bonne soirée,
RoTo{Z}

Avatar du membre
TorxX
Messages : 137
Enregistré le : 01 mars 2011, 10:42
Localisation : Fageyrol.City

Re: Problème SQL B3

Message par TorxX » 03 mars 2011, 12:17

petite question: quand on veut mettre un B3 notre ordinateur doit tourner 24/24? ou c'est l’hébergeur qui l’héberge aussi?
~~ Torx ~~

<TorxX> .noob
<Dollar> TorxX: you are 4% Noob. - (10 seconds till next question)

<TorxX> .gay
<Dollar> TorxX: you are 96% Gay - (10 seconds till next question)
<TorxX> Bot en mousse ><"

`Teva.Torx``

Avatar du membre
m3mo
Ancien responsable UTF
Messages : 3101
Enregistré le : 30 juin 2008, 08:49
Localisation : Vendée

Re: Problème SQL B3

Message par m3mo » 03 mars 2011, 12:23

Je m'y connais pas du tout mai ça parait évident que c'est l'hébergeur.

schira
Messages : 248
Enregistré le : 20 nov. 2010, 16:19
Localisation : Massilia

Re: Problème SQL B3

Message par schira » 03 mars 2011, 12:24

Oui c'est l'hébergeur.

Avatar du membre
PtitBigorneau
Messages : 516
Enregistré le : 19 oct. 2008, 13:50
Localisation : brest

Re: Problème SQL B3

Message par PtitBigorneau » 03 mars 2011, 13:47

il y a peu d'hebergeurs de serveurs de jeux qui proposent b3

tu peux heberger b3 sur ton ordi
il fonctionne seulement quand ton ordi est allumé et b3 lancé biensur
-[TPF]-PtitBigorneau
http://www.PtitBigorneau.fr

Avatar du membre
TorxX
Messages : 137
Enregistré le : 01 mars 2011, 10:42
Localisation : Fageyrol.City

Re: Problème SQL B3

Message par TorxX » 03 mars 2011, 16:41

Mercis pour votre réponse je vais demander a mon hébergeur
~~ Torx ~~

<TorxX> .noob
<Dollar> TorxX: you are 4% Noob. - (10 seconds till next question)

<TorxX> .gay
<Dollar> TorxX: you are 96% Gay - (10 seconds till next question)
<TorxX> Bot en mousse ><"

`Teva.Torx``

RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Re: Problème SQL B3

Message par RoToR » 20 mars 2011, 11:36

PtitBigorneau a écrit :dans l ordre

Code : Tout sélectionner

apt-get install apache2 apache2-doc mysql-server 
mysql_secure_installation
apt-get install php5 libapache2-mod-php5 php5-mysql
apt-get install python-mysqldb
apt-get install phpmyadmin
 ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin


Héhé, ok mais c' est ce qu' il y a dans le tuto d' UrT France, j' ai quand même retesté mais ca ne marche toujours pas :(
Je n' ai pas sous la main le log B3 mais quand je peux je viens le poster.

Bonne journée,
RoToR{Z}

RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Re: Problème SQL B3

Message par RoToR » 20 mars 2011, 16:29

Bon, et bien j' ai réussit a régler ce problème mais un autre apparait :cry:

Code : Tout sélectionner

110320 15:24:50   BOT       www.BigBrotherBot.com (b3) v1.2.1 [posix] (Daniel)
110320 15:24:50   BOT       Python: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
110320 15:24:50   BOT       Starting Iourt41Parser server for localhost:17961
110320 15:24:50   BOT       --------------------------------------------
110320 15:24:50   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
110320 15:24:50   BOT       Connected to database [1 times]
110320 15:24:50   ERROR   STDERR Traceback (most recent call last):

110320 15:24:50   ERROR   STDERR   File "./b3_run.py", line 28, in <module>

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR main()
110320 15:24:50   ERROR   STDERR

110320 15:24:50   ERROR   STDERR   File "./b3_run.py", line 25, in main

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR b3.run.main()

110320 15:24:50   ERROR   STDERR   File "/home/nico/b3/b3/run.py", line 121, in main

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR run(config=options.config)

110320 15:24:50   ERROR   STDERR   File "/home/nico/b3/b3/run.py", line 100, in run

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR b3.start(config)

110320 15:24:50   ERROR   STDERR   File "/home/nico/b3/b3/__init__.py", line 98, in start

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR console = parser(conf)

110320 15:24:50   ERROR   STDERR   File "/home/nico/b3/b3/parser.py", line 221, in __init__

110320 15:24:50   ERROR   STDERR     
110320 15:24:50   ERROR   STDERR if self.config.get('server','game_log')[0:6] == 'ftp://' :

110320 15:24:50   ERROR   STDERR TypeError
110320 15:24:50   ERROR   STDERR :
110320 15:24:50   ERROR   STDERR 'NoneType' object is unsubscriptable
110320 15:24:50   ERROR   STDERR


J' ai dus faire un truc pas bien dans une vie antérieure, je suis en train de le payer xD.
Si vous avez une idée de comment résoudre ce problème, :) je suis preneur :)

Amicalement,
RoToR{Z}

Avatar du membre
PtitBigorneau
Messages : 516
Enregistré le : 19 oct. 2008, 13:50
Localisation : brest

Re: Problème SQL B3

Message par PtitBigorneau » 20 mars 2011, 18:03

verifie le chemin de ton fichier games.log dans le fichier b3.xml
-[TPF]-PtitBigorneau
http://www.PtitBigorneau.fr

RoToR
Messages : 19
Enregistré le : 06 déc. 2010, 19:43

Re: Problème SQL B3

Message par RoToR » 20 mars 2011, 18:27

Héhé, t' est trop fort pitibigorneau, mais on va voir si tu peux passer "maître b3" xD

Maintenant c' est les plug-ins qui font bugger mais je ne sais pas non plus comment résoudre ce problème, car à priori tout est à ca place je suis allé vérifier:

Code : Tout sélectionner

110320 17:23:37   BOT       www.BigBrotherBot.com (b3) v1.2.1 [posix] (Daniel)
110320 17:23:37   BOT       Python: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
110320 17:23:37   BOT       Starting Iourt41Parser server for 192.168.0.19:27961
110320 17:23:37   BOT       --------------------------------------------
110320 17:23:37   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
110320 17:23:37   BOT       Connected to database [1 times]
110320 17:23:37   BOT       Game log /home/nico/.q3a/q3ut4/urtS.log
110320 17:23:37   BOT       Starting bot reading file /home/nico/.q3a/q3ut4/urtS.log
110320 17:23:37   VERBOSE   RCON sending (192.168.0.19:27961) status
110320 17:23:37   VERBOS2   RCON: Received map: Cube03
num score ping name            lastmsg address               qport rate
--- ----- ---- --------------- ------- --------------------- ----- -----
  4     0    6 RoToR{Z}^7              0 192.168.0.254:27960     468  8000
110320 17:23:37   ERROR   STDERR Traceback (most recent call last):

110320 17:23:37   ERROR   STDERR   File "./b3_run.py", line 28, in <module>

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR main()
110320 17:23:37   ERROR   STDERR

110320 17:23:37   ERROR   STDERR   File "./b3_run.py", line 25, in main

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR b3.run.main()

110320 17:23:37   ERROR   STDERR   File "/home/nico/b3/b3/run.py", line 121, in main

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR run(config=options.config)

110320 17:23:37   ERROR   STDERR   File "/home/nico/b3/b3/run.py", line 100, in run

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR b3.start(config)

110320 17:23:37   ERROR   STDERR   File "/home/nico/b3/b3/__init__.py", line 98, in start

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR console = parser(conf)

110320 17:23:37   ERROR   STDERR   File "/home/nico/b3/b3/parser.py", line 285, in __init__

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR self.loadPlugins()

110320 17:23:37   ERROR   STDERR   File "/home/nico/b3/b3/parser.py", line 417, in loadPlugins

110320 17:23:37   ERROR   STDERR     
110320 17:23:37   ERROR   STDERR priority = int(p.get('priority'))

110320 17:23:37   ERROR   STDERR TypeError
110320 17:23:37   ERROR   STDERR :
110320 17:23:37   ERROR   STDERR int() argument must be a string or a number, not 'NoneType'
110320 17:23:37   ERROR   STDERR


Ca commence à devenir prise de tête :cry:

Amicalement,
RoToR{Z}

Répondre