Hi,
- - - - English:
I have a locally installed MediaWiki and would like to use pywikibot there. I'm using Python 2.7. I could already use the bot at Wikipedia. Local I still do not get the software running.
I have the contents of the family file attached below. Maybe someone knows how the file should look to get the software working.
Either the family file hasn't been found or "a" software stopped the access. I don't really understand the error messages.
Does anybody runs the pywikibot on his local installed MediaWiki and could give me an example of a runnable family-file!? This would be fine.
Thanks!
Yours Pixewakb
- - - - German:
Ich habe ein lokal installiertes MediaWiki und möchte gern pywikibot hier nutzen. Ich verwende Python 2.7. Den Bot konnte ich bei Wikipedia schon nutzen. Lokal habe ich die Software noch nicht zum Laufen bekommen.
Ich habe den Inhalt der family-Datei unten angefügt. Vielleicht weiß jemand, wie die Datei aussehen muss, um die Software in Betrieb zu nehmen.
Entweder wurde bislang die family-Datei nicht gefunden oder aber die Software stoppte den Zugriff. Ich werde aus den Fehlermeldungen nicht schlau.
Betreibt jemand den Bot lokal und könnte mir eine Kopie oder ein Beispiel einer funktionierenden family-Datei geben???
Besten Dank
Pixewakb
- - - - Content of my TEST_family.py-file:
# -*- coding: utf-8 -*-
import family
# Put a short project description here.
class Family(family.Family):
def __init__(self): family.Family.__init__(self) self.name = 'TEST' # Set the family name; this should be the same as in the filename. self.langs = { 'de': 'localhost', # Put the hostname here. } # Translation used on all wikis for the different namespaces. # Most namespaces are inherited from family.Family. # Check the family.py file (in main directory) to see the standard # namespace translations for each known language. # You only need to enter translations that differ from the default. self.namespaces[4] = { '_default': u'TEST', # Specify the project namespace here. } self.namespaces[5] = { '_default': u'TEST Diskussion:', # Specify the talk page of the project namespace here. }
def version(self, code): return "1.22.6" # The MediaWiki version used. Not very important in most cases.
def scriptpath(self, code): return '/testbereich/mediawiki' # The relative path of index.php, api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w, # depending on the folder where your mediawiki program # is located. # Note: Do not _include_ index.php, etc.
- - - - URL to my wiki
http://localhost/testbereich/mediawiki/index.php/Spezial:Beobachtungsliste
Hi Hans, for testing purposes I have a local wiki setup and this is my family file[1] using [2] as URL. But it would be more helpful if you chould show the error messages including the trace backs. Also the location of that file is important (relative to the other files) regarding your comment that it didn't find it. And depending on the location if must be added to the user-config.py (if it's in pywikibot/families/ you don't need to do that).
Fabian
[1] http://paste.ubuntu.com/10361696/ [2] http://localhost/mw/index.php/Main_Page
2015-02-22 20:03 GMT+01:00 Hans Müller pixewakb@gmail.com:
Hi,
- English:
I have a locally installed MediaWiki and would like to use pywikibot there. I'm using Python 2.7. I could already use the bot at Wikipedia. Local I still do not get the software running.
I have the contents of the family file attached below. Maybe someone knows how the file should look to get the software working.
Either the family file hasn't been found or "a" software stopped the access. I don't really understand the error messages.
Does anybody runs the pywikibot on his local installed MediaWiki and could give me an example of a runnable family-file!? This would be fine.
Thanks!
Yours Pixewakb
- German:
Ich habe ein lokal installiertes MediaWiki und möchte gern pywikibot hier nutzen. Ich verwende Python 2.7. Den Bot konnte ich bei Wikipedia schon nutzen. Lokal habe ich die Software noch nicht zum Laufen bekommen.
Ich habe den Inhalt der family-Datei unten angefügt. Vielleicht weiß jemand, wie die Datei aussehen muss, um die Software in Betrieb zu nehmen.
Entweder wurde bislang die family-Datei nicht gefunden oder aber die Software stoppte den Zugriff. Ich werde aus den Fehlermeldungen nicht schlau.
Betreibt jemand den Bot lokal und könnte mir eine Kopie oder ein Beispiel einer funktionierenden family-Datei geben???
Besten Dank
Pixewakb
- Content of my TEST_family.py-file:
# -*- coding: utf-8 -*-
import family
# Put a short project description here.
class Family(family.Family):
def __init__(self): family.Family.__init__(self) self.name = 'TEST' # Set the family name; this should be the same as
in the filename. self.langs = { 'de': 'localhost', # Put the hostname here. } # Translation used on all wikis for the different namespaces. # Most namespaces are inherited from family.Family. # Check the family.py file (in main directory) to see the standard # namespace translations for each known language. # You only need to enter translations that differ from the default. self.namespaces[4] = { '_default': u'TEST', # Specify the project namespace here. } self.namespaces[5] = { '_default': u'TEST Diskussion:', # Specify the talk page of the project namespace here. }
def version(self, code): return "1.22.6" # The MediaWiki version used. Not very important in
most cases.
def scriptpath(self, code): return '/testbereich/mediawiki' # The relative path of index.php,
api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w, # depending on the folder where your mediawiki program # is located. # Note: Do not _include_ index.php, etc.
- URL to my wiki
http://localhost/testbereich/mediawiki/index.php/Spezial:Beobachtungsliste
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
English:
Thanks so much! I needed a couple of days to use your tipps and hints, but now the bot is running and it works fine. Your examples werde great and helped a lot! For the very timely and very friendly help thank you very much!
Yours Pixewakb
Deutsch:
Ganz vielen Dank! Ich habe einige Tage gebraucht das umzusetzen, aber ich habe den Bot jetzt lokal zum Laufen bekommen. Für die sehr zeitnahe und sehr freundliche Hilfestellung ganz herzlichen Dank!
Yours Pixewakb
2015-02-22 22:53 GMT+01:00 Fabian Neundorf CommodoreFabianus@gmx.de:
Hi Hans, for testing purposes I have a local wiki setup and this is my family file[1] using [2] as URL. But it would be more helpful if you chould show the error messages including the trace backs. Also the location of that file is important (relative to the other files) regarding your comment that it didn't find it. And depending on the location if must be added to the user-config.py (if it's in pywikibot/families/ you don't need to do that).
Fabian
[1] http://paste.ubuntu.com/10361696/ [2] http://localhost/mw/index.php/Main_Page
2015-02-22 20:03 GMT+01:00 Hans Müller pixewakb@gmail.com:
Hi,
- English:
I have a locally installed MediaWiki and would like to use pywikibot
there.
I'm using Python 2.7. I could already use the bot at Wikipedia. Local I still do not get the software running.
I have the contents of the family file attached below. Maybe someone
knows
how the file should look to get the software working.
Either the family file hasn't been found or "a" software stopped the
access.
I don't really understand the error messages.
Does anybody runs the pywikibot on his local installed MediaWiki and
could
give me an example of a runnable family-file!? This would be fine.
Thanks!
Yours Pixewakb
- German:
Ich habe ein lokal installiertes MediaWiki und möchte gern pywikibot hier nutzen. Ich verwende Python 2.7. Den Bot konnte ich bei Wikipedia schon nutzen. Lokal habe ich die Software noch nicht zum Laufen bekommen.
Ich habe den Inhalt der family-Datei unten angefügt. Vielleicht weiß
jemand,
wie die Datei aussehen muss, um die Software in Betrieb zu nehmen.
Entweder wurde bislang die family-Datei nicht gefunden oder aber die Software stoppte den Zugriff. Ich werde aus den Fehlermeldungen nicht schlau.
Betreibt jemand den Bot lokal und könnte mir eine Kopie oder ein Beispiel einer funktionierenden family-Datei geben???
Besten Dank
Pixewakb
- Content of my TEST_family.py-file:
# -*- coding: utf-8 -*-
import family
# Put a short project description here.
class Family(family.Family):
def __init__(self): family.Family.__init__(self) self.name = 'TEST' # Set the family name; this should be the
same as
in the filename. self.langs = { 'de': 'localhost', # Put the hostname here. } # Translation used on all wikis for the different namespaces. # Most namespaces are inherited from family.Family. # Check the family.py file (in main directory) to see the
standard
# namespace translations for each known language. # You only need to enter translations that differ from the
default.
self.namespaces[4] = { '_default': u'TEST', # Specify the project namespace here. } self.namespaces[5] = { '_default': u'TEST Diskussion:', # Specify the talk page of
the
project namespace here. }
def version(self, code): return "1.22.6" # The MediaWiki version used. Not very
important in
most cases.
def scriptpath(self, code): return '/testbereich/mediawiki' # The relative path of index.php,
api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w, # depending on the folder where your mediawiki program # is located. # Note: Do not _include_ index.php, etc.
- URL to my wiki
http://localhost/testbereich/mediawiki/index.php/Spezial:Beobachtungsliste
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org