TheSoundOfAIOSR / project_common

Common environment for all groups to connect to other groups with a relative path
MIT License
9 stars 5 forks source link

running issues #13

Closed wassfila closed 3 years ago

wassfila commented 3 years ago

Top repo

Production

Text to Sound

wassfila commented 3 years ago

@atjessehill for info, I realised you're not in the RC's group so I invited you. The matoplotlib dependency is easy to add to the requirement.txt, I have it local, did not want to push on your repo maybe just let you do it. The freeze and the error, I'm not sure if it's csound version related or if you've seen that already ?

wassfila commented 3 years ago

after installing asyncio manually into the bash venv and run.bat again

D:\Dev\SoundHacking\project_common\rg_text_to_sound>bash -c "source venv/bin/activate; cd tts_websocketserver/src; python3 -m tts_websocketserver.tts_server"
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/mnt/d/Dev/SoundHacking/project_common/rg_text_to_sound/tts_websocketserver/src/tts_websocketserver/tts_server.py", line 1, in <module>
    from tts_websocketserver.tts_pipeline import get_pipeline
  File "/mnt/d/Dev/SoundHacking/project_common/rg_text_to_sound/tts_websocketserver/src/tts_websocketserver/tts_pipeline.py", line 1, in <module>
    from tts_pipeline.pipelines.waterfall.pipeline import WaterfallPipeline
ModuleNotFoundError: No module named 'tts_pipeline'
wassfila commented 3 years ago

After all the bash and wsl dependency could be the source of deviations between systems so removing it and having a symilar install run like other modules could be a clean up that solves this issue

Leofltt commented 3 years ago

@wassfila matplotlib is in the requirements, please pull most recent rg_production into project_common

wassfila commented 3 years ago

For info, more details about the tts fix , files to be edited

image

wassfila commented 3 years ago

Taken from PR comments

fixed with 26018d6

D:\Dev\SoundHacking\project_common\rg_speech_to_text>venv\Scripts\python TheSoundOfAIOSR\stt\interface\server_app.py       
Traceback (most recent call last):
  File "TheSoundOfAIOSR\stt\interface\server_app.py", line 9, in <module>
    from TheSoundOfAIOSR.stt.interface.wsserver import SimpleServerInterface
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\interface\wsserver.py", line 4, in <module>
    from TheSoundOfAIOSR.stt.control.stt_sm import SpeechToTextSM
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\stt_sm.py", line 6, in <module>    
    from TheSoundOfAIOSR.stt.control.speech_to_text import SpeechToText
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\stt\control\speech_to_text.py", line 7, in <module>
    from TheSoundOfAIOSR.audiointerface.capture import MicrophoneCaptureFailed
  File "D:\Dev\SoundHacking\project_common\rg_speech_to_text\.\TheSoundOfAIOSR\audiointerface\capture.py", line 3, in <module>
    import pyaudio
ModuleNotFoundError: No module named 'pyaudio'
wassfila commented 3 years ago
D:\Dev\SoundHacking\project_common>venv/Scripts/python -m tts_websocketserver/src/tts_websocketserver/tts_server
'venv' is not recognized as an internal or external command,
operable program or batch file.

image

I tried all variants below, and don't think I can fix this without modifying the subrepo.

test1: D:\Dev\SoundHacking\test\project_common>venv/Scripts/python -m tts_websocketserver/src/tts_websocketserver/tts_server 'venv' is not recognized as an internal or external command, operable program or batch file.

test2: D:\Dev\SoundHacking\test\project_common\rg_text_to_sound>venv\Scripts\python -m tts_websocketserver/src/tts_websocketserver/tts_server D:\Dev\SoundHacking\test\project_common\rg_text_to_sound\venv\Scripts\python.exe: No module named tts_websocketserver/src/tts_websocketserver/tts_server

test3: D:\Dev\SoundHacking\test\project_common\rg_text_to_sound>venv\Scripts\python -m tts_websocketserver/src/tts_websocketserver/tts_server.py D:\Dev\SoundHacking\test\project_common\rg_text_to_sound\venv\Scripts\python.exe: Error while finding module specification for 'tts_websocketserver/src/tts_websocketserver/tts_server.py' (ModuleNotFoundError: No module named 'tts_websocketserver/src/tts_websocketserver/tts_server')

test4: D:\Dev\SoundHacking\test\project_common\rg_text_to_sound>venv\Scripts\python tts_websocketserver/src/tts_websocketserver/tts_server.py Traceback (most recent call last): File "tts_websocketserver/src/tts_websocketserver/tts_server.py", line 1, in <module> from tts_websocketserver.tts_pipeline import get_pipeline ModuleNotFoundError: No module named 'tts_websocketserver.tts_pipeline'

wassfila commented 3 years ago

fixed with #26