Closed ankit3600 closed 5 years ago
Have you gone through the instructions at https://github.com/Microsoft/ELL/blob/master/INSTALL-Windows.md and built everything, including the Python bindings? If not, please try that first.
On Tue, Jul 30, 2019 at 5:04 AM ankit3600 notifications@github.com wrote:
I am following the below tutorial:
(py36) E:\ELL\ELL\model>python run_classifier.py --featurizer compiled_featurizer/mfcc --classifier compiled_classifier/model --categories categories.txt --wav_file audio --sample_rate 16000 --auto_scale Traceback (most recent call last): File "run_classifier.py", line 118, in args.sample_rate, args.speaker, args.auto_scale, args.reset) File "run_classifier.py", line 59, in test_keyword_spotter predictor = classifier.AudioClassifier(classifier_model, categories, threshold, SMOOTHING) File "C:\ELL\ELL\model\classifier.py", line 60, in init self.model = ell.CompiledModel(model_path) File "C:\ELL\ELL\model\compiled_ell_model.py", line 29, in init self.module = importlib.import_module(model_name) File "C:\Users\anmish\AppData\Local\Continuum\miniconda3\envs\py36\lib\importlibinit.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "compiled_classifier\model.py", line 11, in import _model ImportError: DLL load failed: The specified module could not be found.
I am getting the error on windows machine. I tried with/without (both) the OpenBLASLibs bin path as suggested here https://github.com/microsoft/ELL/issues/148. It didn't worked. set PATH=%PATH%;C:\ELL\ELL\external\OpenBLASLibs.0.2.19.3\build\native\x64\haswell\bin
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/ELL/issues/231?email_source=notifications&email_token=AAJ6JJ3JRIRUM3BXOTWFUUDQCAU4RA5CNFSM4IH3SU7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCI7MWQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ6JJ225XN6DZW4VVZABUTQCAU4RANCNFSM4IH3SU7A .
Yes Python bindings are build already. Pls find the python build log here.
Although i am unable to run the python tests:
(py36) C:\ELL\ELL\build>ctest . --build-config release -R ell-python-interface-test Test project C:/ELL/ELL/build Start 45: ell-python-interface-test 1/1 Test #45: ell-python-interface-test ........***Failed 0.34 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.79 sec The following tests FAILED: 45 - ell-python-interface-test (Failed) Errors while running CTest
Please run the following command:
ctest . -VV --build-config release -R ell-python-interface-test
On Tue, Jul 30, 2019 at 1:06 PM ankit3600 notifications@github.com wrote:
Yes Python bindings are build already. Pls find the python build log here. https://drive.google.com/open?id=1SQ6AiJUJcljvo3NzHtej8SoYfNztnEu8
Although i am unable to run the python tests:
(py36) C:\ELL\ELL\build>ctest . --build-config release -R ell-python-interface-test Test project C:/ELL/ELL/build Start 45: ell-python-interface-test 1/1 Test #45 https://github.com/microsoft/ELL/issues/45: ell-python-interface-test ........***Failed 0.34 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.79 sec The following tests FAILED: 45 - ell-python-interface-test (Failed) Errors while running CTest
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/ELL/issues/231?email_source=notifications&email_token=AAJ6JJY4V4GZEVXZBMZ6KQTQCCNMZA5CNFSM4IH3SU7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3FFBKY#issuecomment-516575403, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ6JJ65XFR7XIDRK6TJI5TQCCNMZANCNFSM4IH3SU7A .
It is opening python3.exe. Ideally it should open python.exe so that anaconda's python.exe can be opened in the directory C:\Users\anmish\AppData\Local\Continuum\miniconda3\envs\py36\python.exe
(py36) C:\ELL\ELL\build>ctest . -VV --build-config release -R ell-python-interface-test UpdateCTestConfiguration from :C:/ELL/ELL/build/DartConfiguration.tcl UpdateCTestConfiguration from :C:/ELL/ELL/build/DartConfiguration.tcl Test project C:/ELL/ELL/build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 45 Start 45: ell-python-interface-test
45: Test command: C:\Users\anmish\AppData\Local\Microsoft\WindowsApps\python3.exe "test.py" 45: Test timeout computed to be: 10000000 45: Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 1/1 Test #45: ell-python-interface-test ........***Failed 0.38 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.84 sec
The following tests FAILED: 45 - ell-python-interface-test (Failed) Errors while running CTest
Even if I fixed the path error above (changed python3.exe to python.exe in E:\ELL\ELL\build\interfaces\python\test\CTestTestfile.cmake file), still I got more "dll load failed" errors.
(py36) C:\ELL\ELL\build>ctest . -VV --build-config release -R ell-python-interface-test UpdateCTestConfiguration from :C:/ELL/ELL/build/DartConfiguration.tcl UpdateCTestConfiguration from :C:/ELL/ELL/build/DartConfiguration.tcl Test project C:/ELL/ELL/build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 45 Start 45: ell-python-interface-test
45: Test command: C:\Users\anmish\AppData\Local\Continuum\miniconda3\envs\py36\python.exe "test.py"
45: Test timeout computed to be: 10000000
45: Traceback (most recent call last):
45: File "test.py", line 45, in
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 1.56 sec
The following tests FAILED: 45 - ell-python-interface-test (Failed) Errors while running CTest
The problem is solved by installing miniconda3-4.5.4-Windows-x86_64.exe from here https://repo.continuum.io/miniconda/
It was happening because latest miniconda uses python3.7 but ELL requires python 3.6. So downgrade the miniconda version
I am following the below tutorial: https://microsoft.github.io/ELL/tutorials/Getting-started-with-audio-keyword-spotting-on-the-Raspberry-Pi/
(py36) E:\ELL\ELL\model>python run_classifier.py --featurizer compiled_featurizer/mfcc --classifier compiled_classifier/model --categories categories.txt --wav_file audio --sample_rate 16000 --auto_scale Traceback (most recent call last): File "run_classifier.py", line 118, in args.sample_rate, args.speaker, args.auto_scale, args.reset) File "run_classifier.py", line 59, in test_keyword_spotter predictor = classifier.AudioClassifier(classifier_model, categories, threshold, SMOOTHING) File "C:\ELL\ELL\model\classifier.py", line 60, in init self.model = ell.CompiledModel(model_path) File "C:\ELL\ELL\model\compiled_ell_model.py", line 29, in init self.module = importlib.import_module(model_name) File "C:\Users\anmish\AppData\Local\Continuum\miniconda3\envs\py36\lib\importlibinit.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "compiled_classifier\model.py", line 11, in import _model ImportError: DLL load failed: The specified module could not be found.
I am getting the error on windows machine. I tried with/without (both) the OpenBLASLibs bin path as suggested here. It didn't worked. set PATH=%PATH%;C:\ELL\ELL\external\OpenBLASLibs.0.2.19.3\build\native\x64\haswell\bin