I have an app made with flask that is working fine on my machine. I'm trying to move it to a server in order to make in accessible to some people. I've installed all the packages and check that everything has the same version as on my local machine.
Everything seems fine but when I try to run the app, it throws this error:
Traceback (most recent call last):
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\src\app.py", line 12, in <module>
import job_manager
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\src\job_manager.py", line 5, in <module>
import manager
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\src\manager.py", line 6, in <module>
from audio.transcriber import recognize_from_file
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\src\audio\transcriber.py", line 4, in <module>
import azure.cognitiveservices.speech as speechsdk
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\trasc_env\Lib\site-packages\azure\cognitiveservices\speech\__init__.py", line 8, in <module>
from .speech import *
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\trasc_env\Lib\site-packages\azure\cognitiveservices\speech\speech.py", line 13, in <module>
from .interop import (
_CallbackContext, _Handle, LogLevel, _c_str, _call_bool_fn, _call_hr_fn, _sdk_lib,
_spx_handle, max_uint32, _call_string_function_and_free, _trace_message, _unpack_context)
File "C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\trasc_env\Lib\site-packages\azure\cognitiveservices\speech\interop.py", line 20, in <module>
_sdk_lib = load_library.LoadLibrary(lib_path)
File "C:\Users\Sparapan.F\AppData\Local\Programs\Python\Python313\Lib\ctypes\__init__.py", line 471, in LoadLibrary
return self._dlltype(name)
~~~~~~~~~~~~~^^^^^^
File "C:\Users\Sparapan.F\AppData\Local\Programs\Python\Python313\Lib\ctypes\__init__.py", line 390, in __init__
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\Users\Sparapan.F\Desktop\Scripts\Trascrittore\Tutto\trasc_env\Lib\site-packages\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll' (or
one of its dependencies). Try using the full path with constructor syntax.zen runpy>
The missing file is actually present in the specified folder so I don't know what to do. Already tried: --uninstall and re-install cognitive services
-check python and system versions (both 64 bit)
-restart the system