amogorkon/justuse

Failed to suggest possible hash due to unspecified version & platform

Closed this issue · 0 comments

import use

use(
    "pyspark",
    version="3.1.2",
    modes=use.auto_install,
    hash_algo=use.Hash.sha256,
    },
)

returns

Traceback (most recent call last):
  File "g:\Python398\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "g:\Python398\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\micro\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
    cli.main()
  File "c:\Users\micro\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
    run()
  File "c:\Users\micro\.vscode\extensions\ms-python.python-2022.2.1924087327\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "g:\Python398\lib\runpy.py", line 268, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "g:\Python398\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "g:\Python398\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "f:\Dropbox (Privat)\code\justuse\src\.test7.py", line 3, in <module>
    use(
  File "f:\Dropbox (Privat)\code\justuse\src\use\main.py", line 130, in __call__
    return self.__implementation(*args, **kwargs)
  File "f:\Dropbox (Privat)\code\justuse\src\use\tools.py", line 46, in wrapper
    return dispatcher.dispatch(args[1].__class__)(*args, **kwargs)
  File "f:\Dropbox (Privat)\code\justuse\src\use\main.py", line 725, in _use_str
    return self._use_package(
  File "g:\Python398\lib\site-packages\icontract\_checkers.py", line 641, in wrapper
    result = func(*args, **kwargs)
    return _fail_or_default(result, default)
  File "f:\Dropbox (Privat)\code\justuse\src\use\pimp.py", line 986, in _fail_or_default
    raise exception
RuntimeWarning: We could not find any release for pyspark 3.1.2 that appears to be compatible with this platform. Check your browser for a list of hashes and select manually.