Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/warnings.py", line 110, in _showwarnmsg

msg.file, msg.line)


 "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/pdf.py", line 1069, in _showwarning

file.write(formatWarning(message, category, filename, lineno, line))


 "/Users/macone/Library/Python/3.7/lib/python/site-packages/PyPDF2/utils.py", line 69, in formatWarning

file = filename.replace("/", "\\").rsplit("\\", 1)[1] # find the file name
IndexError: list index out of range

Traceback (most recent call last):

 "/usr/local/bin/myfitnesspal", line 9, in <module>
load_entry_point('myfitnesspal==1.8.3', 'console_scripts', 'myfitnesspal')()

 "/usr/local/lib/python2.7/dist-packages/myfitnesspal/cmdline.py", line 46, in main
COMMANDS[args.command[0]]['function'](args, *extra)

 "/usr/local/lib/python2.7/dist-packages/myfitnesspal/commands.py", line 117, in day
day = client.get_date(args.date)

 "/usr/local/lib/python2.7/dist-packages/myfitnesspal/client.py", line 342, in get_date
water = self._get_water(document)

 "/usr/local/lib/python2.7/dist-packages/myfitnesspal/client.py", line 466, in _get_water
water_header = document.xpath("//div[@class='water-counter']/p/a")[0]
IndexError: list index out of range 