src-d / hercules

Gaining advanced insights from Git repository history.
Other
2.06k stars 146 forks source link

Error while render devs-effort plot with devs stats as input #396

Open syberside opened 1 month ago

syberside commented 1 month ago

Hi!

I'm trying to draw devs-effor graph using dockerized version of tool.

When I run following command: docker run --rm -v <path_to_repo>:/repo srcd/hercules hercules --devs /repo | docker run --rm -i -v ./:/io srcd/hercules labours -m devs-efforts -o /io/devs.png I receive error

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Reading the input... done
Running: devs-efforts
matplotlib: backend is agg
Traceback (most recent call last):
  File "/usr/local/bin/labours", line 33, in <module>
    sys.exit(load_entry_point('labours==10.7.2', 'console_scripts', 'labours')())
  File "/usr/local/lib/python3.6/dist-packages/labours/cli.py", line 449, in main
    modes[mode]()
  File "/usr/local/lib/python3.6/dist-packages/labours/cli.py", line 363, in devs_efforts
    max_people=args.max_people,
  File "/usr/local/lib/python3.6/dist-packages/labours/modes/devs.py", line 305, in show_devs_efforts
    for tick in pyplot.gca().yaxis.iter_ticks():
AttributeError: 'YAxis' object has no attribute 'iter_ticks'

I got exactly the same behavior for all repositories that I've tried.

Other commands (e.g. replace devs-effort with old-vs-new) work fine.