bslatkin / dpxdt

Make continuous deployment safe by comparing before and after webpage screenshots for each release. Depicted shows when any visual, perceptual differences are found. This is the ultimate, automated end-to-end test.
https://dpxdt-test.appspot.com
Apache License 2.0
1.44k stars 124 forks source link

Running ./run_site_diff.sh throws 'AttributeError: verbose_workers' #169

Closed jaredgilmore closed 8 years ago

jaredgilmore commented 8 years ago

Trying to run the following to test out dpxdt: ./run_site_diff.sh \ --upload_build_id=1 \ --crawl_depth=1 \ http://www.google.com Throws the following error: dpxdt (master) $ ./run_site_diff.sh --upload_build_id=1 --crawl_depth=1 http://www.google.com Traceback (most recent call last): File "./dpxdt/tools/site_diff.py", line 369, in <module> main(sys.argv) File "./dpxdt/tools/site_diff.py", line 358, in main if FLAGS.verbose_workers: File "/usr/local/lib/python2.7/site-packages/gflags.py", line 1059, in __getattr__ raise AttributeError(name) AttributeError: verbose_workers

Am I missing a dependency or is something not installed correctly? I've been following the documentation and I am not sure what the issue may be. Running other scripts like run_site_diff.sh works just fine.

Any help is appreciated. Thank you.

jaredgilmore commented 8 years ago

Looks like I was missing symlinks for my Python install.

Running: brew link --overwrite python fixed this issue!

sypets commented 7 years ago

Or when using the installation instructions from Brett (https://github.com/bslatkin/dpxdt#depicted-server), make sure you are using the correct python environment (created by virtualenv):

which python (should be the local bin/python)

if not, probably call this in your current shell: source bin/activate