question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on loading the `datetime` module

See original GitHub issue

when loading datetime module:

Error: satus_command process exited unexpectedly (exit 1)

without loading, everything is fine.

i think date and time were separate modules in previous releases.

debug log:

command line parameter datetime.format=%x %X
trying to read datetime.format from configuration file

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
tobi-wan-kenobicommented, Oct 1, 2018

Glad to hear it! Nevertheless, I will investigate where this error comes from. It is strange, because the module actually has code for stuff like unset locales etc.

BTW: You can also use the module’s parameter “locale” (-p datetime.locale=en_US.UTF-8) to set the locale, without having to resort to .profile.

Thanks for the report!

1reaction
F13RC3commented, Oct 1, 2018

Sir, Above problem Solved by writing export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8

in the ~/.profile file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error even after datetime module while executing a ...
In your specific case, your datetime.py ran from datetime import * and attempted to import everything from itself, not from stdlib datetime ....
Read more >
Python: How to Fix datetime Import Error Quickly
I have imported my datetime.py from Linux. It gives an error "ImportError: cannot import name 'datetime' from partially initialized module'.
Read more >
Error in datetime module in python script for ni-fi
Solved: So I am trying to implement this script from datetime import datetime, timedelta, date flowfile = - 344996.
Read more >
Why does DLT modify datetime import definition
Solved: The ExecuteDataLoad tool, when run in python at least, appears to overwrite the datetime module imported by import arcpy.
Read more >
How To Convert a String to a datetime or time Object in Python
The Python datetime module includes the datetime.strptime() class ... When you don't provide the format argument, an error occurs if the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found