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

Quality Of Life - Better error message for when Nim/Nimble is not installed or can't be found #71

Open
Pebaz opened this issue Jun 28, 2022 · 0 comments · May be fixed by #92
Open

Quality Of Life - Better error message for when Nim/Nimble is not installed or can't be found #71

Pebaz opened this issue Jun 28, 2022 · 0 comments · May be fixed by #92
Labels

Comments

@Pebaz
Copy link
Owner

Pebaz commented Jun 28, 2022

Add better error messages for the 2.0.0rc branch.

ImportError: Failed to import test module: faster_than_requests
Traceback (most recent call last):
  File "D:\soft\py39\lib\unittest\loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "D:\soft\py39\lib\unittest\loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "D:\code\me\faster-than-requests\faster_than_requests\__init__.py", line 7, in <module>
    from . faster_than_requests import *
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 945, in _find_spec
  File "D:\soft\py39\lib\site-packages\nimporter\nimporter.py", line 253, in <lambda>
    lambda fullname, path, _: nimport(fullname, path, library=False)
  File "D:\soft\py39\lib\site-packages\nimporter\nimporter.py", line 217, in nimport
    compile_extension_to_lib(ext)
  File "D:\soft\py39\lib\site-packages\nimporter\nimporter.py", line 62, in compile_extension_to_lib
    ensure_nimpy()
  File "D:\soft\py39\lib\site-packages\nimporter\lib.py", line 213, in ensure_nimpy
    code, *_ = run_process(shlex.split('nimble path nimpy'), show_output)
  File "D:\soft\py39\lib\site-packages\nimporter\lib.py", line 155, in run_process
    process = subprocess.run(
  File "D:\soft\py39\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "D:\soft\py39\lib\subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "D:\soft\py39\lib\subprocess.py", line 1438, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
@Pebaz Pebaz added the 2.0.0 label Jun 28, 2022
Pebaz added a commit that referenced this issue Jul 26, 2023
@Pebaz Pebaz mentioned this issue Jul 26, 2023
Pebaz added a commit that referenced this issue Jul 27, 2023
@Pebaz Pebaz linked a pull request Jul 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant