Sympy Installation Problem

38 views
Skip to first unread message

farro...@gmail.com

unread,
Apr 9, 2014, 2:00:57 AM4/9/14
to sy...@googlegroups.com

I have gotten into trouble with sympy installation on my PC. I wanna to install it on win 7 64 bit with python 2.6.2 amd 64 but I get the following error:

Traceback (most recent call last):
File "D:\Python26\Lib\site-packages\sympy-0.7.5\setup.py", line 37, in <module

import sympy

File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy__init__.py", line 35, i
n
from .polys import *
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys__init__.py", line
5, in
from . import polytools
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys\polytools.py", lin
e 52, in
from sympy.polys.domains import FF, QQ
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys\domains__init__.p
y", line 9, in
from . import finitefield
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys\domains\finitefiel
d.py", line 7, in
from sympy.polys.domains.groundtypes import SymPyInteger
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys\domains\groundtype
s.py", line 13, in
from .pythonrational import PythonRational
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\polys\domains\pythonrati
onal.py", line 12, in
from sympy.printing.defaults import DefaultPrinting
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\printing__init__.py", l
ine 3, in
from .pretty import pager_print, pretty, pretty_print, pprint, \
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\printing\pretty__init__
.py", line 7, in
pprint_try_use_unicode()
File "D:\Python26\Lib\site-packages\sympy-0.7.5\sympy\printing\pretty\pretty_s
ymbology.py", line 90, in pretty_try_use_unicode
s.encode(encoding)
LookupError: unknown encoding: cp720

Please let me know if there is a solution.

Thank you in advance.

Mojtaba

Alexey U. Gudchenko

unread,
Apr 9, 2014, 4:37:48 PM4/9/14
to sy...@googlegroups.com
May be for the cp720 it is better to use python 2.7 ?


The cite from [1]:

"It's related to a python-bug that was only fixed in python 2.7 and
python3. The python setup does not include the arabic codepage (cp720)
your terminal uses."

If it is not possible then
The cite from [2]:

(for Python 2.6) the problem can be resolved by:
Adding cp720.py to "lib/encodings" of the working project (permanent
solution)

Or to Python26/lib/encodings

or

changing the working code page (under MSDOS I used "chcp 437" (temporary
solution)

The file cp720.py can be found here (via [3])

http://svn.python.org/view/python/trunk/Lib/encodings/cp720.py



[1] https://github.com/cloudControl/cctrl/issues/9
[2] http://trac.turbogears.org/ticket/2295
[3] https://mail.python.org/pipermail/python-list/2010-May/575947.html



--
Alexey Gudchenko

farro...@gmail.com

unread,
Apr 12, 2014, 2:49:00 AM4/12/14
to sy...@googlegroups.com


Dear Alexey,

Thank you very much. I downloaded cp720.py and it solved my problem.

Best,

Mojtaba
Reply all
Reply to author
Forward
0 new messages