{"action":"created","issue":{"url":"https://api.github.com/repos/Theano/Theano/issues/4807","repository_url":"https://api.github.com/repos/Theano/Theano","labels_url":"https://api.github.com/repos/Theano/Theano/issues/4807/labels{/name}","comments_url":"https://api.github.com/repos/Theano/Theano/issues/4807/comments","events_url":"https://api.github.com/repos/Theano/Theano/issues/4807/events","html_url":"https://github.com/Theano/Theano/issues/4807","id":168373480,"number":4807,"title":"Lazylinker_c.py raises import error","user":{"login":"dave07747","id":11511901,"avatar_url":"https://avatars.githubusercontent.com/u/11511901?v=3","gravatar_id":"","url":"https://api.github.com/users/dave07747","html_url":"https://github.com/dave07747","followers_url":"https://api.github.com/users/dave07747/followers","following_url":"https://api.github.com/users/dave07747/following{/other_user}","gists_url":"https://api.github.com/users/dave07747/gists{/gist_id}","starred_url":"https://api.github.com/users/dave07747/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave07747/subscriptions","organizations_url":"https://api.github.com/users/dave07747/orgs","repos_url":"https://api.github.com/users/dave07747/repos","events_url":"https://api.github.com/users/dave07747/events{/privacy}","received_events_url":"https://api.github.com/users/dave07747/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-29T17:24:51Z","updated_at":"2016-08-12T06:50:18Z","closed_at":"2016-07-29T21:04:31Z","body":"Hi, I am following the guide that is on deeplearning.net for windows install, and I got to the test phase, but when I try to run it, I get this error. I believe it is related to the lazy linker.\r\nThank you!\r\n\r\nProblem occurred during compilation with the command line below:\r\nC:\\TDM-GCC-64\\bin\\g++.exe -shared -g -march=core2 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -IC:\\Python34\\lib\\site-packages\\numpy\\core\\include -IC:\\Python34\\include -Ic:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof -o C:\\Users\\David\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_23_Stepping_10_GenuineIntel-3.4.4-64\\lazylinker_ext\\lazylinker_ext.pyd C:\\Users\\David\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_23_Stepping_10_GenuineIntel-3.4.4-64\\lazylinker_ext\\mod.cpp -LC:\\Python34\\libs -LC:\\Python34 -lpython34\r\nC:\\Python34\\libs/python34.lib: error adding symbols: File in wrong format\r\n\r\ncollect2.exe: error: ld returned 1 exit status\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof\\lazylinker_c.py\", line 75, in <module>\r\n    raise ImportError()\r\nImportError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof\\lazylinker_c.py\", line 92, in <module>\r\n    raise ImportError()\r\nImportError\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\David\\Desktop\\Neural Net\\Theano\\test.py\", line 3, in <module>\r\n    import theano\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\__init__.py\", line 70, in <module>\r\n    from theano.compile import (\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\compile\\__init__.py\", line 10, in <module>\r\n    from theano.compile.function_module import *\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\compile\\function_module.py\", line 21, in <module>\r\n    import theano.compile.mode\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\compile\\mode.py\", line 12, in <module>\r\n    import theano.gof.vm\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof\\vm.py\", line 659, in <module>\r\n    from . import lazylinker_c\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof\\lazylinker_c.py\", line 127, in <module>\r\n    preargs=args)\r\n  File \"c:\\users\\david\\desktop\\neural net\\theano\\theano\\theano\\gof\\cmodule.py\", line 2299, in compile_str\r\n    (status, compile_stderr.replace('\\n', '. ')))\r\nException: Compilation failed (return status=1): C:\\Python34\\libs/python34.lib: error adding symbols: File in wrong format\r\n. collect2.exe: error: ld returned 1 exit status\r\n. "},"comment":{"url":"https://api.github.com/repos/Theano/Theano/issues/comments/239373824","html_url":"https://github.com/Theano/Theano/issues/4807#issuecomment-239373824","issue_url":"https://api.github.com/repos/Theano/Theano/issues/4807","id":239373824,"user":{"login":"anujshah1003","id":20814689,"avatar_url":"https://avatars.githubusercontent.com/u/20814689?v=3","gravatar_id":"","url":"https://api.github.com/users/anujshah1003","html_url":"https://github.com/anujshah1003","followers_url":"https://api.github.com/users/anujshah1003/followers","following_url":"https://api.github.com/users/anujshah1003/following{/other_user}","gists_url":"https://api.github.com/users/anujshah1003/gists{/gist_id}","starred_url":"https://api.github.com/users/anujshah1003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujshah1003/subscriptions","organizations_url":"https://api.github.com/users/anujshah1003/orgs","repos_url":"https://api.github.com/users/anujshah1003/repos","events_url":"https://api.github.com/users/anujshah1003/events{/privacy}","received_events_url":"https://api.github.com/users/anujshah1003/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T06:50:18Z","updated_at":"2016-08-12T06:50:18Z","body":"how can we fix the issue with TDM-GCC\r\n\r\n\r\nProblem occurred during compilation with the command line below:\r\nC:\\TDM-GCC-64\\bin\\g++.exe -shared -g -march=core2 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=core2 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -IC:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\numpy\\core\\include -IC:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\include -IC:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\gof -o C:\\Users\\uid38717\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_23_Stepping_10_GenuineIntel-2.7.12-64\\lazylinker_ext\\lazylinker_ext.pyd C:\\Users\\uid38717\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_23_Stepping_10_GenuineIntel-2.7.12-64\\lazylinker_ext\\mod.cpp -LC:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\libs -LC:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2 -lpython27\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-1-3397704bd624>\", line 1, in <module>\r\n    import theano\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\__init__.py\", line 63, in <module>\r\n    from theano.compile import (\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\compile\\__init__.py\", line 9, in <module>\r\n    from theano.compile.function_module import *\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\compile\\function_module.py\", line 22, in <module>\r\n    import theano.compile.mode\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\compile\\mode.py\", line 12, in <module>\r\n    import theano.gof.vm\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\gof\\vm.py\", line 638, in <module>\r\n    from . import lazylinker_c\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\gof\\lazylinker_c.py\", line 126, in <module>\r\n    preargs=args)\r\n\r\n  File \"C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\lib\\site-packages\\theano-0.8.2-py2.7.egg\\theano\\gof\\cmodule.py\", line 2204, in compile_str\r\n    (status, compile_stderr.replace('\\n', '. ')))\r\n\r\n. collect2.exe: error: ld returned 1 exit status C:\\Users\\uid38717\\AppData\\Local\\Continuum\\Anaconda2\\libs/python27.lib: error adding symbols: File in wrong format"}}
{"actor":{"display_login":"anujshah1003"}}