dmarx / psaw

Python Pushshift.io API Wrapper (for comment/submission search)
BSD 2-Clause "Simplified" License
361 stars 53 forks source link

No module named 'dateutil' when running CLI #96

Open f0lie opened 3 years ago

f0lie commented 3 years ago
$ 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.