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
{{ message }}
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
Some of the report is displayed and then this staacktrace below. I inserted a pdb.set_trace() in kernprof.py and the filename is correct and the file handle also.
Traceback (most recent call last):
File "/usr/bin/kernprof", line 11, in
load_entry_point('line-profiler==2.1.1', 'console_scripts', 'kernprof')()
File "/usr/local/google/home/rwh/.local/lib/python3.7/site-packages/kernprof.py", line 226, in main
prof.runctx('execfile_(%r, globals())' % (script_file,), ns, ns)
File "/usr/local/google/home/rwh/python/src/pyenv/versions/3.7.0/lib/python3.7/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "", line 1, in
File "/usr/local/google/home/rwh/.local/lib/python3.7/site-packages/kernprof.py", line 36, in execfile
with open(filename, 'rb') as f:
ValueError: source code string cannot contain null bytes
Cmd Line: kernprof -v ./simply.py.lprof
Some of the report is displayed and then this staacktrace below. I inserted a pdb.set_trace() in kernprof.py and the filename is correct and the file handle also.
Traceback (most recent call last):
File "/usr/bin/kernprof", line 11, in
load_entry_point('line-profiler==2.1.1', 'console_scripts', 'kernprof')()
File "/usr/local/google/home/rwh/.local/lib/python3.7/site-packages/kernprof.py", line 226, in main
prof.runctx('execfile_(%r, globals())' % (script_file,), ns, ns)
File "/usr/local/google/home/rwh/python/src/pyenv/versions/3.7.0/lib/python3.7/cProfile.py", line 100, in runctx
exec(cmd, globals, locals)
File "", line 1, in
File "/usr/local/google/home/rwh/.local/lib/python3.7/site-packages/kernprof.py", line 36, in execfile
with open(filename, 'rb') as f:
ValueError: source code string cannot contain null bytes
try:
execfile
except NameError:
# Python 3.x doesn't have 'execfile' builtin
import builtins
exec_ = getattr(builtins, "exec")
The text was updated successfully, but these errors were encountered: