doesn't update the database of game

Bug #673258 reported by Emanuele FANTON
78
This bug affects 18 people
Affects Status Importance Assigned to Milestone
wiithon
Fix Released
High
Ricardo Marmolejo García

Bug Description

ubuntu 10.10

Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
Now i'm on 10.10 and i had some problem updating the internal database from wiitdb...
There are several problem...
I solved them all, I hope...
First, I'have not write permission on /usr/share/wiithon and the wiittdb.zip file can't be written...
Fixed this the file dowloaded from internet have only one entry...
I fixed the problems changing this rows on your program..

file gui.py
changed
    def ActualizarWiiTDB(self):
 self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB) # + buffer
 self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB ) # + buffer

file wiitdb_xml.py
from line 98 now we have...
        newfichXML=os.path.join("/tmp",self.fichXML)
        if os.path.exists(newfichXML) and descargado_y_ok:
            xmldoc = libxml2.parseFile(newfichXML)
            ctxt = xmldoc.xpathNewContext()
            nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]

            if self.callback_empieza_importar:
                self.callback_empieza_importar(newfichXML)

file util.py
line 454
zip.extract(file_out)
TO
zip.extract(file_out,"/tmp")

file trabajo.py
line 468
xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
TO
xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',

I Know now i'm going to download all the database, but now it works....
waiting for news....bye bye

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

Dear Emanuele,
I tried to apply the patches you posted,but I found that the size of the downloaded file was only 360 bytes and the zip file is instead a text file with the description error 403 "permission denied".

I have often encountered this problem by automating procedures for downloading data so I decided to do a test by deriving the class "urllib" changing the useragent of the web request. That's the trick! Probably Wiitdb verifies whether the request is made by a person or a routine by checking the user-agent.

Here's the code injected at the top of the file "util.py" (from line 28)

class AppURLopener(urllib.FancyURLopener):
    version = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

urllib._urlopener = AppURLopener()

---
This worked for me.

Now I'm trying to see if it is possible to download the zip file filtered only for games in WBFS partition.

Revision history for this message
Emanuele FANTON (emanuele-fanton) wrote : Re: [Bug 673258] Re: doesn't update the database of game
Download full text (3.2 KiB)

Ciao, parli italiano?
presupponendo di si...ti dirò che secondo me ci sono problemi a livello di
wiitdb...
in effetti ho fatto un'altra modifica per usare wget al posto della libreria
python per scaricare i file...
ti interessa anche questa modifica..

2010/11/20 Gabriele Alessandrini <email address hidden>

> Dear Emanuele,
> I tried to apply the patches you posted,but I found that the size of the
> downloaded file was only 360 bytes and the zip file is instead a text file
> with the description error 403 "permission denied".
>
> I have often encountered this problem by automating procedures for
> downloading data so I decided to do a test by deriving the class
> "urllib" changing the useragent of the web request. That's the trick!
> Probably Wiitdb verifies whether the request is made by a person or a
> routine by checking the user-agent.
>
> Here's the code injected at the top of the file "util.py" (from line
> 28)
>
> class AppURLopener(urllib.FancyURLopener):
> version = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6;
> .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR
> 3.5.30729)"
>
> urllib._urlopener = AppURLopener()
>
> ---
> This worked for me.
>
> Now I'm trying to see if it is possible to download the zip file
> filtered only for games in WBFS partition.
>
> --
> doesn't update the database of game
> https://bugs.launchpad.net/bugs/673258
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: New
>
> Bug description:
> ubuntu 10.10
>
> Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
> Now i'm on 10.10 and i had some problem updating the internal database from
> wiitdb...
> There are several problem...
> I solved them all, I hope...
> First, I'have not write permission on /usr/share/wiithon and the
> wiittdb.zip file can't be written...
> Fixed this the file dowloaded from internet have only one entry...
> I fixed the problems changing this rows on your program..
>
> file gui.py
> changed
> def ActualizarWiiTDB(self):
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB)
> # + buffer
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB
> ) # + buffer
>
>
> file wiitdb_xml.py
> from line 98 now we have...
> newfichXML=os.path.join("/tmp",self.fichXML)
> if os.path.exists(newfichXML) and descargado_y_ok:
> xmldoc = libxml2.parseFile(newfichXML)
> ctxt = xmldoc.xpathNewContext()
> nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]
>
> if self.callback_empieza_importar:
> self.callback_empieza_importar(newfichXML)
>
> file util.py
> line 454
> zip.extract(file_out)
> TO
> zip.extract(file_out,"/tmp")
>
> file trabajo.py
> line 468
> xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
> TO
> xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',
>
>
>
> I Know now i'm going to download all the database, but now it works....
> waiting for news....bye bye
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/673258/...

