Hi.

New to Python.

I'm getting the following error when I try to import Theano while running 
Jupyter, all installed via ANACONDA:

You can find the C code in this temporary file: 
/var/folders/wr/k87f31j53k7fkt9m7x7n09yc0000gn/T/theano_compilation_error_xlfvdoxt

---------------------------------------------------------------------------ImportError
                               Traceback (most recent call 
last)/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py in 
<module>()     80                     version,---> 81                     
actual_version, force_compile, _need_reload))     82 except ImportError:
ImportError: Version check of the existing lazylinker compiled file. Looking 
for version 0.211, but found None. Extra debug information: 
force_compile=False, _need_reload=True

During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call 
last)/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py in 
<module>()    104                         version,--> 105                       
  actual_version, force_compile, _need_reload))    106         except 
ImportError:
ImportError: Version check of the existing lazylinker compiled file. Looking 
for version 0.211, but found None. Extra debug information: 
force_compile=False, _need_reload=True

During handling of the above exception, another exception occurred:
Exception                                 Traceback (most recent call 
last)<ipython-input-3-e2d3ee711e72> in <module>()----> 1 import theano
/anaconda3/lib/python3.5/site-packages/theano/__init__.py in <module>()    108  
   object2, utils)    109 --> 110 from theano.compile import (    111     
SymbolicInput, In,    112     SymbolicOutput, Out,
/anaconda3/lib/python3.5/site-packages/theano/compile/__init__.py in <module>() 
    10 from theano.compile.function_module import *     11 ---> 12 from 
theano.compile.mode import *     13      14 from theano.compile.io import *
/anaconda3/lib/python3.5/site-packages/theano/compile/mode.py in <module>()     
 9 import theano     10 from theano import gof---> 11 import theano.gof.vm     
12 from theano import config     13 from six import string_types
/anaconda3/lib/python3.5/site-packages/theano/gof/vm.py in <module>()    672    
 if not theano.config.cxx:    673         raise 
theano.gof.cmodule.MissingGXX('lazylinker will not be imported if 
theano.config.cxx is not set.')--> 674     from . import lazylinker_c    675    
 676     class CVM(lazylinker_c.CLazyLinker, VM):
/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py in <module>() 
   138             args = cmodule.GCC_compiler.compile_args()    139            
 cmodule.GCC_compiler.compile_str(dirname, code, location=loc,--> 140           
                                   preargs=args)    141             # Save 
version into the __init__.py file.    142             init_py = 
os.path.join(loc, '__init__.py')
/anaconda3/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)   2389             # difficult to read.   
2390             raise Exception('Compilation failed (return status=%s): %s' 
%-> 2391                             (status, compile_stderr.replace('\n', '. 
')))   2392         elif config.cmodule.compilation_warning and compile_stderr: 
  2393             # Print errors just below the command line.
Exception: Compilation failed (return status=1): In file included from 
/Users/nunonene/.theano/compiledir_Darwin-16.6.0-x86_64-i386-64bit-i386-3.5.5-64/lazylinker_ext/mod.cpp:1:.
 In file included from /anaconda3/include/python3.5m/Python.h:25:. 
/anaconda3/bin/../include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file 
not found. #include_next <stdio.h>.               ^~~~~~~~~. 1 error 
generated.. 


Thank you advance for your help.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to theano-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to