fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 149 forks source link

Error in susi_state_machine.py #261

Closed sansyrox closed 6 years ago

sansyrox commented 6 years ago

Describe the bug Main script breaking after snowboy refractor

To Reproduce Install as usual

  1. Install as usual
  2. python3 -m main

Expected behavior To bring the script in working state

Log ` File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/pi/SUSI.AI/susi_linux/main/main.py", line 4, in susiStateMachine = SusiStateMachine() File "/home/pi/SUSI.AI/susi_linux/main/states/susi_state_machine.py", line 88, in init components = Components(renderer) File "/home/pi/SUSI.AI/susi_linux/main/states/susi_state_machine.py", line 59, in init from main.hotword_engine import SnowboyDetector ImportError: cannot import name 'SnowboyDetector'

` Additional context Add any other context about the problem here.

sansyrox commented 6 years ago

@prateekiiest , since you have been working Snowboy ,it would be faster if you could have a look here

prateekiiest commented 6 years ago

Ok I will be looking into it tonight

sansyrox commented 6 years ago

@prateekiiest , please try to keep it a priority as it is a blocker for other PR to be made in the future

prateekiiest commented 6 years ago

Solving this will solve the issue here https://github.com/fossasia/susi_linux/blob/67aaa44cb1a885a0254e64d7f46d3fa3044b9d42/main/hotword_engine/snowboy_detector.py#L11

sansyrox commented 6 years ago

Fixed at #262 #263