In updating the documentation for the Mac install (as well as installing it myself for the first time) I encountered the following SVN error:
svn: warning: Error handling externals definition for 'pywikipedia/externals/pycolorname': svn: warning: OPTIONS of 'https://svn.toolserver.org/svnroot/drtrigon/externals/pycolorname': Could not read status line: connection was closed by server (https://svn.toolserver.org)
I assume this to be a transient SVN error -- changes being made, in progress, etc. ???
T.T.F.N. William H. Magill # iMac11,3 Core i7 [2.93GHz - 8 GB 1067MHz] OS X 10.8.4
# Macmini6,1 Intel Core i5 [2.5 Ghz - 4GB 1600MHz] OS X 10.8.3
magill@icloud.com magill@mac.com whmagill@gmail.com
Hi William,
On 2 July 2013 07:01, William H. Magill magill@icloud.com wrote:
In updating the documentation for the Mac install (as well as installing it myself for the first time) I encountered the following SVN error:
svn: warning: Error handling externals definition for
'pywikipedia/externals/pycolorname':
svn: warning: OPTIONS of '
https://svn.toolserver.org/svnroot/drtrigon/externals/pycolorname':
Could not read status line: connection was closed by server (
I assume this to be a transient SVN error -- changes being made, in progress, etc. ???
This is a repository on svn.toolserver.org, which (unfortunately) is not always very stable. We are, however, also in the progress of a migration to git, and the preferred way of getting pywikipedia will then (probably....) change to downloading nightlies. This all still needs to thought out, documented... and communicated, though.
Anyway, thank you very much for taking the effort to update the OS X docs - it's just the 'getting it' that will change; everything else should stay the same.
Merlijn
1- The original goal... Configure Pywikipedia Bot to access lotro-wiki.com -- which runs MediaWiki, with Semantic extensions.
2- Secondary goal... update the OSX documentation.
3- A side issue -- OSX Server 10.8 now provides a standard distribution Wiki as part of it's "canned" support. I have not yet activated it, but that will be "the next step." ... but I have to learn how to do that also!!!
====
So far so good... Now I've gotten to the "fork in the road." (BTW, I should mention that I'm not a Python programmer.)
The implication from everything I have read so far, is that I will need to create a "Family" file to support this private wiki.
Q1 -- Assuming this is necessary ...(which is the first question... is a "FAMIILY" and family file necessary at all when running against a private Wiki.
Reading the file families/README-family.txt" the first thing it suggests is to run the script -- "generate_family_file.py". --- it fails consistently.
I have tried running that file with the following "user-config.py" files: This first one was what I was using following my own generalization of the parameters.
# -*- coding: utf-8 -*- family = 'mywiki' mylang = 'en' usernames['mywiki']['en'] = u'magill-bot' use_api_login = True
python generate_family_file.py
Traceback (most recent call last): File "generate_family_file.py", line 36, in <module> import config File "/Users/magill/pywikipedia/config.py", line 606, in <module> execfile(_filename) File "./user-config.py", line 4, in <module> usernames['mywiki']['en'] = u'magill-bot' KeyError: 'mywiki' ================================= Then tried more specifically -- mixed case
# -*- coding: utf-8 -*- family = 'LOTRO-Wiki' mylang = 'en' usernames[LOTRO-Wikii']['en'] = u'magill-bot' use_api_login = True
python generate_family_file.py
Traceback (most recent call last): File "generate_family_file.py", line 36, in <module> import config File "/Users/magill/pywikipedia/config.py", line 606, in <module> execfile(_filename) File "./user-config.py", line 4, in <module> usernames['LOTRO-Wiki']['en'] = u'magill-bot' KeyError: 'LOTRO-Wiki' ============================== Then with the actual URL...
# -*- coding: utf-8 -*- family = 'lotro-wiki.com' mylang = 'en' usernames[lotro-wikii.com']['en'] = u'magill-bot' use_api_login = True
python generate_family_file.py
Traceback (most recent call last): File "generate_family_file.py", line 36, in <module> import config File "/Users/magill/pywikipedia/config.py", line 606, in <module> execfile(_filename) File "./user-config.py", line 4, in <module> usernames['lotro-wiki.com']['en'] = u'magill-bot' KeyError: 'lotro-wiki.com'
=========================================== So, either I have the syntax of the "user-config.py" file wrong... or the script "generate_family_file.py" NEVER works for any undefined WIKI.
Q2 -- is there some magic (i.e. undocumented) incantation necessary to get "generate_family_files.py" to work? Or is it simply a worthless script?
T.T.F.N. William H. Magill # iMac11,3 Core i7 [2.93GHz - 8 GB 1067MHz] OS X 10.8.4
# Macmini6,1 Intel Core i5 [2.5 Ghz - 4GB 1600MHz] OS X 10.8.3
magill@icloud.com magill@mac.com whmagill@gmail.com
Hi William,
On 2 July 2013 22:56, William H. Magill magill@icloud.com wrote:
The implication from everything I have read so far, is that I will need to create a "Family" file to support this private wiki.
This is correct.
Q1 -- Assuming this is necessary ...(which is the first question... is a "FAMIILY" and family file necessary at all when running against a private Wiki.
Reading the file families/README-family.txt" the first thing it suggests is to run the script -- "generate_family_file.py".
Which is also correct
--- it fails consistently.
Which it shouldn't :-)
python generate_family_file.py
Traceback (most recent call last): File "generate_family_file.py", line 36, in <module> import config File "/Users/magill/pywikipedia/config.py", line 606, in <module> execfile(_filename) File "./user-config.py", line 4, in <module> usernames['mywiki']['en'] = u'magill-bot' KeyError: 'mywiki'
Basically, what is happening is that generate_family_file is loading your user-config file, but your user-config file has an unrecognised family name ('mywiki') in it. This should not happen, but as a workaround, try removing your user-config, /then/ running generate_family_file.py and /then/ generate_user_files.py.
I've opened a bug for this at https://sourceforge.net/p/pywikipediabot/bugs/1639/
Hope this helps!
Best, Merlijn
On Jul 2, 2013, at 5:18 PM, Merlijn van Deen valhallasw@arctus.nl wrote:
Hi William,
On 2 July 2013 22:56, William H. Magill magill@icloud.com wrote: The implication from everything I have read so far, is that I will need to create a "Family" file to support this private wiki. This is correct.
Q1 -- Assuming this is necessary ...(which is the first question... is a "FAMIILY" and family file necessary at all when running against a private Wiki.
Reading the file families/README-family.txt" the first thing it suggests is to run the script -- "generate_family_file.py". Which is also correct
--- it fails consistently. Which it shouldn't :-)
python generate_family_file.py
Traceback (most recent call last): File "generate_family_file.py", line 36, in <module> import config File "/Users/magill/pywikipedia/config.py", line 606, in <module> execfile(_filename) File "./user-config.py", line 4, in <module> usernames['mywiki']['en'] = u'magill-bot' KeyError: 'mywiki'
Basically, what is happening is that generate_family_file is loading your user-config file, but your user-config file has an unrecognised family name ('mywiki') in it. This should not happen, but as a workaround, try removing your user-config, /then/ running generate_family_file.py and /then/ generate_user_files.py.
I've opened a bug for this at https://sourceforge.net/p/pywikipediabot/bugs/1639/
Yes, renaming the user-config file allowed the generate family file to work. I can now (apparently and successfully) login to lotro-wiki.com....
next step is to figure out what scripts (if any) are useful. ... lots more reading to do!
At this point, I think I've finished updating the Mac Installation page.
Thanks for all your help.
T.T.F.N. William H. Magill
magill@icloud.com magill@mac.com whmagill@gmail.com
I am also trying to create a family but get a different error. It comes up with:
Traceback (most recent call last): File "generate_family_file.py", line 22, in ? from urlparse import urlparse, urljoin, ParseResult
I don't know what is wrong with line 22. I tried the trick you suggested above of removing the user-config file first, but it still comes up with the same error.
Any suggestions would be more then appreciated.
Adam
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Are you using the SVN or the GIT version? Since 26. July you should use the GIT versions, please confer [1].
[1] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
Greetings DrTrigon
On 01.08.2013 01:51, Adam Waldstein wrote:
I am also trying to create a family but get a different error. It comes up with:
Traceback (most recent call last): File "generate_family_file.py", line 22, in ? from urlparse import urlparse, urljoin, ParseResult
I don't know what is wrong with line 22. I tried the trick you suggested above of removing the user-config file first, but it still comes up with the same error.
Any suggestions would be more then appreciated.
Adam
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Are you using the SVN or the GIT version? Since 26. July you should use the GIT versions, please confer [1].
[1] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
I don't think that this causes any difference and btw it must not. But you are right to ask for the actual release running.
xqt
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sorry wrong subject. That was supposed to be an answer to "[Pywikipedia-l] Error in SVN download of pywikipedia" but in fact the question was already answered and at 2.7.2013 we did not have migrated to git yet - so forget about my comment! Sorry for the confusion!
*over-and-out*
On 01.08.2013 11:31, info@gno.de wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Are you using the SVN or the GIT version? Since 26. July you should use the GIT versions, please confer [1].
[1] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit
I don't think that this causes any difference and btw it must not. But you are right to ask for the actual release running.
xqt
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org