https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
Web browser: --- Bug ID: 55138 Summary: harvest template syntax error Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1634/ Reported by: masti01 Created on: 2013-05-24 22:33:04 Subject: harvest template syntax error Original description: $python harvest_template.py -cat:"Miasta Polski" File "harvest_template.py", line 116 item.editclaim(str(claim), linkedItem.getID() ,refs={self.setSource(self.site().language())}) ^ SyntaxError: invalid syntax
$ python version.py unicode test: triggers problem #3081100 Pywikipedia [http] trunk/pywikipedia (r11578, 2013/05/24, 17:03:42, ok) Python 2.6.6 (r266:84292, Oct 12 2012, 14:23:48) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] config-settings: use_api = True use_api_login = True unicode test: triggers problem #3081100
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- I think you should update your code and run it again. beside what are you commanding is not correct. you should give more details in your command (see help of code for detail)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- There is no syntax error in the actual (r11579) code:
import harvest_template
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> closed-works-for-me - **Group**: --> confirmed
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: closed-works-for-me --> open-accepted
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- {self.setSource(self.site().language())} is allowed in python 2.7 but not in python 2.6. I think we want to keep python 2.6 compatibility, right?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- What are you saying about the version of python is not correct because this is trunk branch not rewrite branch and in this branch we don't have setSource as a method of claim class, It's just a function in this code
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #7 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **Group**: confirmed --> trunk
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1634
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
--- Comment #8 from Ricordisamoa ricordisamoa@openmailbox.org --- It should be set(self.setSource(self.site().language())), shouldn't it?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com, | |mastigm@gmail.com Version|unspecified |compat (1.0)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55138
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|Pywikipedia-bugs@lists.wiki |ladsgroup@gmail.com |media.org |
--- Comment #9 from Amir Ladsgroup ladsgroup@gmail.com --- reproduced, I'll work on it
pywikipedia-bugs@lists.wikimedia.org