coolcoolad / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

Please include the 'pexpect' module #337

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
pythonxy 2.7.2.1
Windows 7

When I run the following simple script using 'sympy' I get an ImportError for 
'pexpect'. You might consider including pexpect in the distro in the future...

<snip>
In [36]: from sympy import Integral, preview

In [37]: from sympy.abc import x

In [38]: preview(Integral(x**2, x)) 
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
  File "C:\Python27\lib\site-packages\sympy\printing\preview.py", line 55, in preview
    import pexpect
ImportError: No module named pexpect
</snip>

Joe

Original issue reported on code.google.com by Hays.Joe on 22 Nov 2011 at 4:48

GoogleCodeExporter commented 9 years ago
This is actually far more complicated than it sounds.

pexpect is a Unix only package. Also from Sympy's preview documentation:
...
Currently this depends on pexpect, which is not available for windows.
...

But, you _can_ actually get preview to work:
1. install winpexpect(easy_install winpexpect) - it installs on windows.
2. install latex for windows - MikTex: http://miktex.org/2.9/setup.
3. install pyglet - pip install pyglet==1.1.4

Repeat the test case and after MikTex will work a bit (including downloading 
missing packages) you'll get you SymPy window.

Please contact the SymPy package maintainers for further assistance.

Original comment by grizzly.nyo on 26 Nov 2011 at 1:31

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 10 Jun 2013 at 9:26