Attributeerror: 'module' Object Has No Attribute '_strptime' (threading Time.strptime Using Threading.thread In Python2.7)
I am wondering if anyone has ever faced this issue and has a solution to it. Traceback main error: AttributeError: 'module' object has no attribute '_strptime' When running a time.
Solution 1:
Solution is to do what https://stackoverflow.com/a/22476843/558397 has described
import _strptime
from datetime import datetime
# then, in threaded block
datetime.strptime(date, format)
Post a Comment for "Attributeerror: 'module' Object Has No Attribute '_strptime' (threading Time.strptime Using Threading.thread In Python2.7)"