rkern / line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->
https://github.com/pyutils/line_profiler
Other
3.6k stars 254 forks source link

PermissionError #106

Closed leonlulu closed 5 years ago

leonlulu commented 6 years ago

I can run the kernprof.py in the terminal. But now I'm using line_profiler package in sumlime-text-3 and when I run the line_profiler on my code I got this permission error in the console:

Running kernprof on /home/liyx/region_class/python_scripts/segmentation.py Traceback (most recent call last): File "/opt/sublime_text/sublimeplugin.py", line 818, in run return self.run(edit) File "LineProfiler in /home/liyx/.config/sublime-text-3/Installed Packages/LineProfiler.sublime-package", line 83, in run File "./python3.3/subprocess.py", line 819, in init File "./python3.3/subprocess.py", line 1448, in _execute_child PermissionError: [Errno 13] Permission denied

I already tried to open sublime in sudo mode and run 'chmod' on the '/opt/sublime_text/python3.3.zip' file, but didn't work. What should I do about it?

Many thanks.

caethan commented 5 years ago

Sorry, can't support other products trying to use line profiler