Read more...

Revision history for this message
Emanuele FANTON (emanuele-fanton) wrote :
Download full text (3.4 KiB)

I'm trying your code too....

2010/11/20 Emanuele Fanton <email address hidden>

> Ciao, parli italiano?
> presupponendo di si...ti dirò che secondo me ci sono problemi a livello di
> wiitdb...
> in effetti ho fatto un'altra modifica per usare wget al posto della
> libreria python per scaricare i file...
> ti interessa anche questa modifica..
>
> 2010/11/20 Gabriele Alessandrini <email address hidden>
>
> Dear Emanuele,
>> I tried to apply the patches you posted,but I found that the size of the
>> downloaded file was only 360 bytes and the zip file is instead a text file
>> with the description error 403 "permission denied".
>>
>> I have often encountered this problem by automating procedures for
>> downloading data so I decided to do a test by deriving the class
>> "urllib" changing the useragent of the web request. That's the trick!
>> Probably Wiitdb verifies whether the request is made by a person or a
>> routine by checking the user-agent.
>>
>> Here's the code injected at the top of the file "util.py" (from line
>> 28)
>>
>> class AppURLopener(urllib.FancyURLopener):
>> version = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.6;
>> .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR
>> 3.5.30729)"
>>
>> urllib._urlopener = AppURLopener()
>>
>> ---
>> This worked for me.
>>
>> Now I'm trying to see if it is possible to download the zip file
>> filtered only for games in WBFS partition.
>>
>> --
>> doesn't update the database of game
>> https://bugs.launchpad.net/bugs/673258
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>> Status in Wiithon - WBFS Partition Manager: New
>>
>> Bug description:
>> ubuntu 10.10
>>
>> Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
>> Now i'm on 10.10 and i had some problem updating the internal database
>> from wiitdb...
>> There are several problem...
>> I solved them all, I hope...
>> First, I'have not write permission on /usr/share/wiithon and the
>> wiittdb.zip file can't be written...
>> Fixed this the file dowloaded from internet have only one entry...
>> I fixed the problems changing this rows on your program..
>>
>> file gui.py
>> changed
>> def ActualizarWiiTDB(self):
>>
>> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB)
>> # + buffer
>>
>> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB
>> ) # + buffer
>>
>>
>> file wiitdb_xml.py
>> from line 98 now we have...
>> newfichXML=os.path.join("/tmp",self.fichXML)
>> if os.path.exists(newfichXML) and descargado_y_ok:
>> xmldoc = libxml2.parseFile(newfichXML)
>> ctxt = xmldoc.xpathNewContext()
>> nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]
>>
>> if self.callback_empieza_importar:
>> self.callback_empieza_importar(newfichXML)
>>
>> file util.py
>> line 454
>> zip.extract(file_out)
>> TO
>> zip.extract(file_out,"/tmp")
>>
>> file trabajo.py
>> line 468
>> xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
>> TO
>> xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',
>>
>>
>>
>> I Know...

Read more...

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

Ciao Emauele,
con wget hai avuto più fortuna?
Comunque se ti interessa ho corretto tutti i bug e ti confermo che si tratta di un problema di user-agent; ho fatto una routine in C# per aggiornare il DB sqlite che usa l'applicazione perché anche lì ho notato che non sempre aggiorna le descrizioni dei giochi e anche lì ho dovuto mascherare la chiamata fingendo di essere un browser.

----

For those interested, I fixed all the bugs reported and I can confirm that is a user-agent matter: I wrote a routine in C # to modify the DB used by the application to store games info. I noticed that sometimes descriptions are not updated even if they are in the wiitdb.xml.

Revision history for this message
Emanuele FANTON (emanuele-fanton) wrote :

account skype?emanuele.fanton di piove di sacco.....

io con wget ho risolto...
però prendo tutto il database....
dovrei rimettere il codice per prenderne solo una parte ma non so se vale la
pena....che ne dici?

