ImportError: No module named argparse
andreapernici opened this issue · comments
When I execute the test I get:
python visualmetrics.py --check
Traceback (most recent call last):
File "visualmetrics.py", line 971, in
main()
File "visualmetrics.py", line 853, in main
import argparse
ImportError: No module named argparse
What version of Python are you running? There's a good chance that it needs to be 2.7
Ok. I think it's the problem.
I'd like to pull SpeedIndex metrics inside Google Analytics. Do you think there is a way to that using UserTimings? How can I run the visualmetrics during the user visit in background?
I think you're looking for the RUM_SpeedIndex project instead which can run in a browser. This one is for running at a command line and takes a video of a page load as input, neither of which you have during a user visit.
Ok it works. Thanks Patrick.