Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- E:\Projects\Python\pylibnoise\vpy\Scripts\python.exe E:/Projects/Python/pylibnoise/scratch.py
- 0.000707710000000028
- Traceback (most recent call last):
- File "E:/Projects/Python/pylibnoise/scratch.py", line 63, in <module>
- time = timeit.timeit(profile2, 'gc.enable()', number=10)
- File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\timeit.py", line 232, in timeit
- return Timer(stmt, setup, timer, globals).timeit(number)
- File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\timeit.py", line 176, in timeit
- timing = self.inner(it, self.timer)
- File "<timeit-src>", line 6, in inner
- File "E:/Projects/Python/pylibnoise/scratch.py", line 56, in profile2
- newperlin.get_value(0.0199 + (1 * 0.0317), 0.0199 + (5 * 0.0317), 9 + 0.0199)
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\dispatcher.py", line 350, in _compile_for_args
- error_rewrite(e, 'typing')
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\dispatcher.py", line 317, in error_rewrite
- reraise(type(e), e, None)
- File "E:\Projects\Python\pylibnoise\vpy\lib\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)
- Internal error at <numba.typeinfer.ArgConstraint object at 0x07F99FD0>:
- --%<----------------------------------------------------------------------------
- Traceback (most recent call last):
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\errors.py", line 627, in new_error_context
- yield
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 201, in __call__
- assert ty.is_precise()
- AssertionError
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 144, in propagate
- constraint(typeinfer)
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\typeinfer.py", line 202, in __call__
- typeinfer.add_type(self.dst, ty, loc=self.loc)
- File "C:\Users\Jesse\AppData\Local\Programs\Python\Python37-32\lib\contextlib.py", line 130, in __exit__
- self.gen.throw(type, value, traceback)
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\errors.py", line 635, in new_error_context
- six.reraise(type(newerr), newerr, tb)
- File "E:\Projects\Python\pylibnoise\vpy\lib\site-packages\numba\six.py", line 659, in reraise
- raise value
- numba.errors.InternalError:
- [1] During: typing of argument at E:\Projects\Python\pylibnoise\module\newperlinmodule.py (73)
- --%<----------------------------------------------------------------------------
- File "module\newperlinmodule.py", line 73:
- def get_value(self, x: float, y: float, z: float) -> float:
- <source elided>
- xi = int(floor(x)) & 255
- ^
- This error may have been caused by the following argument(s):
- - argument 0: cannot determine Numba type of <class 'module.newperlinmodule.NewPerlinModule'>
- 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/dev/reference/pysupported.html
- and
- http://numba.pydata.org/numba-doc/dev/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
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement