Menu

#2 problem using simp 0.7.0 and 0.6.12

open
nobody
None
5
2009-05-09
2009-05-09
Anonymous
No

I have a problem when running simp with the 0.6.12 and 0.7.0 release.

With the 0.6.12 I receive the following result:

uxxxx@uxxxx:~$ python greenberg_hastings.py
Trying to import PcCodeGen
Traceback (most recent call last):
File "greenberg_hastings.py", line 10, in <module>
initialize(size=[Y,X]) # Declare an YxX square grid
File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 269, in initialize

File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 21, in <module>

File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 41, in <module>

File "/usr/lib/python2.5/site-packages/simp/cache.py", line 189, in <module>
AttributeError: 'module' object has no attribute 'exitfunc'

2) Following is the result of the command suggested in README.txt

uxxxx@uxxxx:~$ python -c "import simp.test; simp.test.test()"
Testing SIMP
Please email results to tbach@bu.edu.
Especially if there are problems !!!!
INFO:
ctime Sun Apr 19 16:00:17 2009
gmtime (2009, 4, 19, 14, 0, 17, 6, 109, 0)
hostname uxxxx
python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]
simp 0.6.12
pygame 1.8.1release
Numeric 24.2
numarray 1.5.2

GEOMETRY:
SIMP BASICS:
Trying to import Reference
success!
Trying to import Reference
success!
Trying to import Reference
success!
----------------------------------------------------------------------
Ran 6 tests in 0.328s

OK
RULE ANALYSIS:
======================================================================
FAIL: testNestedCSE1 (simp.rule_analysis.TestAST)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 1156,
in testNestedCSE1
AssertionError

======================================================================
FAIL: testNestedCSE2 (simp.rule_analysis.TestAST)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 1166,
in testNestedCSE2
AssertionError

======================================================================
FAIL: testNestedCSE3 (simp.rule_analysis.TestAST)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 1176,
in testNestedCSE3
AssertionError

======================================================================
FAIL: testSimpleCSE (simp.rule_analysis.TestAST)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 1148,
in testSimpleCSE
AssertionError

----------------------------------------------------------------------
Ran 4 tests in 0.005s

FAILED (failures=4)
VALIDATE REFERENCE IMPLEMENTATION
Validating Reference on Parity2D
/usr/lib/python2.5/site-packages/simp/rule_analysis.py:206:
DeprecationWarning: raising a string exception is deprecated
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 108, in test

File "/usr/lib/python2.5/site-packages/simp/test/programs.py", line 72, in
validate_parity2d
File "/usr/lib/python2.5/site-packages/simp/test/programs.py", line 236, in
__init__
File "/usr/lib/python2.5/site-packages/simp/step.py", line 420, in
__init__
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 584, in
__init__
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 181, in
getFunctionTree
File "/usr/lib/python2.5/site-packages/simp/rule_analysis.py", line 206, in
tree
Could not get source code for parity, func must be in a file

With the 0.7.0 release I receive this :

xxxx@uxxxx:~/simp$ python Examples/life.py
Traceback (most recent call last):
File "Examples/life.py", line 5, in <module>
from simp import *
File "/usr/local/lib/python2.6/dist-packages/simp/__init__.py", line 58, in <module>
import step as _step
File "/usr/local/lib/python2.6/dist-packages/simp/step.py", line 27, in <module>
from latticearray import * # for region definitions
File "/usr/local/lib/python2.6/dist-packages/simp/latticearray.py", line 212, in <module>
from simp.debug import *
ImportError: No module named debug

uxxxx@uxxxx:~/simp$ python -c "import simp.test; simp.test.test()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/simp/__init__.py", line 58, in <module>
import step as _step
File "/usr/local/lib/python2.6/dist-packages/simp/step.py", line 27, in <module>
from latticearray import * # for region definitions
File "/usr/local/lib/python2.6/dist-packages/simp/latticearray.py", line 212, in <module>
from simp.debug import *
ImportError: No module named debug

Discussion

  • Ted Bach

    Ted Bach - 2009-06-24

    Fixed in revision

     
  • Ted Bach

    Ted Bach - 2009-06-24

    Fixed 0.7 issue.

    Checking in Lib/debug.py;
    /cvsroot/simpstep/simp/Lib/Attic/debug.py,v <-- debug.py
    new revision: 1.1.2.1; previous revision: 1.1
    done

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.