liangent@oiweb:~/wiki/bot/archiver$ ./archiver.py Found 1 wikipedia:zh processes running, including this one. Traceback (most recent call last): File "./archiver.py", line 7, in <module> now = Site().getcurrenttime() # or from link's site? File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in getcurrenttime ts = self.getcurrenttimestamp() File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in getcurrenttimestamp result = r.submit() File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184, in submit self.site.throttle(write=write) File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 176, in __getattr__ return self.__class__.attr AttributeError: type object 'APISite' has no attribute 'attr' liangent@oiweb:~/wiki/bot/archiver$
this problem doesn't occur frequently, and i don't know when it will occur.
the script archiver.py's first lines are:
#!/usr/bin/env python # -*- coding: utf_8 -*- import re import pywikibot from pywikibot import Link, Site, Page import datetime now = Site().getcurrenttime() # or from link's site?
wrong code...
Index: pywikibot/site.py =================================================================== --- pywikibot/site.py (revision 6639) +++ pywikibot/site.py (working copy) @@ -173,7 +173,7 @@ """Calls to methods not defined in this object are passed to Family."""
if hasattr(self.__class__, attr): - return self.__class__.attr + return getattr(self.__class__, attr) try: method = getattr(self.family, attr) f = lambda *args, **kwargs: \
On Mon, Apr 20, 2009 at 6:35 PM, Liangent liangent@gmail.com wrote:
liangent@oiweb:~/wiki/bot/archiver$<liangent@oiweb:%7E/wiki/bot/archiver$>./archiver.py Found 1 wikipedia:zh processes running, including this one. Traceback (most recent call last): File "./archiver.py", line 7, in <module> now = Site().getcurrenttime() # or from link's site? File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in getcurrenttime ts = self.getcurrenttimestamp() File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in getcurrenttimestamp result = r.submit() File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184, in submit self.site.throttle(write=write) File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 176, in __getattr__ return self.__class__.attr AttributeError: type object 'APISite' has no attribute 'attr' liangent@oiweb:~/wiki/bot/archiver$<liangent@oiweb:%7E/wiki/bot/archiver$>
this problem doesn't occur frequently, and i don't know when it will occur.
the script archiver.py's first lines are:
#!/usr/bin/env python # -*- coding: utf_8 -*- import re import pywikibot from pywikibot import Link, Site, Page import datetime now = Site().getcurrenttime() # or from link's site?
Hello Liangent!
2009/4/20 Liangent liangent@gmail.com:
wrong code...
Index: pywikibot/site.py [PATCH]
It's nice to have some new contributors on that project! We appreciate your effort. Russell, me, or someone else will have a look at this in a bit, a fix will probably be committed soon.
We, however, use Sourceforge, to track bug reports, and patch submissions.
Next time that you spot a bug, can you please directly report it on the bug tracker, including the full traceback? ( https://sourceforge.net/tracker/?group_id=93107&atid=603138 )
Similarly, if you have a patch to submit, can you please submit it to the patch tracker? ( https://sourceforge.net/tracker/?group_id=93107&atid=603140 )
Use the "rewrite" category if you're reporting a bug on the rewrite/ branch.
Thank you,
do i need to submit it to sf.net now?
On Mon, Apr 20, 2009 at 8:39 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
Hello Liangent!
2009/4/20 Liangent liangent@gmail.com:
wrong code...
Index: pywikibot/site.py [PATCH]
It's nice to have some new contributors on that project! We appreciate your effort. Russell, me, or someone else will have a look at this in a bit, a fix will probably be committed soon.
We, however, use Sourceforge, to track bug reports, and patch submissions.
Next time that you spot a bug, can you please directly report it on the bug tracker, including the full traceback? ( https://sourceforge.net/tracker/?group_id=93107&atid=603138 )
Similarly, if you have a patch to submit, can you please submit it to the patch tracker? ( https://sourceforge.net/tracker/?group_id=93107&atid=603140 )
Use the "rewrite" category if you're reporting a bug on the rewrite/ branch.
Thank you,
-- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
2009/4/20 Liangent liangent@gmail.com:
do i need to submit it to sf.net now?
please do! someone will review it as soon as possible.
i cannot choose rewrite category, only translations is available
maybe chatting on mailing list is bad...
On Mon, Apr 20, 2009 at 8:46 PM, Nicolas Dumazet nicdumz@gmail.com wrote:
2009/4/20 Liangent liangent@gmail.com:
do i need to submit it to sf.net now?
please do! someone will review it as soon as possible.
-- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
2009/4/20 Liangent liangent@gmail.com:
i cannot choose rewrite category, only translations is available
My bad, there was no "rewrite" category for patches, only for bugs. I'm sorry, I added it just now.
maybe chatting on mailing list is bad...
Actually... yes =) Please come directly to IRC when you have small matters like this to fix, to avoid sending those short-living mails to so many people. Someone is usually around to help ;)
pywikipedia-l@lists.wikimedia.org