On Jan 23, 4:56 pm, "Aaron S. Meurer" <[email protected]> wrote:
> OK.  We need to fix isympy.  Could you push the fixes you were able to make 
> up to github or somewhere?  I can't get this error, but rather some 
> NameError, assumedly because it is the issue you already fixed.  
>
> On the other hand, I am probably testing it wrong.  How did you test the 
> latest iPython?  Did you have to install the development ipython, or is there 
> some other way to do it?  This is what I tried:
>
> dhcp-baca-43:sympy aaronmeurer(master$)$../../ipython/ipython.py bin/isympy
> [IPythonApp] File does not have a .py or .ipy extension: 
> </Users/aaronmeurer/Documents/python/sympy/sympy/bin/isympy>
> dhcp-baca-43:sympy aaronmeurer(master$)$mv bin/isympy bin/isympy.py
> dhcp-baca-43:sympy aaronmeurer(master*$%)$../../ipython/ipython.py 
> bin/isympy.py
> ------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/aaronmeurer/Documents/python/sympy/sympy/bin/isympy.py", line 
> 54, in <module>
>     isympy_dir = os.path.dirname(__file__)         # bin/isympy
> NameError: name '__file__' is not defined
>
> WARNING: Failure executing file: 
> </Users/aaronmeurer/Documents/python/sympy/sympy/bin/isympy.py>
>
> Aaron Meurer

Here are the steps:

bzr branch lp:~fdo.perez/ipython/trunk-dev
python setup.py install

git clone git://git.sympy.org/sympy.git
python setup.py install

(I like the variety, bzr for IPython, git for sympy, svn for numpy,
scipy, matplotlib, mercurial for SAGE, what else :)

These are my changes so far:

[gse...@ccn sympy]$ git diff
diff --git a/sympy/interactive/__init__.py b/sympy/interactive/
__init__.py
index ba4b37c..7f5393f 100644
--- a/sympy/interactive/__init__.py
+++ b/sympy/interactive/__init__.py
@@ -10,7 +10,7 @@ def init_printing(stringify_func):
     try:
         import IPython

-        ip = IPython.ipapi.get()
+        ip = IPython.core.ipapi.get()

         if ip is not None:
             def result_display(self, arg):
@@ -94,7 +94,7 @@ def __init__(self):
     try:
         import IPython

-        ip = IPython.ipapi.get()
+        ip = IPython.core.ipapi.get()

         if ip is not None:
             if session == 'ipython':

There is a substantial API change in the upcoming IPython (v0.11).
Fernando has been calling for test and integration test help. This
might be a good time to figure the issues from the Sympy's window.


-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to