>python
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
Traceback (most recent call last):
File "C:\Python33\lib\site-packages\theano\gof\lazylinker_c.py", line 58, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python33\lib\site-packages\theano\gof\lazylinker_c.py", line 75, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python33\lib\site-packages\theano\__init__.py", line 55, in <module>
from theano.compile import \
File "C:\Python33\lib\site-packages\theano\compile\__init__.py", line 6, in <module>
from theano.compile.function_module import *
File "C:\Python33\lib\site-packages\theano\compile\function_module.py", line 18, in <module>
import theano.compile.mode
File "C:\Python33\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "C:\Python33\lib\site-packages\theano\gof\vm.py", line 516, in <module>
from . import lazylinker_c
File "C:\Python33\lib\site-packages\theano\gof\lazylinker_c.py", line 84, in <module>
args = cmodule.GCC_compiler.compile_args()
File "C:\Python33\lib\site-packages\theano\gof\cmodule.py", line 1594, in compile_args
native_lines = get_lines("g++ -march=native -E -v -")
File "C:\Python33\lib\site-packages\theano\gof\cmodule.py", line 1568, in get_lines
(stdout, stderr) = p.communicate(input='')
File "C:\Python33\lib\subprocess.py", line 928, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Python33\lib\subprocess.py", line 1202, in _communicate
self.stdin.write(input)
TypeError: 'str' does not support the buffer interface
>>>
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
%guiref -> A brief reference about the graphical user interface.
In [1]: import theano
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-3397704bd624> in <module>()
----> 1 import theano
C:\Python33\lib\site-packages\theano\__init__.py in <module>()
53 object2, utils
54
---> 55 from theano.compile import 56 SymbolicInput, In, 57 SymbolicOutput, Out,
C:\Python33\lib\site-packages\theano\compile\__init__.py in <module>()
4 ViewOp, view_op, register_view_op_c_code)
5
----> 6 from theano.compile.function_module import *
7
8 from theano.compile.mode import *
C:\Python33\lib\site-packages\theano\compile\function_module.py in <module>()
16 from theano import gof
17 from theano.gof.python25 import partial
---> 18 import theano.compile.mode
20 from theano.compile.ops import deep_copy_op, view_op
C:\Python33\lib\site-packages\theano\compile\mode.py in <module>()
9 import theano
10 from theano import gof
---> 11 import theano.gof.vm
12 from theano.configparser import config, AddConfigVar, StrParam
13 from theano.compile.ops import register_view_op_c_code, _output_guard
C:\Python33\lib\site-packages\theano\gof\vm.py in <module>()
514
515 try:
--> 516 from . import lazylinker_c
517
518 class CVM(lazylinker_c.CLazyLinker, VM):
C:\Python33\lib\site-packages\theano\gof\lazylinker_c.py in <module>()
82 if not os.path.exists(loc):
83 os.mkdir(loc)
---> 84 args = cmodule.GCC_compiler.compile_args()
85 cmodule.GCC_compiler.compile_str(dirname, code, location=loc,
86 preargs=args)
C:\Python33\lib\site-packages\theano\gof\cmodule.py in compile_args()
1592 # The '-' at the end is needed. Otherwise, g++ do not output
1593 # enough information.
-> 1594 native_lines = get_lines("g++ -march=native -E -v -")
1595 if native_lines is None:
1596 _logger.info("Call to 'g++ -march=native' failed,"
C:\Python33\lib\site-packages\theano\gof\cmodule.py in get_lines(cmd, parse)
1566 # waiting forever without returning. For that reason,
1567 # we use a pipe, and use the empty string as input.
-> 1568 (stdout, stderr) = p.communicate(input='')
1569 if p.returncode != 0:
1570 return None
C:\Python33\lib\subprocess.py in communicate(self, input, timeout)
926
927 try:
--> 928 stdout, stderr = self._communicate(input, endtime, timeout)
929 finally:
930 self._communication_started = True
C:\Python33\lib\subprocess.py in _communicate(self, input, endtime, orig_timeout)
1200 if input is not None:
1201 try:
-> 1202 self.stdin.write(input)
1203 except IOError as e:
1204 if e.errno != errno.EPIPE:
TypeError: 'str' does not support the buffer interface