2010/11/20 Gabriele Alessandrini <email address hidden>

> Ciao Emauele,
> con wget hai avuto più fortuna?
> Comunque se ti interessa ho corretto tutti i bug e ti confermo che si
> tratta di un problema di user-agent; ho fatto una routine in C# per
> aggiornare il DB sqlite che usa l'applicazione perché anche lì ho notato che
> non sempre aggiorna le descrizioni dei giochi e anche lì ho dovuto
> mascherare la chiamata fingendo di essere un browser.
>
>
> ----
>
> For those interested, I fixed all the bugs reported and I can confirm
> that is a user-agent matter: I wrote a routine in C # to modify the DB
> used by the application to store games info. I noticed that sometimes
> descriptions are not updated even if they are in the wiitdb.xml.
>
> --
> doesn't update the database of game
> https://bugs.launchpad.net/bugs/673258
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: New
>
> Bug description:
> ubuntu 10.10
>
> Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
> Now i'm on 10.10 and i had some problem updating the internal database from
> wiitdb...
> There are several problem...
> I solved them all, I hope...
> First, I'have not write permission on /usr/share/wiithon and the
> wiittdb.zip file can't be written...
> Fixed this the file dowloaded from internet have only one entry...
> I fixed the problems changing this rows on your program..
>
> file gui.py
> changed
> def ActualizarWiiTDB(self):
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB)
> # + buffer
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB
> ) # + buffer
>
>
> file wiitdb_xml.py
> from line 98 now we have...
> newfichXML=os.path.join("/tmp",self.fichXML)
> if os.path.exists(newfichXML) and descargado_y_ok:
> xmldoc = libxml2.parseFile(newfichXML)
> ctxt = xmldoc.xpathNewContext()
> nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]
>
> if self.callback_empieza_importar:
> self.callback_empieza_importar(newfichXML)
>
> file util.py
> line 454
> zip.extract(file_out)
> TO
> zip.extract(file_out,"/tmp")
>
> file trabajo.py
> line 468
> xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
> TO
> xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',
>
>
>
> I Know now i'm going to download all the database, but now it works....
> waiting for news....bye bye
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/673258/+subscribe
>

--
Saluti da Emanuele

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

Sinceramente non c'è molta differenza fra lo zip intero e quello specifico per i giochi caricati su WBFS: guadagni qualche secondo durante il parsing dell'xml.

TI confesso che ho decisto di risolvere i bug sia per dare un contributo a questo applicativo (che ritengo molto valido rispetto alle controparti su windows) sia per curiosità: non ho mai lavorato in python e volevo vedere se vale la pena di studiare questo linguaggio, lo trovo molto intuitivo.

Pensa che fino alla settimana scorsa non avevo mai aperto un sorgente, poi quando si è presentato questo bug ho cercato qui la soluzione e, prendendo lo spunto da quello che hai scritto tu, ho fatto qualche prova...

Sto riscrivendo la routine che compone l'url per fare il download filtrato, la trovo un po' "disordinata"... ad ogni modo se hai risolto il problema con wget credo tu possa riattivarla tranquillamente.

ciao

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

ps. ho scritto una cosa non corretta: sto riscrivendo sia il parser dell'xml sia la funzione che costruisce l'url per il download filtrato.

Revision history for this message
Emanuele FANTON (emanuele-fanton) wrote :

concordo...il python è molto intuitivo e divertente...ormai a parte le
manutenzioni di vecchio software sviluppo solo con quello i miei
gestionali...
i lo stò usando ormai da un pò,,,,sai se ci sono motivi ostativi all'uso di
wget?
vogliono usare per forza la libreria python?

2010/11/20 Gabriele Alessandrini <email address hidden>

> ps. ho scritto una cosa non corretta: sto riscrivendo sia il parser
> dell'xml sia la funzione che costruisce l'url per il download filtrato.
>
> --
> doesn't update the database of game
> https://bugs.launchpad.net/bugs/673258
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: New
>
> Bug description:
> ubuntu 10.10
>
> Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
> Now i'm on 10.10 and i had some problem updating the internal database from
> wiitdb...
> There are several problem...
> I solved them all, I hope...
> First, I'have not write permission on /usr/share/wiithon and the
> wiittdb.zip file can't be written...
> Fixed this the file dowloaded from internet have only one entry...
> I fixed the problems changing this rows on your program..
>
> file gui.py
> changed
> def ActualizarWiiTDB(self):
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB)
> # + buffer
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB
> ) # + buffer
>
>
> file wiitdb_xml.py
> from line 98 now we have...
> newfichXML=os.path.join("/tmp",self.fichXML)
> if os.path.exists(newfichXML) and descargado_y_ok:
> xmldoc = libxml2.parseFile(newfichXML)
> ctxt = xmldoc.xpathNewContext()
> nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]
>
> if self.callback_empieza_importar:
> self.callback_empieza_importar(newfichXML)
>
> file util.py
> line 454
> zip.extract(file_out)
> TO
> zip.extract(file_out,"/tmp")
>
> file trabajo.py
> line 468
> xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
> TO
> xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',
>
>
>
> I Know now i'm going to download all the database, but now it works....
> waiting for news....bye bye
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/673258/+subscribe
>

--
Saluti da Emanuele

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

no che mi risulti...
a proposito, per scaricare le solo informazioni dei giochi che hai su hdd bisogno la funzione modificata è questa:

    def ActualizarWiiTDB(self):
        buffer = ""

        if (len(self.lJuegos)<400):
            for juego in self.lJuegos:
                buffer = buffer + ",%s" % juego.idgame

            if (len(buffer)>0):
                buffer = "&ID=" + buffer[1:]

        self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB + buffer)
        self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB + buffer)

        buffer = ""

Revision history for this message
ABNormal (abnormal1962) wrote :

scusate ragazzi... ma non varrebbe la pena di aggiornare la versione, dal momento che con la modifica diutil.py (linea 28, i dati Mozilla) e la variante nella gui, il programma scarica i dati da wiitdb?

grazie mille dell'impegno, come sempre

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

Volentieri... devo postare qui la patch oppure devo contattare gli autori del progamma?

Revision history for this message
Emanuele FANTON (emanuele-fanton) wrote :

devi contattare gli amministratori....

P.S.
stanotte sono ridiventato papà....

:)

2010/11/21 Gabriele Alessandrini <email address hidden>

