-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Setup.py fatal error: 'processor/wetext_processor.h' file not found #2032
Comments
Creating a soft link of |
@kuruvachankgeorge I do not see |
|
@kuruvachankgeorge Thanks so much for helping me it means a lot. There still isn't a directory Could that be the problem? Am I doing something wrong? Thanks |
I guess you didn't build the runtime in libtorch. So you can follow these steps:
Note: runtime build requires cmake 3.14 or above (conda install -c anaconda cmake) |
thank u for pointing it out. this is partly caused by the intergration of itn(wetextprocessing) runtime in pr |
@kuruvachankgeorge That worked! I experienced another error though with python setup.py install: Undefined symbols for architecture x86_64: File "setup.py", line 38, in build_extension It appears Would you mind helping me with this as well? I could not have done this without you thank you so much! |
Can you check the build instructions for iOS https://github.com/wenet-e2e/wenet/tree/main/runtime/ios |
Worked! Thank you for your advice. |
@kuruvachankgeorge @20070951 ,could u try this fix ? #2042 |
Hi, I haven't had any success running this so far. I have gotten this error every time I try to run anything using the wenetruntime python package:
libc++abi: terminating due to uncaught exception of type c10::Error: Type c10::intrusive_ptr<ConvPackedParamsBase<2>, c10::detail::intrusive_target_default_null_type<ConvPackedParamsBase<2> > > could not be converted to any of the known types.
Exception raised from operator() at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/core/jit_type.h:1756 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>) + 98 (0x11fa8c992 in libc10.dylib)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator> const&) + 106 (0x11fa8b0aa in libc10.dylib)
frame #2: c10::detail::getTypePtr<c10::intrusive_ptr<ConvPackedParamsBase<2>, c10::detail::intrusive_target_default_null_type<ConvPackedParamsBase<2>>>>::call()::'lambda'()::operator()() const + 275 (0x15581e233 in libtorch_cpu.dylib)
frame #3: c10::Type::SingletonOrSharedTypePtrc10::Type c10::getFakeTypePtrCopy<c10::intrusive_ptr<ConvPackedParamsBase<2>, c10::detail::intrusive_target_default_null_type<ConvPackedParamsBase<2>>>>() + 25 (0x15581dfc9 in libtorch_cpu.dylib)
frame #4: c10::detail::infer_schema::(anonymous namespace)::createArgumentVector(c10::ArrayRefc10::detail::infer_schema::ArgumentDef) + 188 (0x15509197c in libtorch_cpu.dylib)
frame #5: c10::detail::infer_schema::make_function_schema(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>&&, c10::ArrayRefc10::detail::infer_schema::ArgumentDef, c10::ArrayRefc10::detail::infer_schema::ArgumentDef) + 123 (0x15509174b in libtorch_cpu.dylib)
frame #6: c10::detail::infer_schema::make_function_schema(c10::ArrayRefc10::detail::infer_schema::ArgumentDef, c10::ArrayRefc10::detail::infer_schema::ArgumentDef) + 76 (0x155091d6c in libtorch_cpu.dylib)
frame #7: std::__1::unique_ptr<c10::FunctionSchema, std::__1::default_deletec10::FunctionSchema> c10::detail::inferFunctionSchemaFromFunctor<at::Tensor (*)(at::Tensor, c10::intrusive_ptr<ConvPackedParamsBase<2>, c10::detail::intrusive_target_default_null_type<ConvPackedParamsBase<2>>> const&, double, long long)>() + 180 (0x15587ade4 in libtorch_cpu.dylib)
**And the error goes on and on. I decided to run from source so I tried:
And when I do so it fails after countless warnings with this fatal error:**
[ 69%] Built target kaldi-decoder #Was working
[ 74%] Built target frontend #Was working
[ 76%] Building CXX object post_processor/CMakeFiles/post_processor.dir/post_processor.cc.o#Was working
In file included from /Users/ronangrant/Safe/wenet2/wenet/runtime/binding/python/post_processor/post_processor.cc:16: #Error
/Users/ronangrant/Safe/wenet2/wenet/runtime/binding/python/post_processor/post_processor.h:22:10: fatal error: 'processor/wetext_processor.h' file not found
#include "processor/wetext_processor.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [post_processor/CMakeFiles/post_processor.dir/post_processor.cc.o] Error 1
make[2]: *** [post_processor/CMakeFiles/post_processor.dir/all] Error 2
make[1]: *** [CMakeFiles/_wenet.dir/rule] Error 2
make: *** [_wenet] Error 2
......
File "setup.py", line 38, in build_extension
raise Exception(
Exception:
Build wenet failed. Please check the error message.
You can ask for help by creating an issue on GitHub.
**I am using MacOs on an intel Mac. I have tried on python 3.10. 3.9 and 3.8. The error above was python 3.8.
If you could help I would really appreciate it**
The text was updated successfully, but these errors were encountered: