Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install pycdec #95

Open
shizhediao opened this issue Nov 16, 2017 · 1 comment
Open

Fail to install pycdec #95

shizhediao opened this issue Nov 16, 2017 · 1 comment

Comments

@shizhediao
Copy link

shizhediao commented Nov 16, 2017

I find most of the command about installing pycdec is python setup.py install
BUT, I just find the setup.py.in file and there is no setup.py file
when I type python setup.py.in install
I encountered with an error


`../utils/fast_sparse_vector.h: In member function 'size_t FastSparseVector<T, LOCAL_MAX>::size() const [with T = double; unsigned int LOCAL_MAX = 7u; size_t = long unsigned int]':
../utils/fast_sparse_vector.h:280:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
In file included from cdec/_cdec.cpp:264:0:
../decoder/kbest.h: In member function 'bool KBest::FilterUnique::operator()(const std::vector<int>&)':
../decoder/kbest.h:34:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
In file included from ../utils/fdict.h:11:0,
                 from ../utils/fast_sparse_vector.h:25,
                 from ../utils/sparse_vector.h:4,
                 from ../utils/weights.h:6,
                 from cdec/_cdec.cpp:238:
../utils/dict.h: In member function 'WordID Dict::Convert(const string&, bool)':
../utils/dict.h:60:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
In file included from ../utils/dict.h:11:0,
                 from ../utils/fdict.h:11,
                 from ../utils/fast_sparse_vector.h:25,
                 from ../utils/sparse_vector.h:4,
                 from ../utils/weights.h:6,
                 from cdec/_cdec.cpp:238:
../utils/wordid.h: At global scope:
../utils/wordid.h:9:21: warning: 'null_wordid' defined but not used [-Wunused-variable]
 static const WordID null_wordid=std::numeric_limits<WordID>::max();
                     ^


error: command 'gcc' failed with exit status 1`


Could anyone help me ?
thanks!

@anushreeapk
Copy link

Can we get a fix on this issue? I am facing the exact same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants