Code Monkey home page Code Monkey logo

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` about snowboy HOT 2 OPEN

TomZhang1124 avatar TomZhang1124 commented on July 22, 2024
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`

from snowboy.

Comments (2)

TomZhang1124 avatar TomZhang1124 commented on July 22, 2024

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

from snowboy.

WH0226 avatar WH0226 commented on July 22, 2024

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

from snowboy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.