> Volentieri... devo postare qui la patch oppure devo contattare gli
> autori del progamma?
>
> --
> doesn't update the database of game
> https://bugs.launchpad.net/bugs/673258
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: New
>
> Bug description:
> ubuntu 10.10
>
> Alredy contacted you for problem on lucid with sqlalchemy.. remember me?
> Now i'm on 10.10 and i had some problem updating the internal database from
> wiitdb...
> There are several problem...
> I solved them all, I hope...
> First, I'have not write permission on /usr/share/wiithon and the
> wiittdb.zip file can't be written...
> Fixed this the file dowloaded from internet have only one entry...
> I fixed the problems changing this rows on your program..
>
> file gui.py
> changed
> def ActualizarWiiTDB(self):
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_ZIP_WIITDB)
> # + buffer
>
> self.poolTrabajo.nuevoTrabajoActualizarWiiTDB(self.core.prefs.URL_SECOND_ZIP_WIITDB
> ) # + buffer
>
>
> file wiitdb_xml.py
> from line 98 now we have...
> newfichXML=os.path.join("/tmp",self.fichXML)
> if os.path.exists(newfichXML) and descargado_y_ok:
> xmldoc = libxml2.parseFile(newfichXML)
> ctxt = xmldoc.xpathNewContext()
> nodo = ctxt.xpathEval("//*[name() = 'datafile']")[0]
>
> if self.callback_empieza_importar:
> self.callback_empieza_importar(newfichXML)
>
> file util.py
> line 454
> zip.extract(file_out)
> TO
> zip.extract(file_out,"/tmp")
>
> file trabajo.py
> line 468
> xmlWiiTDB = WiiTDBXML(url,'wiitdb.zip','wiitdb.xml',
> TO
> xmlWiiTDB = WiiTDBXML(url,'/tmp/wiitdb.zip','wiitdb.xml',
>
>
>
> I Know now i'm going to download all the database, but now it works....
> waiting for news....bye bye
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/673258/+subscribe
>

--
Saluti da Emanuele

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

AUGUUUUUUUURI!!!!!

COmplimentoni!

Ho contattato Ricardo per dirgli degli avanzamenti...

Ora corri a goderti il pargolo/a

Appena mi risponde vi faccio sapere

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Hi all,

I hope you don't think I'm a rude boy, but please, can someone join a diff file of the changes ?

The proposed fix is hard to understand like that ...

A++

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Ok, forget my previous message and here is the patch against the trunk code revision 493.

By the way, applying this patch remove the error message, but wiithon seem to hang (not responding) ...

Hope it help ...

A++

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Ok, since I'm very lame at python, I have finally asked help in #python irc channel, where a guy named 'sirpengi' explain me the importance of indentation with python language ...

So, finally here the patch working fine right now ...

Hope it help ...

A++

Revision history for this message
Gabriele Alessandrini (alessandrinig) wrote :

HI,
'm glad to know that the patches work.
I contacted Ricardo but did not give me no answer yet.

t 'nice to know the help given was used to solve some issues, The next time I fix any bugs I will send also the DIFF to make it easier to understand what I changed

Anyway it was fun working with you all.
See you soon

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :

Vi ringrazio per le dritte e l'impegno che ci state mettendo...
Concordo che Wiithon è davvero un ottimo programma per la gestione delle periferiche per la Wii, migliore di molti di quelli che girano sotto winzozz...
Uso la v1.21beta e da qualche giorno mi sta dando questo bug...
Ma purtroppo non capendo nulla di programmazione, non ho idea di come applicare la patch che proponete...
Non mi resta aspettare e sperare che Ricardo non ci abbia dimenticato...

O.T.: vista la vostra abilità nella compilazione di sorgenti, non c'è la possibilità di aggiungere la funzione, nella prossima release del programma, di poter passare diversi giochi per volta da una periferica wbfs ad un altra, dato che al momente si può copiare un solo gioco per volta, o clonare un intero HD...

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Hi Vincenzo,

Using google translate, I understand you don't know how to apply patch.

Well, here is a solution :

Open a terminal, then type :

mkdir wiithon-compilation && cd wiithon-compilation && wget https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff && bzr branch lp:wiithon trunk && cd trunk && patch -p0 -i ../Wiithon\ trunk\ -\ Fix\ Error\ importando\ wiitdb.xml\:\ No\ existe\ el\ XML-\ WORKING\ with\ trunk\ revision\ 493.diff && DEBEMAIL="COLIN Stephane <email address hidden>" dch --create --package "wiithon" --newversion "1.21-trunk-revision-$(cat .bzr/branch/last-revision | awk '{print $1}')" Trunk new upstream release ... && dpkg-buildpackage -rfakeroot && dpkg -i ../wiithon_1.21-trunk-revision-493_i386.deb

Hope it help

A++

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

For all participants :

Can you please speak in English at least, I'm a French guy, and I don't understand Italian ;-)

A++

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :
Download full text (11.3 KiB)

You are on true, but my english is not very well, so I see there are other italians, and I speak it...

Yes my problem is to apply the patch, because I'm an Ubuntu newbie....

So thx for the command line....!

But after I've launch your command line, it says me:

***************************************************************************************************************************************************************
xino@xino-laptop:~$ mkdir wiithon-compilation && cd wiithon-compilation && wget https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff && bzr branch lp:wiithon trunk && cd trunk && patch -p0 -i ../Wiithon\ trunk\ -\ Fix\ Error\ importando\ wiitdb.xml\:\ No\ existe\ el\ XML-\ WORKING\ with\ trunk\ revision\ 493.diff && DEBEMAIL="COLIN Stephane <email address hidden>" dch --create --package "wiithon" --newversion "1.21-trunk-revision-$(cat .bzr/branch/last-revision | awk '{print $1}')" Trunk new upstream release ... && dpkg-buildpackage -rfakeroot && dpkg -i ../wiithon_1.21-trunk-revision-493_i386.deb
--2010-12-03 10:48:16-- https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff
Risoluzione di bugs.launchpad.net... 91.189.89.225
Connessione a bugs.launchpad.net|91.189.89.225|:443... connesso.
HTTP richiesta inviata, in attesa di risposta... 302 Moved Temporarily
Posizione: http://launchpadlibrarian.net/59584007/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff [segue]
--2010-12-03 10:48:19-- http://launchpadlibrarian.net/59584007/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff
Risoluzione di launchpadlibrarian.net... 91.189.89.229, 91.189.89.228
Connessione a launchpadlibrarian.net|91.189.89.229|:80... connesso.
HTTP richiesta inviata, in attesa di risposta... 200 OK
Lunghezza: 3521 (3,4K) [text/plain]
Salvataggio in: "Wiithon trunk - Fix Error importando wiitdb.xml: No existe el XML- WORKING with trunk revision 493.diff"

100%[======================================>] 3.521 --.-K/s in 0,1s

2010-12-03 10:48:19 (31,0 KB/s) - "Wiithon trunk - Fix Error importando wiitdb.xml: No existe el XML- WORKING with trunk revision 493.diff" salvato [3521/3521]

You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 493 revision(s).
patching file wiitdb_xml.py
patching file trabajo.py
patching file util.py
patching file gui.py
Il programma "dch" non è attualmente installato. È possibile installarlo digitando:
sudo apt-get install devscripts
***************************************************************************************************************************************************************

...

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Vincenzo,

Ok, so we gona try to fix step by step ...

open terminal and copy / paste :

rm -rf ~/wiithon-compilation && mkdir wiithon-compilation && cd wiithon-compilation && wget https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff && bzr branch lp:wiithon trunk && cd trunk && patch -p0 -i ../Wiithon\ trunk\ -\ Fix\ Error\ importando\ wiitdb.xml\:\ No\ existe\ el\ XML-\ WORKING\ with\ trunk\ revision\ 493.diff && DEBEMAIL="COLIN Stephane <email address hidden>" dch --create --package "wiithon" --newversion "1.21-trunk-revision-$(cat .bzr/branch/last-revision | awk '{print $1}')" Trunk new upstream release ... && dpkg-buildpackage -rfakeroot ; dpkg -i ../wiithon_1.21-trunk-revision-493_i386.deb

A++

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :
Download full text (3.4 KiB)

ok, I've paste into terminal, but always the same bug....

xino@xino-laptop:~$ rm -rf ~/wiithon-compilation && mkdir wiithon-compilation && cd wiithon-compilation && wget https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff && bzr branch lp:wiithon trunk && cd trunk && patch -p0 -i ../Wiithon\ trunk\ -\ Fix\ Error\ importando\ wiitdb.xml\:\ No\ existe\ el\ XML-\ WORKING\ with\ trunk\ revision\ 493.diff && DEBEMAIL="COLIN Stephane <email address hidden>" dch --create --package "wiithon" --newversion "1.21-trunk-revision-$(cat .bzr/branch/last-revision | awk '{print $1}')" Trunk new upstream release ... && dpkg-buildpackage -rfakeroot ; dpkg -i ../wiithon_1.21-trunk-revision-493_i386.deb
--2010-12-03 23:20:42-- https://bugs.launchpad.net/wiithon/+bug/673258/+attachment/1744145/+files/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff
Risoluzione di bugs.launchpad.net... 91.189.89.224, 91.189.89.225
Connessione a bugs.launchpad.net|91.189.89.224|:443... connesso.
HTTP richiesta inviata, in attesa di risposta... 302 Moved Temporarily
Posizione: http://launchpadlibrarian.net/59584007/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff [segue]
--2010-12-03 23:20:43-- http://launchpadlibrarian.net/59584007/Wiithon%20trunk%20-%20Fix%20Error%20importando%20wiitdb.xml%3A%20No%20existe%20el%20XML-%20WORKING%20with%20trunk%20revision%20493.diff
Risoluzione di launchpadlibrarian.net... 91.189.89.228, 91.189.89.229
Connessione a launchpadlibrarian.net|91.189.89.228|:80... connesso.
HTTP richiesta inviata, in attesa di risposta... 200 OK
Lunghezza: 3521 (3,4K) [text/plain]
Salvataggio in: "Wiithon trunk - Fix Error importando wiitdb.xml: No existe el XML- WORKING with trunk revision 493.diff"

100%[======================================>] 3.521 --.-K/s in 0,02s

2010-12-03 23:20:44 (163 KB/s) - "Wiithon trunk - Fix Error importando wiitdb.xml: No existe el XML- WORKING with trunk revision 493.diff" salvato [3521/3521]

You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 493 revision(s).
patching file wiitdb_xml.py
patching file trabajo.py
patching file util.py
patching file gui.py
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package wiithon
dpkg-buildpackage: source version 1.21-trunk-revision-493
dpkg-buildpackage: source changed by COLIN Stephane <email address hidden>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: intltool
dpkg-buildpackage: warning: Build ...

Read more...

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Vincenzo,

Ok, I propose you to reach me in IRC Chat session on irc://freenode channel #vincenzo-help

This is not the place to debug step by step dependencies troubles ;-)

