IndexError: list index out of range

2021-03-16 Thread able
Traceback (most recent call last):


File "C:/main.py", line 2, in 
import nmath # Nim imports!

File "", line 991, in _find_and_load File "", line 971, in _find_and_load_unlocked File "", line 914, in _find_spec

File "C:python38libsite-packagesnimporter.py", line 1150, in find_spec
return Nimporter.import_nim_code(fullname, path, library=False)
File "C:python38libsite-packagesnimporter.py", line 828, in import_nim_code
NimCompiler.compile_nim_code(
File "python38libsite-packagesnimporter.py", line 588, in compile_nim_code
raise NimCompileException(errors[0])
File "python38libsite-packagesnimporter.py", line 48, in __init__
nim_module = nim_module.splitlines()[-1]

IndexError: list index out of range

How to solve this problem,Please


Issues regarding calling an import from python as a routine

2021-03-16 Thread able
Traceback (most recent call last):


File "C:/main.py", line 2, in 
import nmath # Nim imports!

File "", line 991, in _find_and_load File "", line 971, in _find_and_load_unlocked File "", line 914, in _find_spec

File "C:python38libsite-packagesnimporter.py", line 1150, in find_spec
return Nimporter.import_nim_code(fullname, path, library=False)
File "C:python38libsite-packagesnimporter.py", line 828, in import_nim_code
NimCompiler.compile_nim_code(
File "python38libsite-packagesnimporter.py", line 588, in compile_nim_code
raise NimCompileException(errors[0])
File "python38libsite-packagesnimporter.py", line 48, in __init__
nim_module = nim_module.splitlines()[-1]

IndexError: list index out of range

How to solve this problem,Please


Issues regarding calling an import from python as a routine

2021-03-16 Thread able
OK


IndexError: list index out of range

2021-03-17 Thread able
This is one of the simplest examples, just combined calls in python, and then 
an error occurs


IndexError: list index out of range

2021-03-17 Thread able
import nimpy

proc add(a: int, b: int): int {.exportpy.} =
return a + b


IndexError: list index out of range

2021-03-17 Thread able
install MINGW but not solved


IndexError: list index out of range

2021-03-17 Thread able
'Hint: vcvarsall.bat was not found'

I try to debug to get this information