snipsco / snips-nlu

Snips Python library to extract meaning from text
https://snips-nlu.readthedocs.io
Apache License 2.0
3.9k stars 512 forks source link

Unable to install language resources #883

Open CoolNerd42 opened 4 years ago

CoolNerd42 commented 4 years ago

Hello, when I try to download a language resource on a machine running windows 10 with python 3.8.3 installed using either snips-nlu download es or python -m snips_nlu download es results in the following error:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python38-32\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files (x86)\Python38-32\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Program Files (x86)\Python38-32\lib\runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu\__init__.py", line 4, in <module>
    from snips_nlu.nlu_engine import SnipsNLUEngine
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu\nlu_engine\__init__.py", line 1, in <module>
    from snips_nlu.nlu_engine.nlu_engine import SnipsNLUEngine
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu\nlu_engine\nlu_engine.py", line 29, in <module>
    from snips_nlu.intent_parser import IntentParser
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu\intent_parser\__init__.py", line 3, in <module>
    from .lookup_intent_parser import LookupIntentParser
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu\intent_parser\lookup_intent_parser.py", line 11, in <module>
    from snips_nlu_utils import normalize, hash_str
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu_utils\__init__.py", line 1, in <module>
    from snips_nlu_utils.string import (
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu_utils\string.py", line 4, in <module>
    from snips_nlu_utils.utils import lib, string_pointer, check_ffi_error
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\snips_nlu_utils\utils.py", line 10, in <module>
    lib = cdll.LoadLibrary(str(dylib_path))
  File "C:\Program Files (x86)\Python38-32\lib\ctypes\__init__.py", line 451, in LoadLibrary
    return self._dlltype(name)
  File "C:\Program Files (x86)\Python38-32\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application