Cannot import sympy at Python 3

1,869 views
Skip to first unread message

Jefferson

unread,
Aug 1, 2011, 10:44:30 AM8/1/11
to sy...@googlegroups.com
I have recently installed sympy. I have the newest version of python. The symoy site said that it is compatible with the version I have but everytime I try to import the sympy module using this command:

          from sympy import *

I always get the following error:

         Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from sympy import *
  File "C:\Program Files\Python 3\lib\site-packages\sympy\__init__.py", line 20, in <module>
    from sympy.core import *
  File "C:\Program Files\Python 3\lib\site-packages\sympy\core\__init__.py", line 4, in <module>
    from sympify import sympify
ImportError: No module named sympify
>>>

I am trying to teach myself programming. I'm just a newbie so I don't know anything about disutils (I found out in my research that the installation *might* be the problem. I am not really sure). Any help is appreciated. Thank you.

Jefferson
BS Chemical Engineering
2nd yr

Vladimir Perić

unread,
Aug 1, 2011, 11:08:55 AM8/1/11
to sy...@googlegroups.com

Hi!

Unfortunately, SymPy is not yet compatible with Python 3 (but will be
soon), you need to use Python 2.5, 2.6 or 2.7 (I recommend 2.7). If
you have any further questions or problems, please don't hesitate to
ask.

>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/AOFSQ5AckPMJ.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>

--
Vladimir Perić

Stefan Krastanov

unread,
Apr 24, 2013, 5:23:18 AM4/24/13
to sy...@googlegroups.com
Only sympy 0.7.2 is compatible with python 3, so first of all confirm
that this is the version that you are using.

Also, confirm that you are using the translated version (we develop in
python 2 and then use a script to translate it to python 3 - so we
have two different release archives).

On 24 April 2013 10:52, Ron Machaka <ron.m...@gmail.com> wrote:
> Hi Guys
>
> I have also recently installed sympy on python33.
> Please see the error below:
>
>>>> from sympy import *
> Traceback (most recent call last):
> File "<pyshell#35>", line 1, in <module>
> from sympy import *
> File "C:\Python33\lib\site-packages\sympy\__init__.py", line 20, in
> <module>
> from sympy.core import *
> File "C:\Python33\lib\site-packages\sympy\core\__init__.py", line 4, in
> <module>
> from sympify import sympify
> ImportError: No module named 'sympify'
>
>>>>
>
>
> Is SymPy now compatible with Python 3 ??
>
> Ron
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
>
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Aaron Meurer

unread,
Apr 24, 2013, 10:36:39 AM4/24/13
to sy...@googlegroups.com
If you were able to install the python 2 version of SymPy 0.7.2 into
python 3, that's a bug. The installer should have prevented that from
happening. I am pretty sure setup.py does, but I don't know how to
control the exe installer, nor can I even check it.

Aaron Meurer

On Apr 24, 2013, at 3:23 AM, Stefan Krastanov
Reply all
Reply to author
Forward
0 new messages