Page MenuHomePhabricator

UnsupportedOperation exceptions occured
Closed, ResolvedPublic

Description

>>> import wikipedia as py
exception UnsupportedOperation('fileno',) while fixing up sys.stdout and sys.stderr
>>>

Event Timeline

Xqt raised the priority of this task from to Needs Triage.
Xqt updated the task description. (Show Details)
Xqt added a project: Pywikibot-compat.
Xqt added a subscriber: Xqt.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptMay 16 2015, 3:22 PM
Xqt set Security to None.

I figured out that this error occured in line 88 of userinterfaces/win32_unicode.py
Seems that fileno exists but isn't supported. I never seen this bug bevor? Is it a py 2.7.9 behaviour?

In Pywikibot there has been recently a patch by me: dd808ca6e0a5eaa25c10316041aa2f975a94df5a Might be related to your issue.

Aklapper triaged this task as Lowest priority.Jun 5 2015, 1:41 PM

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out https://www.mediawiki.org/wiki/Manual:Pywikibot/Development Thank you for your understanding.

Change 230529 had a related patch set uploaded (by Xqt):
[FIX] Win32 UI: Ignore fileno if not supported

https://gerrit.wikimedia.org/r/230529

Change 230529 merged by jenkins-bot:
[FIX] Win32 UI: Ignore fileno if not supported

https://gerrit.wikimedia.org/r/230529

Xqt claimed this task.