Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The command "pipenv run" worked fine yesterday. Why I get an AttributeError today?

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

like image 453
random321 Avatar asked Oct 29 '22 01:10

random321


1 Answers

Make on reinstall, direct repository latest version!

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

like image 189
Elinaldo Monteiro Avatar answered Nov 15 '22 19:11

Elinaldo Monteiro