Re: custom completers, changes since ipython-4?
Darren Dale <[email protected]>
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <CAK6O52nzkEVw3s3_fSAH16vS3x=KHpXZd4+7NA=RT7huJJNwsQ@mail.gmail.com> |
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 <[email protected]> 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 <[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 > _______________________________________________ IPython-dev mailing list [email protected] https://mail.scipy.org/mailman/listinfo/ipython-dev