On 24/11/14 09:18, Colin Macdonald wrote: > On 24/11/14 08:32, Aaron Meurer wrote: >> Did it not say what the exception was? > > No :( I was hoping to confirm whether it was a local issue or a general > 0.7.6-on-windows problem before I tried to dig further.
I got a bit further: this should be for the same fourier command:
````
Traceback (most recent call last):
File "py.py", line 904, in <module>
File "<string>", line 1, in <module>
File "<string>", line 7, in <module>
File "<string>", line 4, in _fcn
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\transforms.py",
line 1364, in fourier
_transform
return FourierTransform(f, x, k).doit(**hints)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\transforms.py",
line 118, in doit
self.function_variable, self.transform_variable, **hints)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\transforms.py",
line 1307, in _comput
e_transform
self.__class__._name, **hints)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\transforms.py",
line 196, in wrapper
res = func(*args, **kwargs)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\transforms.py",
line 1284, in _fourie
r_transform
F = integrate(a*f*exp(b*I*x*k), (x, -oo, oo))
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\utilities\decorator.py",
line 35, in threaded_f
unc
return func(expr, *args, **kwargs)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\integrals.py",
line 1232, in integrat
e
risch=risch, manual=manual)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\integrals.py",
line 467, in doit
ret = try_meijerg(function, xab)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\integrals.py",
line 444, in try_meije
rg
res = meijerint_definite(function, x, a, b)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 1746, in meijerin
t_definite
res1 = _meijerint_definite_2(f.subs(x, x + c), x)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 1855, in _meijeri
nt_definite_2
res = _meijerint_definite_3(g, x)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 1867, in _meijeri
nt_definite_3
res = _meijerint_definite_4(f, x)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 1932, in _meijeri
nt_definite_4
f1, f2, x, full_pb)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 898, in _rewrite_
saxena
g2 = pb(g2)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\integrals\meijerint.py",
line 874, in pb
per = g.get_period()
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\functions\special\hyper.py",
line 578, in get_p
eriod
beta = compute(self.bm)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\functions\special\hyper.py",
line 575, in compu
te
if not Mod((b - l[j]).simplify(), 1):
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\core\expr.py",
line 2922, in simplify
return simplify(self, ratio, measure)
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\simplify\simplify.py",
line 3671, in simplify
from sympy.vector import Vector
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\vector\__init__.py",
line 1, in <module>
from sympy.vector.vector import (Vector, VectorAdd, VectorMul,
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\vector\vector.py",
line 6, in <module>
from sympy.vector.basisdependent import BasisDependent, \
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\vector\basisdependent.py",
line 9, in <module>
class BasisDependent(Expr):
File
"N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.1\bin\sympy\vector\basisdependent.py",
line 70, in BasisDep
endent
evalf.__doc__ += Expr.evalf.__doc__
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType'
````
>> On Sun, Nov 23, 2014 at 4:32 PM, Colin Macdonald
>> <[email protected]> wrote:
>>> Hi,
>>>
>>> Can someone test this on Windows with 0.7.6?
>>>
>>> ````
>>> x,k = symbols('x,k')
>>> f = exp(-x*x)
>>> fourier_transform(f,x,k)
>>> ````
>>> (and report what Python you use).
>>>
>>> Windows is (thankfully) not my main platform but I've been testing some
>>> stuff. I run py.exe (a single-exe-file stand-alone python 2.7.8) which
>>> works great with SymPy 0.7.5. But on SymPy 0.7.6, I get the following,
>>> at least with the Fourier command above. Some other commands in my test
>>> set cause errors too, but haven't narrowed them down yet (due to
>>> combination of an Octave bug and my inability to do much on Windows).
>>>
>>> ````
>>> N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.2\bin>py
>>> Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit
>>> (Intel)] on win
>>> 32
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> (InteractiveConsole)
>>>>>> from sympy import *
>>>>>> x,k = symbols('x,k')
>>>>>> f = exp(-x*x)
>>>>>> fourier_transform(f,x,k)
>>> Traceback (most recent call last):
>>> File "<console>", line 1, in <module>
>>> File "sympy\integrals\transforms.py", line 1364, in fourier_transform
>>> File "sympy\integrals\transforms.py", line 118, in doit
>>> File "sympy\integrals\transforms.py", line 1307, in _compute_transform
>>> File "sympy\integrals\transforms.py", line 196, in wrapper
>>> File "sympy\integrals\transforms.py", line 1284, in _fourier_transform
>>> File "sympy\utilities\decorator.py", line 35, in threaded_func
>>> File "sympy\integrals\integrals.py", line 1232, in integrate
>>> File "sympy\integrals\integrals.py", line 467, in doit
>>> File "sympy\integrals\integrals.py", line 444, in try_meijerg
>>> File "sympy\integrals\meijerint.py", line 1746, in meijerint_definite
>>> File "sympy\integrals\meijerint.py", line 1855, in _meijerint_definite_2
>>> File "sympy\integrals\meijerint.py", line 1867, in _meijerint_definite_3
>>> File "sympy\integrals\meijerint.py", line 1932, in _meijerint_definite_4
>>> File "sympy\integrals\meijerint.py", line 898, in _rewrite_saxena
>>> File "sympy\integrals\meijerint.py", line 874, in pb
>>> File "sympy\functions\special\hyper.py", line 578, in get_period
>>> File "sympy\functions\special\hyper.py", line 575, in compute
>>> File "sympy\core\expr.py", line 2922, in simplify
>>> File "sympy\simplify\simplify.py", line 3671, in simplify
>>> File "sympy\vector\__init__.py", line 1, in <module>
>>> File "sympy\vector\vector.py", line 6, in <module>
>>> File "sympy\vector\basisdependent.py", line 9, in <module>
>>> File "sympy\vector\basisdependent.py", line 70, in BasisDependent
>>> ````
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/5472FF87.7090001%40maths.ox.ac.uk.
For more options, visit https://groups.google.com/d/optout.
0xC5326EE5.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
