leogomezz4t / PyTextNow_API

Python texting API utilizing TextNow API
MIT License
67 stars 41 forks source link

Fail on dateutil #42

Closed Curtis2012 closed 2 years ago

Curtis2012 commented 2 years ago

I installed PyTextNow to use in an app running on a Raspberry Pi 3A+, Python 3. I first took an error that the dateutil library was not found. I installed dateutil and now I get the following error. Suggestions to fix?

%Run main.py Traceback (most recent call last): File "/home/pi/clearskyalarm/main.py", line 10, in import pytextnow as pytn File "/home/pi/.local/lib/python3.7/site-packages/pytextnow/init.py", line 2, in from pytextnow.TNAPI import * File "/home/pi/.local/lib/python3.7/site-packages/pytextnow/TNAPI.py", line 8, in from dateutil.relativedelta import relativedelta File "/home/pi/.local/lib/python3.7/site-packages/dateutil/relativedelta.py", line 118 raise TypeError, "relativedelta only diffs datetime/date" ^ SyntaxError: invalid syntax

leogomezz4t commented 2 years ago

Theres a good chance that your datetime is configured on your Raspberry Pi. Is it a new RPi and if so try using raspiconfig to setup your timezone

wunter8 commented 2 years ago

I think I ran into the same issue. pip install python-dateutil fixed it for me

Curtis2012 commented 2 years ago

Thanks!

⁣Enviado desde BlueMail ​

En 9 de octubre de 2021 17:33, en 17:33, Leo Wu-Gomez @.***> escribió:

Closed #42.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/leogomezz4t/PyTextNow_API/issues/42#event-5438628051