[Python-modules-team] Bug#459411: isympy fails to start

Ondrej Certik ondrej at certik.cz
Sun Jan 6 13:07:51 UTC 2008


On Jan 6, 2008 1:51 PM, Soeren Sonnenburg <bugreports at nn7.de> wrote:
>
> On Sun, 2008-01-06 at 13:25 +0100, Ondrej Certik wrote:
> > On Jan 6, 2008 11:44 AM, Soeren Sonnenburg <bugreports at nn7.de> wrote:
> > > Package: python-sympy
> > > Version: 0.5.9-1
> > > Severity: normal
> > >
> > > $ isympy
> > > ---------------------------------------------------------------------------
> > > exceptions.AttributeError                            Traceback (most recent call last)
> > >
> > > /usr/bin/isympy
> > >     132                 run_python_interpreter()
> > >     133
> > >     134 if __name__ == "__main__":
> > > --> 135     main()
> > >     136
> > >
> > > /usr/bin/isympy in main()
> > >     127     else:
> > >     128             try:
> > > --> 129                 run_ipython_interpreter()
> > >     130
> > >     131             except ImportError:
> > >
> > > /usr/bin/isympy in run_ipython_interpreter()
> > >      59     args = []
> > >      60     ipshell = IPShellEmbed(args)
> > > ---> 61     api = ipshell.IP.getapi()
> > >      62     api.ex(init_code)
> > >      63     api.ex('__IP.compile("from __future__ import division", "<input>", "single") in __IP.user_ns')
> > >
> > > AttributeError: InteractiveShell instance has no attribute 'getapi'
> > >
> >
> > Hi Soeren,
> >
> > thanks very much for the bug report. You use stable, right? Which
> > version of ipython do you have?
>
> No, I am on up-to-date sid, but for some reason I don't even have the
> ipython package installed, but something strange:
>
> $ dpkg -l | grep ipython
> ii  ipython-common                       0.6.13-1                     enhanced interactive Python shell [common fi
> ii  python2.4-ipython                    0.6.13-1                     enhanced interactive Python shell [built for

That's probably some remains from upgrading. I have this:

$ dpkg -l | grep ipython
ii  ipython                                                 0.8.1-2
                       enhanced interactive Python shell

> > For me, it works with Version: 0.8.1-2. We could add conflict with the
> > version of ipython that
> > you have and lower, but that would render python-sympy uninstallable
> > for some people.
>
> I installed ipython and isympy just works!

Cool.

> I guess the solution/fix would be to add ipython as recommends?

Yes, I think it's a good idea.

Generally, sympy needs to work in pure python, but optionally, it works
nice with some other packages, that make the life easier and since we
are in Debian,
let's recommend them.

I'll do it in the next upload.

> > Easy workaround is this:
> >
> > $ isympy -c python
>
> Indeed that works too.
>
> > Please tell me, if it works.

Perfect.

Please report all other bugs/improvements/suggestions, if you find some.

Ondrej





More information about the Python-modules-team mailing list