-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Hi,
I am not a computer scientist and I am pretty new to Ipython and mac (please avoid the computer jargon, that would be helpful). I am trying to use theano on python 3 via Ipython. I have imported successfully theano but when I am calling T.funtion or T.grad...., I got a tremendous pink error message endind by the following below: I have no clue, what that means. Can someone please help.Thanks a lot
Config:mac os x 10.10 - python 3
Exception Traceback (most recent call last)
in ()
----> 1 f = theano.function([x],y)
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/compile/function.py in function(inputs, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input)
318 # borrowed used defined inputs
319 fn._check_for_aliased_inputs = check_for_aliased_inputs
--> 320 return fn
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/compile/pfunc.py in pfunc(params, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input, output_keys)
477 except AttributeError:
478 givens_pairs = givens
--> 479 for x, y in givens_pairs:
480 if x in in_var_set:
481 raise RuntimeError(
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/compile/function_module.py in orig_function(inputs, outputs, mode, accept_inplace, name, profile, on_unused_input, output_keys)
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/compile/function_module.py in create(self, input_storage, trustme, storage_map)
1639 " and thus they cannot be assigned through keyword "
1640 "arguments (use 'name=...' in a Variable's "
-> 1641 "constructor to give it a name)." % n_unnamed_inputs)
1642 else:
1643 if n_unnamed_inputs == 0:
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/link.py in make_thunk(self, input_storage, output_storage, storage_map)
688 """
689 fgraph = self.fgraph
--> 690 order = self.schedule(fgraph)
691 no_recycling = self.no_recycling
692
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/vm.py in make_all(self, profiler, input_storage, output_storage, storage_map)
1001 compute_map[k] = [k.owner is None]
1002
-> 1003 thunks = []
1004
1005 # Collect Reallocation Info
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/op.py in make_thunk(self, node, storage_map, compute_map, no_recycling)
968 self.dict.update(d)
969 # If we unpickle old op
--> 970 if not hasattr(self, "openmp"):
971 self.openmp = False
972
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/op.py in make_c_thunk(self, node, storage_map, compute_map, no_recycling)
877 else:
878 assert action == 'warn'
--> 879 warnings.warn(msg, stacklevel=2)
880
881
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cc.py in make_thunk(self, input_storage, output_storage, storage_map, keep_lock)
1198 sig.append('NPY_ABI_VERSION=0x%X' %
1199 numpy.core.multiarray._get_ndarray_c_version())
-> 1200 if c_compiler:
1201 sig.append('c_compiler_str=' + c_compiler.version_str())
1202
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cc.py in compile(self, input_storage, output_storage, storage_map, keep_lock)
1141 booleans, indicating whether each output is in the
1142 no_recycling set. Older versions of compiled modules only have the
-> 1143 no_recycle list.
1144 """
1145 return self.cmodule_key_(self.fgraph, self.no_recycling,
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cc.py in cthunk_factory(self, error_storage, in_storage, out_storage, storage_map, keep_lock)
1593 return self
1594
-> 1595 def make_all(self, profiler=None, input_storage=None, output_storage=None):
1596
1597 # The lock will be acquired when we compile the first
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cmodule.py in module_from_key(self, key, lnk, keep_lock)
1140 # same time. This can happen as we read the cache
1141 # without taking the lock.
-> 1142 if i == 2:
1143 with compilelock.lock_ctx():
1144 with open(key_pkl, 'rb') as f:
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cc.py in compile_cmodule(self, location)
1504
1505 def find_task(self, failure_code):
-> 1506 """
1507 Maps a failure code to the task that is associated to it.
1508 """
/Users/xxx/anaconda/lib/python3.5/site-packages/theano/gof/cmodule.py in compile_str(module_name, src_code, location, include_dirs, lib_dirs, libs, preargs, py_module, hide_symbols)
Exception: ('The following error happened while compiling the node', InplaceDimShuffle{}(TensorConstant{1}), '\n', "Compilation failed (return status=1): In file included from /Users/xxx/.theano/compiledir_Darwin-14.1.0-x86_64-i386-64bit-i386-3.5.1-64/tmpgph_c4e6/mod.cpp:2:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:15:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628:. In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:. /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found. #include <__debug>. ^. 1 error generated.. ", '[InplaceDimShuffle{}(TensorConstant{1})]')