-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Rational(numpy.int64(1), 2)) fails on Python 3: TypeError: invalid input: 1 #13618
Comments
There seems to be no update on this issue since 1 month, so I am taking this up. No update on PR #13670 from 1 month as well. |
Not sure if this is the same issue: from mpmath import mp
import numpy
mp.sqrt(numpy.int64(1)) fails with
under Python 3. Should I file a new bug for this? |
I think you should file an issue at https://github.com/fredrik-johansson/mpmath/issues since it does not involve SymPy. mpmath is not a part of SymPy, it's just a dependency. |
This seems to be fixed now. I'll close - feel free to open if it doesn't seem fixed to you: In [1]: import numpy
...: import sympy
...:
...: sympy.Rational(numpy.int64(1), 2)
Out[1]: 1/2 |
MWE:
This fails with
on Python 3, SymPy 1.1.1.
Also failing:
numpy.int32
Working:
numpy.int
The text was updated successfully, but these errors were encountered: