mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-27 02:25:50 +03:00
[GH-ISSUE #279] Analytics stopped working #234
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fp231 on GitHub (Mar 2, 2021).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/279
Hi, i get the following error when trying to use analytics.py:
--
python3 analytics.py --account *accountname
Traceback (most recent call last):
File "analytics.py", line 216, in
main()
File "analytics.py", line 31, in main
plot_followers_growth(sessions_week, pdf, username, Period.LAST_WEEK)
File "analytics.py", line 126, in plot_followers_growth
pdf.savefig()
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_pdf.py", line 2507, in savefig
figure.savefig(self, format="pdf", **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/figure.py", line 2094, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/backend_bases.py", line 2075, in print_figure
**kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_pdf.py", line 2565, in print_pdf
self.figure.draw(renderer)
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "/usr/lib/python3/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/axes/_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/usr/lib/python3/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/matplotlib/axis.py", line 1185, in draw
ticks_to_draw = self._update_ticks(renderer)
File "/usr/lib/python3/dist-packages/matplotlib/axis.py", line 1023, in _update_ticks
tick_tups = list(self.iter_ticks()) # iter_ticks calls the locator
File "/usr/lib/python3/dist-packages/matplotlib/axis.py", line 971, in iter_ticks
for i, val in enumerate(majorLocs)]
File "/usr/lib/python3/dist-packages/matplotlib/axis.py", line 971, in
for i, val in enumerate(majorLocs)]
File "/usr/lib/python3/dist-packages/matplotlib/dates.py", line 610, in call
return num2date(x, self.tz).strftime(self.fmt)
File "/usr/lib/python3/dist-packages/matplotlib/dates.py", line 498, in num2date
return _from_ordinalf(x, tz)
File "/usr/lib/python3/dist-packages/matplotlib/dates.py", line 296, in _from_ordinalf
'expects datetime objects.'.format(ix))
ValueError: Cannot convert -1 to a date. This often happens if non-datetime values are passed to an axis that expects datetime objects.
Anyone having the same problem?
Best regards,
Fabian