Menu

#3 0.6.11 won't run on 64-bit machines?

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

Hello and thank you for what you are doing.

I cannot run SIMP/STEP 0.6.11 on my desktop computer, a Pentium D 3.4GHz with 1GB RAM and GeForce 7300 256MB graphics card.

I can compile and install the library. However, trying one of the examples results in the program aborting.

I think the reason is linked to the fact that I'm using a 64-bit operating system.
Then, pieces of code (if there are) that rely on integers being 32-bit could arise issues.
Also, the Numeric library is known to have major problems with 64-bit machines, cf. chapter 4 of "Python scripting for computational science" by H.P. Langtangen (Springer, 3rd ed.)

I want to try version 0.7.0 as well, to see if /that/ runs; but could not understand where to get it :(

I attach a description of the machine and the screen text output for compiling, installing, and running the HPP example.
The example runs fine on my 5-years-old laptop, with same software versions but 32-bit operating system and architecture.

Best regards,

Silvio

--------

Operating system: Ubuntu Linux 9.04 x86_64

Python and libraries:
Python 2.6.2
Numeric 24.2
Numarray 1.5.2
PyGame 1.8.1release
SIMP 0.6.11

Output of "python setup.py build":
--------
running build
running build_py
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/simp
copying Lib/rule_analysis.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/geom.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/consolebase.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/import_locally.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/helpers.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/step.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/renderers.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/pygame_console.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/simpinclude.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/latticearray.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/__init__.py -> build/lib.linux-x86_64-2.6/simp
copying Lib/cache.py -> build/lib.linux-x86_64-2.6/simp
creating build/lib.linux-x86_64-2.6/simp/test
copying Lib/test/results.py -> build/lib.linux-x86_64-2.6/simp/test
copying Lib/test/strobe_test.py -> build/lib.linux-x86_64-2.6/simp/test
copying Lib/test/programs.py -> build/lib.linux-x86_64-2.6/simp/test
copying Lib/test/sysinfo.py -> build/lib.linux-x86_64-2.6/simp/test
copying Lib/test/__init__.py -> build/lib.linux-x86_64-2.6/simp/test
creating build/lib.linux-x86_64-2.6/simp/stepmodules
copying Lib/stepmodules/Reference.py -> build/lib.linux-x86_64-2.6/simp/stepmodules
copying Lib/stepmodules/PcSamearray.py -> build/lib.linux-x86_64-2.6/simp/stepmodules
copying Lib/stepmodules/__init__.py -> build/lib.linux-x86_64-2.6/simp/stepmodules
creating build/lib.linux-x86_64-2.6/simp/stepmodules/Pc
copying Lib/stepmodules/Pc/scan.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/Pc
copying Lib/stepmodules/Pc/lut.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/Pc
copying Lib/stepmodules/Pc/__init__.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/Pc
creating build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded
copying Lib/stepmodules/PcThreaded/threadpool.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded
copying Lib/stepmodules/PcThreaded/scan.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded
copying Lib/stepmodules/PcThreaded/__init__.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded
creating build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/pyfunctoc.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/scan.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/PyInline.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/code.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/__init__.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
copying Lib/stepmodules/PcCodeGen/log.py -> build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen
running build_ext
building 'simp.stepmodules.Pc._scan' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/Src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6/numarray -ISrc -I/usr/include/python2.6 -c Src/_scan.c -o build/temp.linux-x86_64-2.6/Src/_scan.o
Src/_scan.c: In function ‘lut_scan’:
Src/_scan.c:191: warning: pointer targets in assignment differ in signedness
Src/_scan.c:192: warning: cast to pointer from integer of different size
Src/_scan.c:204: warning: pointer targets in assignment differ in signedness
Src/_scan.c:208: warning: cast to pointer from integer of different size
Src/_scan.c:210: warning: cast to pointer from integer of different size
Src/_scan.c: In function ‘lut_scan_nopack’:
Src/_scan.c:242: warning: pointer targets in assignment differ in signedness
Src/_scan.c:243: warning: cast to pointer from integer of different size
Src/_scan.c:255: warning: pointer targets in assignment differ in signedness
Src/_scan.c:259: warning: cast to pointer from integer of different size
Src/_scan.c:224: warning: unused variable ‘tmp’
Src/_scan.c: In function ‘lut_scan_nopack_uint8’:
Src/_scan.c:297: warning: pointer targets in assignment differ in signedness
Src/_scan.c:298: warning: cast to pointer from integer of different size
Src/_scan.c:310: warning: pointer targets in assignment differ in signedness
Src/_scan.c:313: warning: cast to pointer from integer of different size
Src/_scan.c: In function ‘widelut_scan_nopack_uint8’:
Src/_scan.c:354: warning: pointer targets in assignment differ in signedness
Src/_scan.c:355: warning: cast to pointer from integer of different size
Src/_scan.c:367: warning: pointer targets in assignment differ in signedness
Src/_scan.c:368: warning: cast to pointer from integer of different size
Src/_scan.c:331: warning: unused variable ‘output’
Src/_scan.c: In function ‘shift_scan_uint8_nopack’:
Src/_scan.c:395: warning: pointer targets in passing argument 3 of ‘op_doer’ differ in signedness
Src/_scan.c:401: warning: cast to pointer from integer of different size
Src/_scan.c:401: warning: cast to pointer from integer of different size
Src/_scan.c: In function ‘shift_scan_uint8’:
Src/_scan.c:433: warning: pointer targets in passing argument 3 of ‘op_doer’ differ in signedness
Src/_scan.c:439: warning: cast to pointer from integer of different size
Src/_scan.c:440: warning: cast to pointer from integer of different size
Src/_scan.c:441: warning: cast to pointer from integer of different size
Src/_scan.c: In function ‘transfer_scan’:
Src/_scan.c:470: warning: pointer targets in passing argument 3 of ‘op_doer’ differ in signedness
Src/_scan.c:482: warning: cast to pointer from integer of different size
Src/_scan.c:483: warning: cast to pointer from integer of different size
Src/_scan.c:484: warning: cast to pointer from integer of different size
Src/_scan.c: In function ‘na_ptr’:
Src/_scan.c:601: warning: cast from pointer to integer of different size
Src/_scan.c: At top level:
Src/_scan.c:616: warning: useless type name in empty declaration
Src/_scan.c:497: warning: ‘pc_transfer_scan_doc’ defined but not used
Src/_scan.c:528: warning: ‘pc_lut_scan_doc’ defined but not used
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/Src/_scan.o -o build/lib.linux-x86_64-2.6/simp/stepmodules/Pc/_scan.so
--------
Exit value: 0

Output of "sudo python setup.py install":
--------
running install
running build
running build_py
copying Lib/simpinclude.py -> build/lib.linux-x86_64-2.6/simp
running build_ext
running install_lib
creating /usr/local/lib/python2.6/dist-packages/simp
error: could not create '/usr/local/lib/python2.6/dist-packages/simp': Permission denied
silvio@jafar:~/simp/simp-0.6.11-tt$ sudo python setup.py install
running install
running build
running build_py
copying Lib/simpinclude.py -> build/lib.linux-x86_64-2.6/simp
running build_ext
running install_lib
creating /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/rule_analysis.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/geom.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/consolebase.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/import_locally.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/helpers.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/step.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/renderers.py -> /usr/local/lib/python2.6/dist-packages/simp
creating /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/test/results.py -> /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/test/strobe_test.py -> /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/test/programs.py -> /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/test/sysinfo.py -> /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/test/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp/test
copying build/lib.linux-x86_64-2.6/simp/pygame_console.py -> /usr/local/lib/python2.6/dist-packages/simp
creating /usr/local/lib/python2.6/dist-packages/simp/stepmodules
copying build/lib.linux-x86_64-2.6/simp/stepmodules/Reference.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules
creating /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc
copying build/lib.linux-x86_64-2.6/simp/stepmodules/Pc/scan.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc
copying build/lib.linux-x86_64-2.6/simp/stepmodules/Pc/lut.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc
copying build/lib.linux-x86_64-2.6/simp/stepmodules/Pc/_scan.so -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc
copying build/lib.linux-x86_64-2.6/simp/stepmodules/Pc/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcSamearray.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules
creating /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded/threadpool.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded/scan.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcThreaded/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded
copying build/lib.linux-x86_64-2.6/simp/stepmodules/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules
creating /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/pyfunctoc.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/scan.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/PyInline.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/code.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/stepmodules/PcCodeGen/log.py -> /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen
copying build/lib.linux-x86_64-2.6/simp/simpinclude.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/latticearray.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/__init__.py -> /usr/local/lib/python2.6/dist-packages/simp
copying build/lib.linux-x86_64-2.6/simp/cache.py -> /usr/local/lib/python2.6/dist-packages/simp
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/rule_analysis.py to rule_analysis.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/geom.py to geom.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/consolebase.py to consolebase.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/import_locally.py to import_locally.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/helpers.py to helpers.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/step.py to step.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/renderers.py to renderers.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/test/results.py to results.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/test/strobe_test.py to strobe_test.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/test/programs.py to programs.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/test/sysinfo.py to sysinfo.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/test/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/pygame_console.py to pygame_console.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Reference.py to Reference.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc/scan.py to scan.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc/lut.py to lut.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcSamearray.py to PcSamearray.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded/threadpool.py to threadpool.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded/scan.py to scan.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcThreaded/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/pyfunctoc.py to pyfunctoc.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/scan.py to scan.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/PyInline.py to PyInline.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/code.py to code.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/log.py to log.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/simpinclude.py to simpinclude.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/latticearray.py to latticearray.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.6/dist-packages/simp/cache.py to cache.pyc
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/simp-0.6.12.egg-info
--------
Exit value: 0

Descend into "Examples" folder.

Output of "python ./hpp.py":
--------
Trying to import PcCodeGen
/usr/local/lib/python2.6/dist-packages/simp/stepmodules/PcCodeGen/PyInline.py:118: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5, os, sys
Compiling /home/silvio/.simpcache/_PyInline_c747aff57aa81cdacf8cb767e4c3fca9/_PyInline_c747aff57aa81cdacf8cb767e4c3fca9.c
success!
compiling LUT for hpp
Compiling /home/silvio/.simpcache/_PyInline_ec5d15ff8be1761a55b86917b585a651/_PyInline_ec5d15ff8be1761a55b86917b585a651.c
_PyInline_ec5d15ff8be1761a55b86917b585a651.c: In function ‘scan’:
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:54: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:55: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:135: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:137: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:139: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:141: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:145: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:147: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:149: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:151: warning: cast to pointer from integer of different size
_PyInline_ec5d15ff8be1761a55b86917b585a651.c:58: warning: unused variable ‘lut_ptr’
compiling LUT for intensity
Compiling /home/silvio/.simpcache/_PyInline_c7b2ae142cde3211f90831df7f6bc386/_PyInline_c7b2ae142cde3211f90831df7f6bc386.c
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c: In function ‘scan’:
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:54: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:55: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:135: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:137: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:139: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:141: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:145: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:147: warning: cast to pointer from integer of different size
_PyInline_c7b2ae142cde3211f90831df7f6bc386.c:58: warning: unused variable ‘lut_ptr’
Traceback (most recent call last):
File "./hpp.py", line 69, in <module>
init()
File "./hpp.py", line 57, in init
arr = ellipse_region.value()
File "/usr/local/lib/python2.6/dist-packages/simp/step.py", line 214, in value
out = Read(self.region,[self.signal])()[0]
File "/usr/local/lib/python2.6/dist-packages/simp/step.py", line 674, in __call__
return self.__step__.Do(self)
File "/usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc/__init__.py", line 172, in Do
return self.__do_read_values__(op,vargs)
File "/usr/local/lib/python2.6/dist-packages/simp/stepmodules/Pc/__init__.py", line 681, in __do_read_values__
_out[tuple(out_slc)] = read_array[tuple(wrap_slc)]
File "/usr/lib/python2.6/dist-packages/numarray/generic.py", line 619, in _broadcast
return _broadcast(arr, self._shape)
File "/usr/lib/python2.6/dist-packages/numarray/generic.py", line 93, in _broadcast
raise ValueError("Arrays have incompatible shapes")
ValueError: Arrays have incompatible shapes
--------
Exit value: 1

Discussion


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.