I have started from scratch, made a new install in a different directory,
and some errors have disappeared, but I still get errors when the bot tries
to put the changes. I can't successfully make any changes at all. At first I
thought it was the change I made to the family file (appended email below),
but it's persisting without that change, on the new installation, so I I
suspect that's a coincidence.
So, the errors I'm getting are of this form:
A) When I try to run redirect.py
$ python redirect.py double -always
Checked for running processes. 1 processes currently running, including the
current process.
Retrieving special page...
There's a long wait and then:
maximum recursion depth exceeded in cmp
WARNING: Could not open '
http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
Maybe the server or
your connection is down. Retrying in 1 minutes...
maximum recursion depth exceeded in cmp
WARNING: Could not open '
http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
Maybe the server or
your connection is down. Retrying in 2 minutes...
maximum recursion depth exceeded in cmp
WARNING: Could not open '
http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
Maybe the server or
your connection is down. Retrying in 4 minutes...
B) When I run replace.py, everything goes fine during the yes
(regardless of where I use -xml: or -file:) so it's clearly able to access
the server.
But when it tries to put the pages, I get the same error:
Waiting for 2 pages to be put. Estimated time remaining: 0:00:20
maximum recursion depth exceeded in cmp
WARNING: Could not open '
http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
Maybe the server or
your connection is down. Retrying in 1 minutes...
etc
I have no idea what to try next.
In case it's relevant, I'm using Mandriva Linux 2008 Spring, with Python
version 2.5.2-2.1mdv2008.1
Many thanks,
Chris
On Tue, Jul 1, 2008 at 12:00 PM, Chris Watkins <chriswaterguy(a)appropedia.org>
wrote:
> After I changed the family file as suggested, it broke badly. I cannot
> successfully run a bot and save changes - this is even if I don't hit
> ctrl+C, of course! :)
>
> I could reinstall the whole thing, go back and redo all the things I've
> forgotten when I first installed Pywikipedia, but is there a simpler way? I
> tried packing the latest nightly package into the directory, replacing
> existing files, but it's still broken.
>
>
> Often it's a server error, but the site is running fine. Other commands
> access the server, but they all break when it comes to trying to put the
> changes. (Yes, I run "python login.py" before i start.)
>
> Thanks in advance, and for all the help so far.
>
> Chris
>
> E.g. 1: using a file list and the "-always" parameter:
>
> $ python replace.py -excepttext:"[[appropriate technology organizations"
> -excepttext:"appropriate technology organizations]]" "appropriate technology
> organizations" "[[appropriate technology organizations]]" -always
> -file:files1.txt
>
> This gives:
>
> No changes were necessary in [[Ashden Awards]]
> No changes were necessary in [[Category:Microhydro]]
> <snip>
>
> >>> Clay Brick and Tile Moulding Equipment 2 <<<
> - The activities of BASIN are divided between four leading European,
> non-profit appropriate technology organizations, each of which covers a
> separate specialized subject area, in order to provide more qualified
> expertise with greater efficiency.
> + The activities of BASIN are divided between four leading European,
> non-profit [[appropriate technology organizations]], each of which covers a
> separate specialized subject area, in order to provide more qualified
> expertise with greater efficiency.
>
>
> Then it stops for a while, before giving this message:
>
> maximum recursion depth exceeded in cmp
> WARNING: Could not open '
> http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
> Maybe the server or
> your connection is down. Retrying in 1 minutes...
> maximum recursion depth exceeded in cmp
> WARNING: Could not open '
> http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
> Maybe the server or
> your connection is down. Retrying in 2 minutes...
>
> ...and so on.
>
> E.g. 2: using replace.py with the -xml parameter and manually selecting
> which changes to accept, I get a message like this:
>
> Waiting for 3 pages to be put. Estimated time remaining: 0:00:30
> There are 3 pages remaining in the queue. Estimated time remaining: 0:00:30
>
> But it doesn't actually make any changes - it either hangs there, or say it
> can't find the server, and keeps retrying until I stop it (after several
> hours in one case)
>
> Error messages occur during the running of replace.py as well, but don't
> actually stop it running.
>
>
> E.g. 3: redirect.py doesn't work either - the second part of the error
> about the server being down is the same as above:
>
> $ python redirect.py double -always
> Checked for running processes. 1 processes currently running, including the
> current process.
> Retrieving special page...
> maximum recursion depth exceeded in cmp
> WARNING: Could not open '
> http://www.appropedia.org/w/api.php?action=query&meta=userinfo&uiprop=block…'.
> Maybe the server or
> your connection is down. Retrying in 1 minutes...
>
> On Sun, Jun 29, 2008 at 11:07 PM, Chris Watkins <
> chriswaterguy(a)appropedia.org> wrote:
>
>> Sorry, only just saw that you'd already replied with a solution. Thanks
>> Bryan - I'm trying it out.
>>
>> Chris
>>
>>
>> Bryan wrote:
>>
>> After looking in the code, you should add:
>>>
>>> def api_address(self):
>>> raise NotImplementedError
>>>
>>> in your family file.
>>>
>>> We should probably try to detect blocks on non api wikis as well.
>>
>>
>>
>> On Sun, Jun 29, 2008 at 10:59 PM, Chris Watkins <
>> chriswaterguy(a)appropedia.org> wrote:
>>>
>>> yes - it was configured for nice simple urls. I don't have a good
>>> understanding of this issue.
>>>
>>> So is this error something I just have to live with (I really hope not!)
>>> or is there a way around it?
>>>
>>> Thanks,
>>> Chris
>>>
>>
>>
>>
>> --
>> Chris Watkins (a.k.a. Chriswaterguy)
>>
>> Appropedia.org - Sharing knowledge to build rich, sustainable lives.
>>
>> Blog: chriswaterguy.livejournal.com/
>>
>> Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
>> percentage of your purchase supports Appropedia - at no extra cost.
>>
>> Where men are the most sure and arrogant, they are commonly the most
>> mistaken, and have there given reins to passion, without that proper
>> deliberation and suspense, which can alone secure them from the grossest
>> absurdities. -- David Hume
>>
>
>
>
> --
> Chris Watkins (a.k.a. Chriswaterguy)
>
> Appropedia.org - Sharing knowledge to build rich, sustainable lives.
>
> Blog: chriswaterguy.livejournal.com/
>
> Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
> percentage of your purchase supports Appropedia - at no extra cost.
>
> Where men are the most sure and arrogant, they are commonly the most
> mistaken, and have there given reins to passion, without that proper
> deliberation and suspense, which can alone secure them from the grossest
> absurdities. -- David Hume
>
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume
Hello,
I am interested in iterating over all pages in all namespaces.
The reason is to capitalize all page titles so I can successfully change
$wgCapitalLinks from false to true. Currently my wiki has many pages with
lower-case first letter and changing $wgCapitalLinks to true makes those
inaccessible.
It appears that the AllPagesGenerator works on only one namespace at a time.
The SearchPageGenerator allows multiple namespaces, but it requires a query
to return a limited result set.
My only idea so far is to manually determine the list of namespaces and
iterate over each one with AllPagesGenerator to check every page.
Any help is much appreciated.
Bugs item #2007115, was opened at 2008-06-30 23:03
Message generated for change (Comment added) made by h92-nowiki
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: H92-nowiki (h92-nowiki)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: invalid syntax
Initial Comment:
python version.py output:
Pywikipedia [http] trunk/pywikipedia (r5660, Jun 30 2008, 13:04:44)
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)]
OK: Recently, clean_sandbox.py, replace.py, template.py and more have failed, producing the same message:
File "/[blablabla]/clean_sandbox.py", line 55
<<<<<<< .mine
^
SyntaxError: invalid syntax
The other scripts I mentioned also produce this (but with another line number), replace.py produces line 156 for instance.
What is this, how can it be fixed?
Oh, and I apologize for any mistakes in this report, it's my first time. :)
Best regards,
w:no:User:H92
----------------------------------------------------------------------
>Comment By: H92-nowiki (h92-nowiki)
Date: 2008-07-01 13:10
Message:
Logged In: YES
user_id=2131834
Originator: YES
Uhh, ok thanks! It works now. :)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-07-01 11:59
Message:
Logged In: YES
user_id=1963242
Originator: NO
Read http://svnbook.red-bean.com/en/1.1/ch03s05.html#svn-ch-3-sect-5.4 for
more about subversion conflicts :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-07-01 11:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
This is a Subversion conflict: you have changed files that were changed in
the Subversion server, and thus "svn update" caused a conflict (since it
couldn't merge the changes). You may check which files are in conflict
using "svn status". You should clean it up manually and run "svn resolved"
on the files, or use "svn revert" to revert to the original SVN version.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…
When using replace.py without the -always parameter, I've found a serious
problem: If I accidentally interrupt the operation,* I get a message like
the following, "Waiting for xx pages to be put. Estimated time remaining:
xxxxx" - however, it fails to make the changes, even when I leave it a long
time. If I've made a lot of changes, this is a very big problem. The full
output is shown below.
*I wanted to copy a page name to edit manually, and reflexively used ctrl+C
to copy, but of course this is a KeyboardInterrupt. It's very ingrained
habit, and realistically I'm likely to make the same mistake in future.
--
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in
[b]rowser, [a]ll, [q]uit) Traceback (most recent call last):
File "/home/cwg/pwb/pagegenerators.py", line 763, in __iter__
yield loaded_page
GeneratorExit
Traceback (most recent call last):
File "replace.py", line 694, in <module>
main()
File "replace.py", line 690, in main
bot.run()
File "replace.py", line 387, in run
['y', 'N', 'e', 'b', 'a', 'q'], 'N')
File "/home/cwg/pwb/wikipedia.py", line 6228, in inputChoice
data = ui.inputChoice(question, answers, hotkeys, default).lower()
File "/home/cwg/pwb/userinterfaces/terminal_interface.py", line 261, in
inputChoice
answer = self.input(prompt)
File "/home/cwg/pwb/userinterfaces/terminal_interface.py", line 238, in
input
text = raw_input()
KeyboardInterrupt
Waiting for 67 pages to be put. Estimated time remaining: 0:11:10
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume
Bugs item #2007115, was opened at 2008-06-30 23:03
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: H92-nowiki (h92-nowiki)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: invalid syntax
Initial Comment:
python version.py output:
Pywikipedia [http] trunk/pywikipedia (r5660, Jun 30 2008, 13:04:44)
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)]
OK: Recently, clean_sandbox.py, replace.py, template.py and more have failed, producing the same message:
File "/[blablabla]/clean_sandbox.py", line 55
<<<<<<< .mine
^
SyntaxError: invalid syntax
The other scripts I mentioned also produce this (but with another line number), replace.py produces line 156 for instance.
What is this, how can it be fixed?
Oh, and I apologize for any mistakes in this report, it's my first time. :)
Best regards,
w:no:User:H92
----------------------------------------------------------------------
>Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-07-01 11:59
Message:
Logged In: YES
user_id=1963242
Originator: NO
Read http://svnbook.red-bean.com/en/1.1/ch03s05.html#svn-ch-3-sect-5.4 for
more about subversion conflicts :)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-07-01 11:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
This is a Subversion conflict: you have changed files that were changed in
the Subversion server, and thus "svn update" caused a conflict (since it
couldn't merge the changes). You may check which files are in conflict
using "svn status". You should clean it up manually and run "svn resolved"
on the files, or use "svn revert" to revert to the original SVN version.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…
Bugs item #2007115, was opened at 2008-07-01 00:03
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: H92-nowiki (h92-nowiki)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: invalid syntax
Initial Comment:
python version.py output:
Pywikipedia [http] trunk/pywikipedia (r5660, Jun 30 2008, 13:04:44)
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)]
OK: Recently, clean_sandbox.py, replace.py, template.py and more have failed, producing the same message:
File "/[blablabla]/clean_sandbox.py", line 55
<<<<<<< .mine
^
SyntaxError: invalid syntax
The other scripts I mentioned also produce this (but with another line number), replace.py produces line 156 for instance.
What is this, how can it be fixed?
Oh, and I apologize for any mistakes in this report, it's my first time. :)
Best regards,
w:no:User:H92
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-07-01 12:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
This is a Subversion conflict: you have changed files that were changed in
the Subversion server, and thus "svn update" caused a conflict (since it
couldn't merge the changes). You may check which files are in conflict
using "svn status". You should clean it up manually and run "svn resolved"
on the files, or use "svn revert" to revert to the original SVN version.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2007115&group_…