I have a python script which I called via
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 assume that it may have something to do with the new month starting, but I can't find a way to fix this (strange) problem.
Some further information:
The script runs on a raspberry pi. It uses the requests and the Adafruit_DHT library. I don't do any time-regarding operations in the python script by myself.
Could I kindly ask you to help me?
Many thanks in advance
Make on reinstall, direct repository latest version!
pip install git+https://github.com/kennethreitz/pipenv.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With