Meno25 added a comment.

  Just a note that this bug is still current. I encountered the same error 
today.
  
    python pwb.py commonscat -site:wikibooks:ar -page:"الصفحة الرئيسية"
  
  **Output:**
  
    Script terminated by exception:
    
    ERROR: AttributeError: 'Page' object has no attribute '_pageid'
    Traceback (most recent call last):
      File "C:\Users\Mohammed\Downloads\core\pwb.py", line 365, in <module>
        if not main():
      File "C:\Users\Mohammed\Downloads\core\pwb.py", line 357, in main
        run_python_file(filename,
      File "C:\Users\Mohammed\Downloads\core\pwb.py", line 73, in 
run_python_file
        exec(compile(source, filename, 'exec', dont_inherit=True),
      File ".\scripts\commonscat.py", line 557, in <module>
        main()
      File ".\scripts\commonscat.py", line 551, in main
        bot.run()
      File "C:\Users\Mohammed\Downloads\core\pywikibot\bot.py", line 1533, in 
run
        self.treat(page)
      File "C:\Users\Mohammed\Downloads\core\pywikibot\bot.py", line 1814, in 
treat
        self.treat_page()
      File ".\scripts\commonscat.py", line 318, in treat_page
        commonscatLink = self.find_commons_category(page)
      File ".\scripts\commonscat.py", line 412, in find_commons_category
        return self.findCommonscatLink(page)
      File ".\scripts\commonscat.py", line 377, in findCommonscatLink
        if (not ipage.exists() or ipage.isRedirectPage()
      File "C:\Users\Mohammed\Downloads\core\pywikibot\page\__init__.py", line 
710, in exists
        return self.pageid > 0
      File "C:\Users\Mohammed\Downloads\core\pywikibot\page\__init__.py", line 
259, in pageid
        return self._pageid
    AttributeError: 'Page' object has no attribute '_pageid'
    CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
  
  **Output of version.py:**
  
    Pywikibot: [https] r-pywikibot-core (cb47340, g14832, 2021/05/13, 15:56:16, 
OUTDATED)
    Release version: 6.2.0.dev0
    requests version: 2.25.1
    Python: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 
bit (AMD64)]
  
  **Notes:**
  
  - الصفحة الرئيسية 
<https://ar.wikibooks.org/wiki/%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9>
 is Arabic Wikibooks Main Page.
  - According to action=info 
<https://ar.wikibooks.org/w/index.php?title=%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9&action=info>
 its ID is 4
  - Also in the HTML of the page we find `"wgArticleId":4`

TASK DETAIL
  https://phabricator.wikimedia.org/T223157

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Meno25, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Shalomori123, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to