theano - Error during NER Tagger compilation -


i new python, conducting ms research in deep learning. trying run ner tagger provided https://github.com/glample/tagger in anaconda prompt , cmd got following error on windows 7 32 bit-python 2.7 numpy , theano installed.

sorry pasting such long error unable fix this.

00878 { 00879 // save references outputs prior updating storage containers 00880 assert (self->n_output_vars >= self->n_updates); 00881 py_decref(rval); 00882 rval = pylist_new(self->n_output_vars); 00883 (int = 0; < (self->n_output_vars); ++i) 00884 { 00885 py_ssize_t src = self->output_vars[i]; 00886 pyobject * item = pylist_getitem(self->var_value_cells[src ], 0); 00887 if ((output_subset == null || output_subset[i]) && 00888 self->var_computed[src] != 1) 00889 { 00890 err = 1; 00891 pyerr_format(pyexc_assertionerror, 00892 "the compute map of output %d should cont ain " 00893 "1 @ end of execution, not %d.", 00894 i, self->var_computed[src]); 00895 break; 00896 } 00897 py_incref(item); 00898 pylist_setitem(rval, i, item); 00899 } 00900 } 00901 00902 if (!err) 00903 { 00904 // update inputs have update rule 00905 (int = 0; < self->n_updates; ++i) 00906 { 00907 pyobject* tmp = pylist_getitem(rval, self->n_output_vars - self->n_updates + i); 00908 py_incref(tmp); 00909 py_ssize_t dst = self->update_storage[i]; 00910 pylist_setitem(self->var_value_cells[dst], 0, tmp); 00911 } 00912 } 00913 } 00914 00915 /* 00916 clear left , not output. needed 00917 lazy evaluation since current gc algo conservative 00918 lazy graphs. 00919 / 00920 if (self->allow_gc && !err) 00921 { 00922 (py_ssize_t = 0; < self->n_vars; ++i) 00923 { 00924 int do_cleanup = 1; 00925 if (!self->var_has_owner[i] || !self->var_computed[i]) 00926 continue; 00927 (int j = 0; j < self->n_output_vars; ++j) 00928 { 00929 if (i == self->output_vars[j]) 00930 { 00931 do_cleanup = 0; 00932 break; 00933 } 00934 } 00935 if (!do_cleanup) 00936 continue; 00937 py_incref(py_none); 00938 pylist_setitem(self->var_value_cells[i], 0, py_none); 00939 } 00940 } 00941 if (output_subset != null) 00942 free(output_subset); 00943 00944 py_decref(one); 00945 py_decref(zero); 00946 if (err) 00947 { 00948 py_decref(rval); 00949 return null; 00950 } 00951 return rval; 00952 } 00953 00954 #if 0 00955 static pymethoddef clazylinker_methods[] = { 00956 { 00957 //"name", (pycfunction)clazylinker_accept, meth_varargs, "return t name, combining first , last name" 00958 }, 00959 {null} / sentinel / 00960 }; 00961 #endif 00962 00963 00964 static pyobject * 00965 clazylinker_get_allow_gc(clazylinker self, void closure) 00966 { 00967 return pybool_fromlong(self->allow_gc); 00968 } 00969 00970 static int 00971 clazylinker_set_allow_gc(clazylinker self, pyobject value, void closu re) 00972 { 00973 if(!pybool_check(value)) 00974 return -1; 00975 00976 if (value == py_true) 00977 self->allow_gc = true; 00978 else 00979 self->allow_gc = false; 00980 return 0; 00981 } 00982 00983 static pygetsetdef clazylinker_getset[] = { 00984 {(char)"allow_gc", 00985 (getter)clazylinker_get_allow_gc, 00986 (setter)clazylinker_set_allow_gc, 00987 (char)"do function support allow_gc", 00988 null}, 00989 {null, null, null, null} / sentinel / 00990 }; 00991 static pymemberdef clazylinker_members[] = { 00992 {(char)"nodes", t_object_ex, offsetof(clazylinker, nodes), 0, 00993 (char)"list of nodes"}, 00994 {(char)"thunks", t_object_ex, offsetof(clazylinker, thunks), 0, 00995 (char)"list of thunks in program"}, 00996 {(char*)"call_counts", t_object_ex, offsetof(clazylinker, call_count s), 0, 00997 (char*)"number of calls of each thunk"}, 00998 {(char*)"call_times", t_object_ex, offsetof(clazylinker, call_times) , 0, 00999 (char*)"total runtime in each thunk"}, 01000 {(char*)"position_of_error", t_int, offsetof(clazylinker, position_o f_error), 0, 01001 (char*)"position of failed thunk"}, 01002 {(char*)"time_thunks", t_int, offsetof(clazylinker, do_timing), 0, 01003 (char*)"bool: nonzero means call time thunks"}, 01004 {(char*)"need_update_inputs", t_int, offsetof(clazylinker, need_upda te_inputs), 0, 01005 (char*)"bool: nonzero means function.call must implement update mechanism"}, 01006 {null} /* sentinel */ 01007 }; 01008 01009 static pytypeobject lazylinker_ext_clazylinkertype = { 01010 #if defined(npy_py3k) 01011 pyvarobject_head_init(null, 0) 01012 #else 01013 pyobject_head_init(null) 01014 0, /ob_size/ 01015 #endif 01016 "lazylinker_ext.clazylinker", /tp_name/ 01017 sizeof(clazylinker), /tp_basicsize/ 01018 0, /tp_itemsize/ 01019 clazylinker_dealloc, /tp_dealloc/ 01020 0, /tp_print/ 01021 0, /tp_getattr/ 01022 0, /tp_setattr/ 01023 0, /tp_compare/ 01024 0, /tp_repr/ 01025 0, /tp_as_number/ 01026 0, /tp_as_sequence/ 01027 0, /tp_as_mapping/ 01028 0, /*tp_hash / 01029 clazylinker_call, /tp_call/ 01030 0, /tp_str/ 01031 0, /tp_getattro/ 01032 0, /tp_setattro/ 01033 0, /tp_as_buffer/ 01034 py_tpflags_default|py_tpflags_basetype, /tp_flags/ 01035 "clazylinker object", / tp_doc / 01036 0, / tp_traverse / 01037 0, / tp_clear / 01038 0, / tp_richcompare / 01039 0, / tp_weaklistoffset / 01040 0, / tp_iter / 01041 0, / tp_iternext / 01042 0,//clazylinker_methods, / tp_methods / 01043 clazylinker_members, / tp_members / 01044 clazylinker_getset, / tp_getset / 01045 0, / tp_base / 01046 0, / tp_dict / 01047 0, / tp_descr_get / 01048 0, / tp_descr_set / 01049 0, / tp_dictoffset / 01050 (initproc)clazylinker_init,/ tp_init / 01051 0, / tp_alloc / 01052 clazylinker_new, / tp_new */ 01053 }; 01054 01055 static pyobject * get_version(pyobject *dummy, pyobject *args) 01056 { 01057 pyobject *result = pyfloat_fromdouble(0.211); 01058 return result; 01059 } 01060 01061 static pymethoddef lazylinker_ext_methods[] = { 01062 {"get_version", get_version, meth_varargs, "get extension version."},  01063 {null, null, 0, null} /* sentinel / 01064 }; 01065 01066 #if defined(npy_py3k) 01067 static struct pymoduledef moduledef = { 01068 pymoduledef_head_init, 01069 "lazylinker_ext", 01070 null, 01071 -1, 01072 lazylinker_ext_methods, 01073 null, 01074 null, 01075 null, 01076 null 01077 }; 01078 #endif 01079 #if defined(npy_py3k) 01080 #define retval m 01081 pymodinit_func 01082 pyinit_lazylinker_ext(void) { 01083 #else 01084 #define retval 01085 pymodinit_func 01086 initlazylinker_ext(void) 01087 { 01088 #endif 01089 pyobject m; 01090 01091 lazylinker_ext_clazylinkertype.tp_new = pytype_genericnew; 01092 if (pytype_ready(&lazylinker_ext_clazylinkertype) < 0) 01093 return retval; 01094 #if defined(npy_py3k) 01095 m = pymodule_create(&moduledef); 01096 #else 01097 m = py_initmodule3("lazylinker_ext", lazylinker_ext_methods, 01098 "example module creates extension type.") ; 01099 #endif 01100 py_incref(&lazylinker_ext_clazylinkertype); 01101 pymodule_addobject(m, "clazylinker", (pyobject *)&lazylinker_ext_cla zylinkertype); 01102 01103 return retval; 01104 } 01105  problem occurred during compilation command line below: "c:\mingw\bin\g++.exe" -shared -g -dnpy_no_deprecated_api=npy_1_7_api_version -m 32 -i"c:\programdata\anaconda2\lib\site-packages\numpy\core\include" -i"c:\progr amdata\anaconda2\include" -i"c:\programdata\anaconda2\lib\site-packages\theano\g of" -l"c:\programdata\anaconda2\libs" -l"c:\programdata\anaconda2" -o c:\users\r abia noureen\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-x86_family_6 model_42_stepping_7_genuineintel-2.7.13-32\lazylinker_ext\lazylinker_ext.pyd c: \users\rabia noureen\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-x86 family_6_model_42_stepping_7_genuineintel-2.7.13-32\lazylinker_ext\mod.cpp -lpyt hon27 g++.exe: error: noureen\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-x 86_family_6_model_42_stepping_7_genuineintel-2.7.13-32\lazylinker_ext\lazylinker _ext.pyd: no such file or directory g++.exe: error: c:\users\rabia: no such file or directory g++.exe: error: noureen\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-x 86_family_6_model_42_stepping_7_genuineintel-2.7.13-32\lazylinker_ext\mod.cpp: n o such file or directory  traceback (most recent call last): file "./tagger.py", line 8, in loader import prepare_sentence file "c:\programdata\anaconda2\tagger-master\tagger-master\loader.py", line 4, in utils import create_dico, create_mapping, zero_digits file "c:\programdata\anaconda2\tagger-master\tagger-master\utils.py", line 5, in import theano file "c:\programdata\anaconda2\lib\site-packages\theano_init_.py", line 66, in theano.compile import ( file "c:\programdata\anaconda2\lib\site-packages\theano\compile_init_.py", line 10, in theano.compile.function_module import * file "c:\programdata\anaconda2\lib\site-packages\theano\compile\function_modul e.py", line 21, in import theano.compile.mode file "c:\programdata\anaconda2\lib\site-packages\theano\compile\mode.py", line 10, in import theano.gof.vm file "c:\programdata\anaconda2\lib\site-packages\theano\gof\vm.py", line 662, in . import lazylinker_c file "c:\programdata\anaconda2\lib\site-packages\theano\gof\lazylinker_c.py", line 127, in preargs=args) file "c:\programdata\anaconda2\lib\site-packages\theano\gof\cmodule.py", line 2316, in compile_str (status, compile_stderr.replace('\n', '. '))) exception: compilation failed (return status=1): g++.exe: error: noureen\appdata \local\theano\compiledir_windows-7-6.1.7601-sp1-x86_family_6_model_42_stepping_7 _genuineintel-2.7.13-32\lazylinker_ext\lazylinker_ext.pyd: no such file or direc . g++.exe: error: noureen\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1 -x86_family_6_model_42_stepping_7_genuineintel-2.7.13-32\lazylinker_ext\mod.cpp: . o such file or directory 


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -