Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError when executing rsolve's example in SymPy Live #6775

Closed
vadimcn opened this issue Mar 1, 2013 · 3 comments
Closed

ValueError when executing rsolve's example in SymPy Live #6775

vadimcn opened this issue Mar 1, 2013 · 3 comments
Labels
Bug imported SymPy Live SymPy Live issues should be moved to sympy/sympy-live unless the bug is in the SymPy codebase.

Comments

@vadimcn
Copy link

vadimcn commented Mar 1, 2013

1. Go to the 'solvers' section of sympy documentation: http://docs.sympy.org/0.7.2-py3k/modules/solvers/solvers.html 2. Execute in SymPy Live the first three blocks of rsolve() example, which results in this error:

---
Python console for SymPy 0.7.2 (Python 2.5.2) These commands were executed: 
>>> from __future__ import division 
>>> from sympy import * 
>>> x, y, z, t = symbols('x y z t') 
>>> k, m, n = symbols('k m n', integer=True) 
>>> f, g, h = symbols('f g h', cls=Function)

>>> from sympy import Function, rsolve
>>> from sympy.abc import n
>>> y = Function('y')
>>> rsolve(f, y(n))
Traceback (most recent call last): File "<string>", line 1, in <module> File "/base/data/home/apps/s~sympy-live-hrd/34.364711976382463821/sympy/sympy/solvers/recurr.py", line 682, in rsolve raise ValueError("'%s' expected, got '%s'" % (y.func, h.func)) ValueError: 'y' expected, got '<property object at 0xb9fc860bf695ba0>' 

---

Interestingly, that same code works just fine when executed as Python script.

Original issue for #6775: http://code.google.com/p/sympy/issues/detail?id=3676
Original author: https://code.google.com/u/102799512789490801892/

@asmeurer
Copy link
Member

asmeurer commented Mar 3, 2013

This is most likely the function pickling issue.

**Labels:** Live  

Original comment: http://code.google.com/p/sympy/issues/detail?id=3676#c1
Original author: https://code.google.com/u/asmeurer@gmail.com/

@asmeurer
Copy link
Member

asmeurer commented Mar 3, 2013

Also, this probably won't ever matter, but note that SymPy live always runs python 2, even if you are in the python 3 docs.

Original comment: http://code.google.com/p/sympy/issues/detail?id=3676#c2
Original author: https://code.google.com/u/asmeurer@gmail.com/

@asmeurer
Copy link
Member

asmeurer commented Mar 3, 2013

See issue 5699 , which is essentially issue 4297 .

**Status:** Duplicate  
**Mergedinto:** 2600  

Referenced issues: #4297, #5699
Original comment: http://code.google.com/p/sympy/issues/detail?id=3676#c3
Original author: https://code.google.com/u/asmeurer@gmail.com/

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug imported SymPy Live SymPy Live issues should be moved to sympy/sympy-live unless the bug is in the SymPy codebase.
Projects
None yet
Development

No branches or pull requests

2 participants