I have a MW 1.17 installation on my computer, and I ran *
generate_family_file.py* as written in README-family.txt.
Output:
Please insert URL to wiki: http://localhost/wiki
Please insert a short name (eg: freeciv): local
Generating family file from http://localhost/wiki
*** WARNING: Api does not seem to be enabled on http://localhost/wiki
Traceback (most recent call last):
File "generate_family_file.py", line 261, in <module>
FamilyFileGenerator(*sys.argv[1:]).run()
File "generate_family_file.py", line 60, in run
w = Wiki(self.base_url)
File "generate_family_file.py", line 235, in __init__
self.server = self.REwgServer.search(data).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
http://localhost/wiki/api.php gives me the same documentation page as in
Wikipedia (note that it has wiki instead of w in URL).
Why does it not find the API?
And why does it terminate with this error?
--
Bináris
Hello all,
Registration is now open and can be found at
http://bit.ly/wmukhack11reg. I'd also like to note, that providing there
is a little more interest, we will be doing something for early arrivals
on the Friday evening...
_Call for Speakers_
I'd like some speakers, I don't want to flood the event, but there'll be
atleast (hopefully a bit more) an hour of talks over the weekend,
including quick lightning talks. If your interested, drop me an email at
lewis(a)lewiscawte.info.
Feel free to forward this to relevant lists!
Thanks,
-- Lewis Cawte
http://bit.ly/wmukhack11
#wmukhack11
On 20/09/11 22:04, Lewis Cawte wrote:
> Greetings all,
>
> Been some things floating around about this already, but I'm proud to announce Brighton Wikimedia Hackathon.
>
> http://www.mediawiki.org/wiki/Brighton_Hackathon_2011
>
> MediaWiki developers are going to meet in Brighton on the South East coast of the United Kingdom to hack anything to do with Wikimedia projects (mediawiki, toolserver, pywikipedia and various other things.) I've been putting this together for a while, with a lot of help from Roan, Reedy, Sumana and various others, and the date has now been confirmed for the 19th and 20th of November 2011 (unfortunatly, it clashes with WikiConference India). If you're intending to come, please add your name here, just so we can start getting an idea of how many people are coming:
>
> http://www.mediawiki.org/wiki/Brighton_Hackathon_2011#Attendees
>
> I'll be adding more details as they become available, as well as a registration form.
>
> -- Lewis Cawte
>
Hello all,
*As several people have mentioned they had trouble starting with the rewrite
branch, I decided to do a step-by-step log of installing the rewrite in a
way that is good for developing -- this means you are able to edit the
framework files, while not inflicting any changes on other users (or other
bots you run!) of the system. By using setup.py develop, edits you make to
the framework will immediately be used (no need to setup.py install them),
but only within the virtualenv.*
*This is the windows version of my earlier email*
*
*
I do not run python on windows, so this is a tutorial that starts with
installing python. It's a bit rougher than the unix one, as I did not want
to spend too much time on it.
1. Install python 2.7
http://python.org/ftp/python/2.7.1/python-2.7.1.msi<http://python.org/download/>
(do
*not* use the 64-bit version, due to http://bugs.python.org/issue6792 )
2. Install Setuptools
http://pypi.python.org/pypi/setuptools#files
3. Install Virtualenv
start/run: cmd
c:\Python27\Scripts\easy_install.exe virtualenv
4. create a virtualenv for pwb
C:\Users\valhallasw>c:\Python27\Scripts\virtualenv.exe pywikibot
New python executable in pywikibot\Scripts\python.exe
Installing setuptools.....................done.
5. Go to C:\Users\valhallasw\pywikibot and use tortoisesvn to get the
rewrite
6. create a shortcut to cmd /k
c:\users\valhallasw\pywikibot\scripts\activate.bat
with working path C:\Users\valhallasw\pywikibot\rewrite
7. Use the shortcut. You now have a new cmd.exe window
8. python setup.py develop
Your default user directory is
"C:\Users\valhallasw\AppData\Roaming\pywikibot"
How to proceed? ([K]eep [c]hange)
change, to c:\users\valhallasw\pywikibot\conf\
Answer 'y' to the warning prompt (not 'yes')
Do you want to copy files: y
[note: I copied my unix user-config.py to c:\users\valhallasw\pywikibot]
Path to existing wikipedia.py? C:\Users\valhallasw\pywikibot
NOTE: user-config.py already exists in the directory
Create user-fixes.py file? ([y]es, [N]o) n
(pywikibot) C:\Users\valhallasw\pywikibot\rewrite>echo SET
PYWIKIBOT2_DIR=c:\users\valhallasw\pywikibot\conf>> ..\Scripts\activate.bat
(DON'T put a space between f and >>!)
Close the window, and
9. Use the shortcut from (7) again
You should now have a cmd.exe with a working pywikibot setup!
(pywikibot) C:\Users\valhallasw\pywikibot\rewrite\scripts>python touch.py
Gebruiker:Valhallasw
Retrieving 1 pages from wikipedia:nl.
Page [[Gebruiker:Valhallasw]] saved
NOTE: you *must* use 'python' in front of the script name, or python will
not find the pywikibot directory.
Good luck!
Merlijn
I would like to request a new parameter for interwiki.py, namely the option
to skip years and dates, including categories for years, deaths and births.
These are articles and categories that exist in dozens and dozens of
languages, and whenever the bot encounters some it takes ages to get through
them, and it almost never finds anything new. We already have -days and
-years parameters for working specifically on these, and I would like to
request adding the opposite: -nodays and -noyears. Is someone able to
implement that?
--
mvh
Jon Harald Søby <http://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by>
One last thing to bother you all with. I mentioned this on the list a few
years ago, but nothing happened.
I think it is much tidier to have the {{Link FA}} etc next to the interwiki
link, and it would be nice to be able to properly fix that on the Norwegian
Wikipedia. There is the parameter -side in featured.py, that puts the
templates next to the interwiki link, *but* that does not co-operate with
interwiki.py, so the next time a bot changes the interwiki on a page that
has that configuration, it puts all the templates above the interwikis
again.
So it would be awesome if someone was able to implement this; probably by
specifying in a configuration file like wikipedia_family.py or somewhere
else that is appropriate, that wikis xx and yy want to have the templates
next to the interwiki, and then interwiki.py and replace.py (and possibly
cosmetic_changes.py and some other scripts?) will follow that information
and (a) put them in the correct place and (b) not move them back.
Free cookie for anyone who is able to fix this. :o)
(And I promise, that is the last thing I'll bother ya'll with for a while.)
--
mvh
Jon Harald Søby <http://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by>
I would like to request a change in the way the -former parameter works in
featured.py. Currently if you specify -former, it looks for a category for
former featured articles in a wiki, and then follows the same procedure it
normally does with finding interwikis to your language, etc etc. This is not
the way it should work. Instead, it should do this:
1. Find occurences of {{Link FA}} in your wiki, then check if the article
in the language specified is in the designated category/has the designated
template/whatever. For example, if you go to [[no:Sverige]] and it says
{{Link FA|ru}}, it should go to the Russian Wikipedia and check whether or
not [[ru:Швеция]] contains the template [[ru:Шаблон:Избранная статья]] (or
whatever it checks for, that is already specified).
2. If it is in the right category/has the right template/whatever, then
do nothing;
3. If it is not in the right category/is missing the template/whatever,
remove the {{Link FA}}.
This would be much better because:
1. the bot would only focus on the articles it needs to focus on (doesn't
check hundreds of articles that do not exist in your language),
2. the bot could check several languages at the same time (for articles
that are featured in many many languages, like [[Esperanto]]),
3. it does not rely on a wiki actually having a category for former
featured articles (many wikis don't), which is a huge weakness in the
current model.
So if anybody is able to fix this, that would be great. Sadly I don't know
how to do it myself (if I did I would have).
--
mvh
Jon Harald Søby <http://meta.wikimedia.org/wiki/User:Jon_Harald_S%C3%B8by>
Hello,
I downloaded pywikipedia yesterday and am using it on the Assamese
Wikipedia. Thanks for a great product!
Nevertheless, I have a little difficulty trying to make it do exactly what I
want. I am using it to correct some unicode encoding issues. In
particular, I am trying to replace some unicode characters by some others.
They are very short: at most 3 characters long.
But I have been unable to avoid picking up matches inside wikilinks
(internal as well as inter-language). Is there a way to do so without
employing unicode regularization?
Thanks,
--
Chaipau
Wikipedia