pysnooper/tracer.py", line 75, in get_source_from_frame raise NotImplementedError
See original GitHub issueWhen I ran a simple script:
import pysnooper
import numpy as np
@pysnooper.snoop()
def multi_matmul(times):
x = np.random.rand(2,2)
w = np.random.rand(2,2)
for i in range(times):
x = np.matmul(x,w)
return x
multi_matmul(3)
The error happened:
Starting var:.. times = 3
Traceback (most recent call last):
File "<tmp 1>", line 14, in <module>
multi_matmul(3)
File "</usr/local/lib/python3.6/dist-packages/decorator.py:decorator-gen-121>", line 2, in multi_matmul
File "/usr/local/lib/python3.6/dist-packages/pysnooper/pysnooper.py", line 72, in decorate
return function(*args, **kwargs)
File "<tmp 1>", line 4, in multi_matmul
@pysnooper.snoop()
File "/usr/local/lib/python3.6/dist-packages/pysnooper/tracer.py", line 182, in trace
source_line = get_source_from_frame(frame)[frame.f_lineno - 1]
File "/usr/local/lib/python3.6/dist-packages/pysnooper/tracer.py", line 75, in get_source_from_frame
raise NotImplementedError
NotImplementedError
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:21 (10 by maintainers)
Top Results From Across the Web
When to use 'raise NotImplementedError'? - Stack Overflow
As the documentation states,. In user defined base classes, abstract methods should raise this exception when they require derived classes ...
Read more >NotImplementedError() raised while trying apply #3555 - GitHub
which I want to merge using dask. So, I am reading each file in a for-loop --> storing them as dask dataframe -->...
Read more >Python Exception Handling – NotImplementedError
Struggling with a NotImplementedError in your code? In this blog, we'll go over what it is, how to raise it, and how to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, I think I get it. Are you using PySnooper on code that you’re typing in the interactive shell?
I think you forgot to upgrade PySnooper.
On Thu, Apr 25, 2019, 04:31 周文青 notifications@github.com wrote: