Hi, has anybody any experiences using weave.inline and Scientific.MPI together? Sometimes, even if the code has been already compiled I get the following error message. import weave File "/usr/lib/python2.3/site-packages/weave/__init__.py", line 9, in ? from blitz_tools import blitz File "/usr/lib/python2.3/site-packages/weave/blitz_tools.py", line 9, in ? import converters File "/usr/lib/python2.3/site-packages/weave/converters.py", line 42, in ? default.insert(0,wx_spec.wx_converter()) File "/usr/lib/python2.3/site-packages/weave/wx_spec.py", line 58, in __init__ common_base_converter.__init__(self) File "/usr/lib/python2.3/site-packages/weave/c_spec.py", line 74, in __init__ self.init_info() File "/usr/lib/python2.3/site-packages/weave/wx_spec.py", line 113, in init_info cxxflags = get_wxconfig('cxxflags') File "/usr/lib/python2.3/site-packages/weave/wx_spec.py", line 15, in get_wxconfig res,settings = commands.getstatusoutput(wxconfig + ' --' + flag) File "/usr/lib/python2.3/commands.py", line 54, in getstatusoutput text = pipe.read() IOError: [Errno 4] Interrupted system call Putting a time.sleep(2) somewhere at the beginning of the program helps. This happens on a openmosix cluster, i.e. a quasi SMP machine without the necessity to login on a remote machine. On another cluster where each machine has nfs mounted homes, the compilation seems to fail: File "/home/ise/kristuka/ck/lib/python/weave/inline_tools.py", line 322, in inline results = attempt_function_call(code,local_dict,global_dict) File "/home/ise/kristuka/ck/lib/python/weave/inline_tools.py", line 372, in attempt_function_call function_list = function_catalog.get_functions(code,module_dir) File "/home/ise/kristuka/ck/lib/python/weave/catalog.py", line 568, in get_functions function_list = self.get_cataloged_functions(code) File "/home/ise/kristuka/ck/lib/python/weave/catalog.py", line 487, in get_cataloged_functions for path in self.build_search_order(): File "/home/ise/kristuka/ck/lib/python/weave/catalog.py", line 369, in build_search_order search_order.append(default_dir()) File "/home/ise/kristuka/ck/lib/python/weave/catalog.py", line 176, in default_dir if not is_writable(path): File "/home/ise/kristuka/ck/lib/python/weave/catalog.py", line 135, in is_writable os.unlink(dummy) OSError: [Errno 2] No such file or directory: '/home/ise/kristuka/.python23_compiled/dummy' And time.sleep() doesn't help in this case. Any ideas? Regards, Christian
participants (1)
-
Christian Kristukat