Tell us what’s happening:
Describe your issue in detail here.
I have wrote my code locally however I am unable to run it in the link below as it keeps erroring when trying to install packages. I cannot see a way around this.
https://replit.com/@Chris1990/boilerplate-page-view-time-series-visualizer
I am not presented with the below option.
Select Use run command and click the Done button.
I would greatly appreciate it if you could advise.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
Challenge Information:
Data Analysis with Python Projects - Page View Time Series Visualizer
Try typing pip install pandas at the shell command prompt
Hello pkdvalis,
I have installed pandas however, I still receive errors.
Any other ideas?
Thank you in advance
Chris
Is it the same error or a different error as before?
Can you put it in here just o make sure we’re discussing the same thing.
Currently I’m seeing this error:
Traceback (most recent call last):
File "/home/runner/222765699/main.py", line 2, in <module>
import time_series_visualizer
File "/home/runner/222765699/time_series_visualizer.py", line 1, in <module>
import matplotlib.pyplot as plt
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/pyplot.py", line 66, in <module>
from matplotlib.figure import Figure, FigureBase, figaspect
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/figure.py", line 43, in <module>
from matplotlib import _blocking_input, backend_bases, _docstring, projections
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/projections/__init__.py", line 55, in <module>
from .. import axes, _docstring
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/axes/__init__.py", line 2, in <module>
from ._axes import *
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 11, in <module>
import matplotlib.category # Register category unit converter as side effect.
File "/home/runner/222765699/.pythonlibs/lib/python3.10/site-packages/matplotlib/category.py", line 14, in <module>
import dateutil.parser
ModuleNotFoundError: No module named 'dateutil.parser'
exit status 1
Not super clear but it seems to happen while importing matplotlib.
Try pip install matplotlib
Hello pkdvalis,
I have installed matplotlib and seaborn however they are both underlined in red suggesting they are not installed.
Any ideas?
Thanks again
Chris
Cannot replicate that, sorry. I wouldn’t worry about that until it creates an error.
I ran your code and imports of matplotlib and seaborn caused no error, so they are installed.
I got this error:
Traceback (most recent call last):
File "/home/runner/Chris1990-page-view-time-series-visualizer-1/main.py", line 6, in <module>
time_series_visualizer.draw_line_plot()
File "/home/runner/Chris1990-page-view-time-series-visualizer-1/time_series_visualizer.py", line 22, in draw_line_plot
fig.savefig('line_plot.png')
NameError: name 'fig' is not defined

There is a lot of preamble and errors when you open this “Packager” tab:
Try deleting the hidden files poetry.lock and pyproject.toml and replit.nix. That’s what I did and this fork seems to run better:https://replit.com/@pkdvalis/Chris1990-page-view-time-series-visualizer-FIXED You could fork that if you want to.