Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

danspeechdemo.run_server() returns error #5

Open
Nicolai9852 opened this issue Jan 6, 2025 · 0 comments
Open

danspeechdemo.run_server() returns error #5

Nicolai9852 opened this issue Jan 6, 2025 · 0 comments

Comments

@Nicolai9852
Copy link

Nicolai9852 commented Jan 6, 2025

After performing all the installtion, the danspeechdemo.run_server() doesn't work.
I'm running on Windows 11 - I don't have ctcdecode installed, since it's not possible according to issues on that repo.

Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run
    self.check(display_num_errors=True)
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\base.py", line 486, in check
    all_issues = checks.run_checks(
                 ^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py", line 136, in check_custom_error_handlers
    handler = resolver.resolve_error_handler(status_code)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py", line 732, in resolve_error_handler
    callback = getattr(self.urlconf_module, "handler%s" % view_type, None)
                       ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py", line 47, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
                                         ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py", line 711, in urlconf_module
    return import_module(self.urlconf_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\Nicolai\danspeechdemo\danspeechdemo\urls.py", line 21, in <module>
    path('', include('demo.urls')),
             ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\conf.py", line 39, in include
    urlconf_module = import_module(urlconf_module)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\Nicolai\danspeechdemo\danspeechdemo\demo\urls.py", line 1, in <module>
    from . import views
  File "C:\Users\Nicolai\danspeechdemo\danspeechdemo\demo\views.py", line 11, in <module>
    from danspeech import Recognizer
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\danspeech\__init__.py", line 5, in <module>
    from .Recognizer import Recognizer
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\danspeech\Recognizer.py", line 8, in <module>
    from danspeech.DanSpeechRecognizer import DanSpeechRecognizer
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\danspeech\DanSpeechRecognizer.py", line 7, in <module>
    from danspeech.audio.parsers import SpectrogramAudioParser, InferenceSpectrogramAudioParser
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\danspeech\audio\__init__.py", line 2, in <module>
    from .parsers import SpectrogramAudioParser, InferenceSpectrogramAudioParser
  File "C:\Users\Nicolai\AppData\Local\Programs\Python\Python311\Lib\site-packages\danspeech\audio\parsers.py", line 9, in <module>
    windows = {'hamming': scipy.signal.hamming, 'hann': scipy.signal.hann, 'blackman': scipy.signal.blackman,
                          ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'scipy.signal' has no attribute 'hamming'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant