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

Did you change examples/Python/snowboydetect.py by any chance? That file was generated by swig automatically and the first line is not ../../swig/Python/snowboydetect.py. Your error message seems to suggest that the first line is ../../swig/Python/snowboydetect.py #709

Open
TomZhang1124 opened this issue Apr 13, 2023 · 2 comments

Comments

@TomZhang1124
Copy link

          Did you change `examples/Python/snowboydetect.py` by any chance? That file was generated by swig automatically and the first line is not `../../swig/Python/snowboydetect.py`. Your error message seems to suggest that the first line is `../../swig/Python/snowboydetect.py`

Originally posted by @chenguoguo in #266 (comment)

@TomZhang1124
Copy link
Author

Brother, my device is the orange pie 5ubuntu20.0.04. When I ran demo, the syntax error was prompted. I tried all kinds of methods, but the problem was the same. I come from China, my English is not very good, I did not understand the solution, please help me to see, thank you. Brother, my device is orange pie 5Ubuntu 20.0.04, go to run demo
orangepi@orangepi5:/usr/src/snowboy/examples/Python3$ python3.8 demo.py resources/models/snowboy.umdl
Traceback (most recent call last):
File "demo.py", line 1, in
import snowboydecoder
File "/usr/src/snowboy/examples/Python3/snowboydecoder.py", line 5, in
import snowboydetect
File "/usr/src/snowboy/examples/Python3/snowboydetect.py", line 1
../../swig/Python3/snowboydetect.py
^
SyntaxError: invalid syntax

resources and other files in this example /Python3 seem to be redirects. My environment doesn't seem to be able to parse this

@WH0226
Copy link

WH0226 commented Aug 29, 2023

请问你解决这个问题了吗,我也遇到了相同的问题

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