Bug#827740: isympy start fails: No module named sympy.interactive

Francesco Poli invernomuto at paranoici.org
Mon Jun 27 20:56:03 UTC 2016


On Mon, 27 Jun 2016 16:08:28 +0200 Alberto Luaces wrote:

> Francesco Poli writes:
> 
> > On Thu, 23 Jun 2016 11:55:38 +0200 Alberto Luaces wrote:
> >
> >> Francesco Poli writes:
> > [...]
> >> > I see that you have python3-sympy installed.
> >> >
> >> > What's the output of
> >> >
> >> >   $ /usr/bin/python --version
> >> >
> >> > on your system?
> >> 
> >> $ python -V
> >> Python 2.7.12rc1
> >> $ python3 -V
> >> Python 3.5.2rc1
> >
> > Mmmh, then I am under the impression that you should try again after
> > installing python-sympy ...
> >
> 
> The error persists after re-installation.  The problem is that the
> shebang line of isympy calls /usr/bin/python regardless if python3-sympy
> was installed as its dependency.

Yes, that's why I suggested you to install python-sympy.

You can also keep python3-sympy installed, if you like (in case you
want to load the sympy module from python3), but isympy is a script
designed to be interpreted by /usr/bin/python, which is Python v2.7.x
and not v3.x ...

I don't know whether there is an elegant way to make isympy
automatically figure out whether you would prefer using python or
python3.

[...]
> >   $ python3 /usr/bin/isympy
> 
> Thank you.  Of course that works,

Good, this is an explicit way to express your preference for python3
over python.

> but the bug remains: isympy is that
> wrapper script :)

Maybe another binary package could be added (named isympy3), including
an appropriate isympy3 script...
At that point isympy would depend on python-sympy (without
python3-sympy as an alternative dependency) and isympy3 would depend on
python3-sympy.

I don't know, I'll let the sympy maintainers think about it and express
their opinion.

Bye.


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160627/b9c9c4e8/attachment.sig>


More information about the debian-science-maintainers mailing list