Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. E:\Projects\Python\pylibnoise\vpy\Scripts\python.exe E:/Projects/Python/pylibnoise/scratch.py
  2. 0.000707710000000028
  3. Traceback (most recent call last):
  4. File "E:/Projects/Python/pylibnoise/scratch.py", line 63, in <module>
  5. time = timeit.timeit(profile2, 'gc.enable()', number=10)
  6. File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\timeit.py", line 232, in timeit
  7. return Timer(stmt, setup, timer, globals).timeit(number)
  8. File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\timeit.py", line 176, in timeit
  9. timing = self.inner(it, self.timer)
  10. File "<timeit-src>", line 6, in inner
  11. File "E:/Projects/Python/pylibnoise/scratch.py", line 56, in profile2
  12. newperlin.get_value(0.0199 + (1 * 0.0317), 0.0199 + (5 * 0.0317), 9 + 0.0199)
  13. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\dispatcher.py", line 350, in _compile_for_args
  14. error_rewrite(e, 'typing')
  15. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\dispatcher.py", line 317, in error_rewrite
  16. reraise(type(e), e, None)
  17. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\six.py", line 658, in reraise
  18. raise value.with_traceback(tb)
  19. numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
  20. Internal error at <numba.typeinfer.ArgConstraint object at 0x07F99FD0>:
  21. --%<----------------------------------------------------------------------------
  22. Traceback (most recent call last):
  23. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\errors.py", line 627, in new_error_context
  24. yield
  25. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 201, in __call__
  26. assert ty.is_precise()
  27. AssertionError
  28.  
  29. During handling of the above exception, another exception occurred:
  30.  
  31. Traceback (most recent call last):
  32. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 144, in propagate
  33. constraint(typeinfer)
  34. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 202, in __call__
  35. typeinfer.add_type(self.dst, ty, loc=self.loc)
  36. File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\contextlib.py", line 130, in __exit__
  37. self.gen.throw(type, value, traceback)
  38. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\errors.py", line 635, in new_error_context
  39. six.reraise(type(newerr), newerr, tb)
  40. File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\six.py", line 659, in reraise
  41. raise value
  42. numba.errors.InternalError:
  43. [1] During: typing of argument at E:\Projects\Python\pylibnoise\module\newperlinmodule.py (73)
  44. --%<----------------------------------------------------------------------------
  45.  
  46.  
  47. File "module\newperlinmodule.py", line 73:
  48. def get_value(self, x: float, y: float, z: float) -> float:
  49. <source elided>
  50.  
  51. xi = int(floor(x)) & 255
  52. ^
  53.  
  54. This error may have been caused by the following argument(s):
  55. - argument 0: cannot determine Numba type of <class 'module.newperlinmodule.NewPerlinModule'>
  56.  
  57. This is not usually a problem with Numba itself but instead often caused by
  58. the use of unsupported features or an issue in resolving types.
  59.  
  60. To see Python/NumPy features supported by the latest release of Numba visit:
  61. http://numba.pydata.org/numba-doc/dev/reference/pysupported.html
  62. and
  63. http://numba.pydata.org/numba-doc/dev/reference/numpysupported.html
  64.  
  65. For more information about typing errors and how to debug them visit:
  66. http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
  67.  
  68. If you think your code should work with Numba, please report the error message
  69. and traceback, along with a minimal reproducer at:
  70. https://github.com/numba/numba/issues/new
  71.  
  72.  
  73. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement