it appears to work for me: $ bin/Debug/ipy -X:Frames -c 'import sympy; sympy.test()' ============================= test process starts ============================== executable: C:\cygwin64\home\rejap\github\IronLanguages\bin\Debug\ipy.exe (2.9.9-alpha-0) [IronPython] architecture: 32-bit cache: yes ground types: python random seed: 10900661 hash randomization: off
sympy\assumptions\tests\test_assumptions_2.py[5] ..... [OK] sympy\assumptions\tests\test_context.py[4] .... [OK] sympy\assumptions\tests\test_matrices.py[19] ..........ff....... [OK] But, I think you have exposed an obfuscated exception because str is iterable. Can you check what the seq is and why it is different than run from command line. --pawel On Fri, Apr 11, 2014 at 10:46 AM, Andrew Ayre <a...@britishideas.com> wrote: > Hi, > > I didn't realize that SymPy has a test suite built in. Trying to run it > gives: > > ========================================================= >>>>sympy.test() > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "C:\Program Files > (x86)\WizoScript\PythonLib\site-packages\sympy\utilities\runtests.py", > line 415, in test > File "C:\Program Files > (x86)\WizoScript\PythonLib\site-packages\sympy\utilities\runtests.py", > line 188, in run_in_subprocess_with_hash_randomization > File "C:\Program Files (x86)\WizoScript\PythonLib\subprocess.py", line > 675, in __init__ > File "C:\Program Files (x86)\WizoScript\PythonLib\subprocess.py", line > 853, in _execute_child > File "C:\Program Files (x86)\WizoScript\PythonLib\subprocess.py", line > 588, in list2cmdline > TypeError: argument of type 'str' is not iterable > ========================================================= > > Looking at the problem line, it is: > > needquote = (" " in arg) or ("\t" in arg) or not arg > > I'm guessing it doesn't like: > > for arg in seq ?? > > Andy > > On 4/10/2014 9:09 AM, Pawel Jasinski wrote: >> I have opened a cp: https://ironpython.codeplex.com/workitem/35116 >> I have a fix, but before push request I need to check if it doesn't >> break something else. >> It needs a to be reviewed and hopefully it is not to late for 2.7.5. >> --pawel >> >> >> On Thu, Apr 10, 2014 at 9:44 AM, Andrew Ayre <a...@britishideas.com> wrote: >>> Hi, >>> >>> This workaround is working well, but will there be a fix to IronPython >>> so it isn't needed? >>> >>> I need to give feedback to the SymPy people. >>> >>> Thanks! Andy >>> >>> On 4/9/2014 10:02 AM, Pawel Jasinski wrote: >>>> Here is the workaround which let me install the package: >>>> >>>> *** sympy/__init__.py.orig 2014-04-09 10:59:53.361779800 +0200 >>>> --- sympy/__init__.py 2014-04-09 11:00:02.906734200 +0200 >>>> *************** >>>> *** 30,35 **** >>>> --- 30,36 ---- >>>> SYMPY_DEBUG = __sympy_debug() >>>> >>>> from .core import * >>>> + del sets >>>> from .logic import * >>>> from .assumptions import * >>>> from .polys import * >>>> >>>> >>>> >>>> On Wed, Apr 9, 2014 at 10:07 AM, Andrew Ayre <a...@britishideas.com> wrote: >>>>> OK. Is there a workaround I can use? >>>>> >>>>> Andy >>>>> >>>>> On 4/8/2014 8:04 PM, Pawel Jasinski wrote: >>>>>> It looks like the import bug, but is different. >>>>>> This time imported is confusing already imported: sympy.core.sets >>>>>> with sympy.sets. Is is looking for sympy.sets.fancysets in >>>>>> sympty.core.sets >>>>>> >>>>>> On Tue, Apr 8, 2014 at 11:51 AM, Andrew Ayre <a...@britishideas.com> >>>>>> wrote: >>>>>>> On 4/8/2014 10:28 AM, Jeff Hardy wrote: >>>>>>>> On Tue, Apr 8, 2014 at 9:08 AM, Andrew Ayre <a...@britishideas.com> >>>>>>>> wrote: >>>>>>>>> Thanks. Making progress... Now it can't find sympy.sets.fancysets. >>>>>>>>> I've >>>>>>>>> added the folder where the module is defined to sys.path: >>>>>>>>> >>>>>>>>> ============================================= >>>>>>>>>>>> sys.path.append('../../PythonLib/sympy/sets') >>>>>>>>> >>>>>>>>>>>> sys.path >>>>>>>>> >>>>>>>>> ['.', 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\Lib', >>>>>>>>> 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\DLLs', >>>>>>>>> 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\PythonLib', >>>>>>>>> '../../PythonLib', '../../PythonLib', '../../PythonLib/sympy/mpmath', >>>>>>>>> '../../PythonLib/sympy/sets'] >>>>>>>>> >>>>>>>>>>> >from sympy.sets.fancysets import Naturals0 >>>>>>>>> >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "<string>", line 1, in <module> >>>>>>>>> File "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\__init__.py", >>>>>>>>> line 34, in <module> >>>>>>>>> File >>>>>>>>> "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\assumptions\__init__.py", >>>>>>>>> line 2, in <module> >>>>>>>>> File >>>>>>>>> "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\assumptions\ask.py", >>>>>>>>> line 323, in <module> >>>>>>>>> File >>>>>>>>> "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\cache.py", >>>>>>>>> line 93, in wrapper >>>>>>>>> File >>>>>>>>> "C:\Users\Andy\Documents\ADScript\PythonLib\sympy\core\function.py", >>>>>>>>> line 185, in __new__ >>>>>>>>> ImportError: No module named fancysets >>>>>>>>> ============================================= >>>>>>>>> >>>>>>>>> Here is what the folder structure looks like: >>>>>>>>> >>>>>>>>> https://github.com/sympy/sympy/tree/master/sympy/sets >>>>>>>> >>>>>>>> Which version of IronPython? It sure looks like the import bug, but if >>>>>>>> you're still hitting in 2.7.5b1 then we'll have to reopen it. >>>>>>> >>>>>>> Jeff, >>>>>>> >>>>>>> Here is my sanity check: >>>>>>> >>>>>>> ============================================= >>>>>>>>>> sys.version >>>>>>> >>>>>>> '2.7.5b1 (IronPython 2.7.5b1 (2.7.0.40) on .NET 4.0.30319.18444 >>>>>>> (32-bit))' >>>>>>> ============================================= >>>>>>> >>>>>>> I'm using the pre-compiled binary version. >>>>>>> >>>>>>> Thanks, Andy >>>>>>> >>>>>>> -- >>>>>>> Andy >>>>>>> PGP Key ID: 0xDC1B5864 >>>>>>> _______________________________________________ >>>>>>> Ironpython-users mailing list >>>>>>> Ironpython-users@python.org >>>>>>> https://mail.python.org/mailman/listinfo/ironpython-users >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> Andy >>>>> PGP Key ID: 0xDC1B5864 >>>> >>>> >>>> >>> >>> -- >>> Andy >>> PGP Key ID: 0xDC1B5864 >> >> >> > > -- > Andy > PGP Key ID: 0xDC1B5864 _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users