When you reached the channel, type anything I have put bell alert on messages (but anyway, if I'm not on my computer you have to wait for I come back).

A++

Revision history for this message
_tus_ (guillaume-artus) wrote :

Quick comment to confirm that the patch allowed me also to update the wiidb.zip db

Thanks a lot

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :

Hi Stephane, thx for your interesting, you are an angel! :)
 I'm just return back from work, I try to open the irc channel, but my XChat can't open it...
as you can see:

*****************************************************************************************************************
 Perl interface loaded
 Python interface loaded
 Tcl plugin for XChat - Version 1.63
 Copyright 2002-2005 Daniel P. Stasinski
 http://www.scriptkitties.com/tclplugin/
 Tcl interface loaded
* Ricerca di irc.freenode.net
* Connessione a irc.freenode.net (32.1.6.176) porta 8001...
* Connessione fallita. Errore: Connessione scaduta
 Nuovo tentativo con il server successivo di FreeNode in corso...
* Disconnesso ()
*******************************************************************************************************************

maybe is too late...

however, tomorrow I've to work again, so, if you would/can, we can try to join the chat from monday, in every time you want....

I hope you understand my english :)

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Vincenzo,

I'm currently up and waiting for you on IRC.

Have a look to this extension :

https://addons.mozilla.org/fr/firefox/addon/16/

Install it and then you can reach me on IRC (Freenode, channel #vincenzo-help)

A++

Revision history for this message
COLIN Stéphane (bigbob-fun) wrote :

Vincenzo,

Better, don't install anything to connect on IRC, just use that :

http://webchat.freenode.net/

A++

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :

I've just joined #vincenzo-help into http://webchat.freenode.net/.....
I was eating, now i'm ready :)

Revision history for this message
Vincenzo Carlucci (vincenzocarlucci) wrote :

Last comment to confirm that the patch it's ok....!

Thanks for the patch, and a special thank for the COLIN Stéphane's patience....! :)

A++

Revision history for this message
JimBo (barreda-jm) wrote :

Colin's patch worked for me (Ubuntu 10.04 32bits).
Needed to install before compiling : bzr g++ devscripts debhelper
Modified command for compiling (just added "sudo" in the last dpkg -i command :

rm -rf ~/wiithon-compilation && mkdir wiithon-compilation && cd wiithon-compilation && wget https://bugs.launchpad.net/wiithon/+bug … 20493.diff && bzr branch lp:wiithon trunk && cd trunk && patch -p0 -i ../Wiithon\ trunk\ -\ Fix\ Error\ importando\ wiitdb.xml\:\ No\ existe\ el\ XML-\ WORKING\ with\ trunk\ revision\ 493.diff && DEBEMAIL="COLIN Stephane <email address hidden>" dch --create --package "wiithon" --newversion "1.21-trunk-revision-$(cat .bzr/branch/last-revision | awk '{print $1}')" Trunk new upstream release ... && dpkg-buildpackage -rfakeroot ; sudo dpkg -i ../wiithon_1.21-trunk-revision-493_i386.deb

Tada !

For people who doesn't want to compile, my i386 (32bits) deb package is here :
http://jmbhome.ovh.org/linux/wiithon_1.21-trunk-revision-493_i386.deb
And the 64bits version by Hizoka in forum.ubuntu-fr.org :
http://hizoka.funcenter.fr/linux/wiithon_1.21-trunk-revision-493_amd64.deb
(See our posts in French forum : http://forum.ubuntu-fr.org/viewtopic.php?id=431675 )

Thanks all guys for the patch !!!

Revision history for this message
Ricardo Marmolejo García (makiolo) wrote :

upload fix. Sorry for late guys.
I am very busy with university. (last year ...)

About the path, i don't use hack from emanuele. (thx for report) but it has been useful for debug.

Changed in wiithon:
assignee: nobody → Ricardo Marmolejo García (makiolo)
importance: Undecided → High
status: New → Fix Committed
Changed in wiithon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.