Skip to content

Instantly share code, notes, and snippets.

@phill-tornroth
Created May 16, 2012 20:46
Show Gist options
  • Save phill-tornroth/2713818 to your computer and use it in GitHub Desktop.
Save phill-tornroth/2713818 to your computer and use it in GitHub Desktop.
retVal = datetime.strptime( dateTimeStr, "%Y%m%d" )
ImportError: Failed to import _strptime because the import lockis held by another thread.
@kaleissin
Copy link

If you're using wsgi and threads, import strptime in the wsgi-script or use python 3.3+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment