After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776301 - accerciser incompatible with ipython 5
accerciser incompatible with ipython 5
Status: RESOLVED FIXED
Product: accerciser
Classification: Applications
Component: plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Accerciser Developers
Accerciser Developers
Depends on:
Blocks:
 
 
Reported: 2016-12-20 01:26 UTC by Samuel Thibault
Modified: 2018-06-11 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (1.24 KB, text/plain)
2017-09-12 14:53 UTC, Samuel Thibault
Details

Description Samuel Thibault 2016-12-20 01:26:57 UTC
Hello,

As reported on http://bugs.debian.org/848119 , Debian now has ipython 5, and that makes the console plugin unusable:

 Traceback (most recent call last):
  • File "/usr/lib/python3/dist-packages/accerciser/plugin/plugin_manager.py", line 192 in _enablePlugin
    plugin_instance.init()
  • File "/usr/share/accerciser/plugins/console.py", line 42 in init
    self.ipython_view = ipython_view.IPythonView()
  • File "/usr/share/accerciser/plugins/ipython_view.py", line 549 in __init__
    input_func=self.raw_input)
  • File "/usr/share/accerciser/plugins/ipython_view.py", line 128 in __init__
    self.IP.readline_startup_hook(self.IP.pre_readline)  AttributeError: 'InteractiveShellEmbed' object has no attribute 'readline_startup_hook'

And similarly prompt_manager was removed, etc. so some serious porting seems to be needed

Samuel
Comment 1 Alex ARNAUD 2017-06-23 16:15:26 UTC
Dear all,

The issue now also appears on Fedora 26 and Rowhide since the update of iPython from 3.2.1-8.fc25 to 5.3.0-4.fc26.

Best regards.
Comment 2 ksamak 2017-06-29 15:33:28 UTC
Issue is now in debian stable (stretch)

please have a look, this bug prevents tracking adaptations for a desktop zoom for visually impaired people.
I'm sure the lack of functioning accerciser slows down more a11y adaptations and developments.
Comment 3 Javier Hernández 2017-07-13 15:43:27 UTC
Hey there,

yesterday I took some time to reproduce the issue and looking at IPython docs, and yes, it seems that some serious porting needs to be done as Samuel said. 

IPython docs didn't help a lot so I'll need some time to figure out how to get it working again. Will keep you posted.
Meanwhile, if you have had the chance to somehow get it working, as always, patches are welcome :)

Sorry for any inconvenience :/
Comment 4 Samuel Thibault 2017-09-12 14:53:08 UTC
Created attachment 359640 [details]
proposed fix

Here is a patch which is enough to get it working at least basically.
Perhaps completion etc. don't work but at least the basics should be working :)
Comment 5 Alex ARNAUD 2018-02-07 16:19:53 UTC
Hello all,

what's the state of this bug? 

User waits for a new release to be able to use Accerciser again.

Best regards.
Comment 8 Javier Hernández 2018-06-11 20:59:38 UTC
Thanks for this fix Samuel! :)