dmarx/psaw

No module named 'dateutil' when running CLI

f0lie opened this issue · 0 comments

f0lie commented
$ psaw --help

Traceback (most recent call last):
  File "/home/user/Echo-Chamber-Analsis-Project/.venv/bin/psaw", line 5, in <module>
    from psaw.psaw import cli
  File "/home/user/Echo-Chamber-Analsis-Project/.venv/lib/python3.9/site-packages/psaw/psaw.py", line 3, in <module>
    from . import writers as wt
  File "/home/user/Echo-Chamber-Analsis-Project/.venv/lib/python3.9/site-packages/psaw/writers.py", line 4, in <module>
    from .utilities import slice_dict
  File "/home/user/Echo-Chamber-Analsis-Project/.venv/lib/python3.9/site-packages/psaw/utilities.py", line 2, in <module>
    import dateutil.parser as dp
ModuleNotFoundError: No module named 'dateutil'

This problem is solved easily by doing pip install python-dateutil. Seems like it's just a missing requirement.