I have a python script that I called through
pipenv run python3 script.py
Yesterday it worked fine, but today I get the following error:
Traceback (most recent call last): File "/usr/local/bin/pipenv", line 7, in <module> from pipenv import cli File "/usr/local/lib/python2.7/dist-packages/pipenv/__init__.py", line 17,in <module> from .cli import cli File "/usr/local/lib/python2.7/dist-packages/pipenv/cli.py", line 89, in <module> if ((now.tm_mon == 10) and (now.tm_day == 30)) or ((now.tm_mon == 10) and (now.tm_day == 31)): AttributeError: 'time.struct_time' object has no attribute 'tm_day' Traceback (most recent call last): File "/usr/local/bin/pipenv", line 7, in <module> from pipenv import cli File "/usr/local/lib/python2.7/dist-packages/pipenv/__init__.py", line 17, in <module>
I guess it might have something to do with the start of a new month, but I can't find a way to fix this (strange) problem.
Additional Information:
The script runs on a raspberry pi. It uses queries and the Adafruit_DHT library. I do not do anything regarding operations in a python script myself.
May I ask you to help me?
Thank you very much in advance
source share