You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/m3hdi/Documents/Python3/numba_test.py", line 38, in <module>
scramble(myList)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/dispatcher.py", line 376, in _compile_for_args
error_rewrite(e, 'typing')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/dispatcher.py", line 343, in error_rewrite
reraise(type(e), e, None)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numba/six.py", line 658, in reraise
raise value.with_traceback(tb)
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name 'str': cannot determine Numba type of <class 'type'>
File "Documents/Python3/numba_puzzle.py", line 26:
def scramble(aList):
<source elided>
add = (FBD+JDE+AJF)
FCAKF= int(str(myList[5])+str(myList[2])+str(myList[0])+str(myList[8])+str(myList[5]))
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new
The text was updated successfully, but these errors were encountered:
RE formatting in GitHub issues, for future reference triple backticks are needed around a code block (with optional language syntax specified), for example: ```python <your code> ```. GitHub also has a basic guide to its markdown syntax available here.
stuartarchibald
changed the title
Numba gives a type error: numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Feature request: Support str(<int>) and more generally str.
Oct 15, 2019
I've updated the issue with markdown syntax and changed the title to reflect what the issue is. Essentially Numba does not yet have support for str() as a method on constructing strings from any type at all, labelling this as a feature request.
This is my python code:
====================================================================
This is the error:
The text was updated successfully, but these errors were encountered: