[IPython-dev] custom completers, changes since ipython-4?

Darren Dale dsdale24 at gmail.com
Wed Dec 2 17:14:32 EST 2015


The problem exists in h5py-2.5.0, and is related to the removal of TryNext
from the IPython namespace. The problem has been addressed in the h5py
master branch.

Thanks,
Darren

On Wed, Dec 2, 2015 at 4:05 AM MinRK <benjaminrk at gmail.com> wrote:

> What version of h5py? It looks like this was fixed a while ago
> <https://github.com/h5py/h5py/issues/410>, but this old version
> <https://github.com/gem/h5py/blob/master/h5py/ipy_completer.py> would
> incorrectly trigger a pre-0.11 branch due to the removal of a deprecated
> API (IPython.core.ipapi).
>
> -MinRK
>>
> On Tue, Dec 1, 2015 at 10:06 PM, Osborn, Raymond <rosborn at anl.gov> wrote:
>
>> Hi Darren,
>>
>> >>> from IPython.utils import generics
>>
>> seems to work. There may be other changes you need to be aware of, but
>> I’ll leave that to the real experts.
>>
>> Ray
>>
>> > On Dec 1, 2015, at 2:56 PM, Darren Dale <dsdale24 at gmail.com> wrote:
>> >
>> > I wrote a custom completer for h5py some years ago, and discovered a
>> problem after updating ipython to the latest version:
>> >
>> > [TerminalIPythonApp] WARNING | Error in loading extension:
>> h5py.ipy_completer Check your config files in
>> /home/darren/.ipython/profile_default Traceback (most recent call last):
>> File "/opt/conda/lib/python2.7/site-packages/IPython/core/shellapp.py",
>> line 267, in init_extensions
>> self.shell.extension_manager.load_extension(ext) File
>> "/opt/conda/lib/python2.7/site-packages/IPython/core/extensions.py", line
>> 89, in load_extension __import__(module_str) File
>> "/opt/conda/lib/python2.7/site-packages/h5py/ipy_completer.py", line 59, in
>> <module> from IPython import generics ImportError: cannot import name
>> generics
>> >
>> > I'm sorry if this has an obvious solution that has been announced
>> somewhere, maybe I don't know where to look anymore. Is there a list of
>> changes that has been made to the API? What happened to generics?
>> >
>> > Thanks,
>> > Darren
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > https://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> --
>> Ray Osborn, Senior Scientist
>> Materials Science Division
>> Argonne National Laboratory
>> Argonne, IL 60439, USA
>> Phone: +1 (630) 252-9011
>> Email: ROsborn at anl.gov
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> https://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151202/c2947a76/attachment.html>


More information about the IPython-dev mailing list