Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

RuntimeError: Cannot enable trace_event; ensure py_utils is in PYTHONPATH #4641

Open
fntc opened this issue Jul 31, 2019 · 0 comments
Open

Comments

@fntc
Copy link

fntc commented Jul 31, 2019

I tried to use systrace with my android device. systrace -l works fine, but as soon as i try to collect data I get this error (even after adding catapult\common\py_utils\py_utils to PYTHONPATH)

Traceback (most recent call last): File "C:\DEV\catapult\systrace\bin\systrace", line 17, in <module> sys.exit(run_systrace.main()) File "C:\DEV\catapult\systrace\systrace\run_systrace.py", line 204, in main main_impl(sys.argv) File "C:\DEV\catapult\systrace\systrace\run_systrace.py", line 184, in main_impl controller.StartTracing() File "C:\DEV\catapult\systrace\systrace\systrace_runner.py", line 45, in StartTracing self._tracing_controller.StartTracing() File "C:\DEV\catapult\systrace\systrace\tracing_controller.py", line 146, in StartTracing timeout=self._controller_config.timeout): File "C:\DEV\catapult\common\py_utils\py_utils\__init__.py", line 103, in RunWithTimeout return timeout_retry.Run(func, timeout, 0, args=args) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 158, in Run error_log_func=error_log_func) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 198, in JoinAll self._JoinAll(watcher, timeout) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 170, in _JoinAll thread.ReraiseIfException() File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 93, in run self._ret = self._func(*self._args, **self._kwargs) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 151, in <lambda> child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, **kwargs), File "C:\DEV\catapult\systrace\systrace\tracing_controller.py", line 53, in StartAgentTracing raise RuntimeError, ('Cannot enable trace_event;' RuntimeError: Cannot enable trace_event; ensure py_utils is in PYTHONPATHTraceback (most recent call last): File "C:\DEV\catapult\systrace\bin\systrace", line 17, in <module> sys.exit(run_systrace.main()) File "C:\DEV\catapult\systrace\systrace\run_systrace.py", line 204, in main main_impl(sys.argv) File "C:\DEV\catapult\systrace\systrace\run_systrace.py", line 184, in main_impl controller.StartTracing() File "C:\DEV\catapult\systrace\systrace\systrace_runner.py", line 45, in StartTracing self._tracing_controller.StartTracing() File "C:\DEV\catapult\systrace\systrace\tracing_controller.py", line 146, in StartTracing timeout=self._controller_config.timeout): File "C:\DEV\catapult\common\py_utils\py_utils\__init__.py", line 103, in RunWithTimeout return timeout_retry.Run(func, timeout, 0, args=args) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 158, in Run error_log_func=error_log_func) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 198, in JoinAll self._JoinAll(watcher, timeout) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 170, in _JoinAll thread.ReraiseIfException() File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\reraiser_thread.py", line 93, in run self._ret = self._func(*self._args, **self._kwargs) File "C:\DEV\catapult\systrace\systrace\..\..\devil\devil\utils\timeout_retry.py", line 151, in <lambda> child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, **kwargs), File "C:\DEV\catapult\systrace\systrace\tracing_controller.py", line 53, in StartAgentTracing raise RuntimeError, ('Cannot enable trace_event;' RuntimeError: Cannot enable trace_event; ensure py_utils is in PYTHONPATH

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant