Re: custom completers, changes since ipython-4?

MinRK <[email protected]>
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CAHNn8BWxE7+WOhrBOB6e4nixi1xJTcPUdR7gk8LNpFCKhxhJwg@mail.gmail.com>
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 <[email protected]> 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 <[email protected]> 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
> > [email protected]
> > 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: [email protected]
>
>
> _______________________________________________
> IPython-dev mailing list
> [email protected]
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.