The pipenv run command worked fine yesterday. Why am I getting an AttributeError today?

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

+5
source share
2 answers

To reinstall the latest version of the repository!

pip install git+https://github.com/kennethreitz/pipenv.git

+1
source

Pretty sure this is a bug in pipenv. I posted a question here

+1
source

Source: https://habr.com/ru/post/1272250/


All Articles