-
Type: Task
-
Status: Done (View Workflow)
-
Priority: Normal
-
Resolution: Done
-
Component/s: tron_actorcore
-
Labels:None
-
Story Points:1
oneCmd.py fail on shell-ics vnc terminal.
pfs@shell-ics:~$ oneCmd.py iic status Traceback (most recent call last): File "/software/mhs/products/Linux64/tron_actorcore/2.2.5/bin/oneCmd.py", line 156, in <module> main() File "/software/mhs/products/Linux64/tron_actorcore/2.2.5/bin/oneCmd.py", line 152, in main printTimes=(not opts.noTimes)) File "/software/mhs/products/Linux64/tron_actorcore/2.2.5/bin/oneCmd.py", line 27, in __init__ self.identifyingCmd = self._identifyOurself() File "/software/mhs/products/Linux64/tron_actorcore/2.2.5/bin/oneCmd.py", line 53, in _identifyOurself user = os.getlogin().translate(tr) FileNotFoundError: [Errno 2] No such file or directory
as for :
https://bugs.python.org/issue584566
will use os.getenv('USER') if os.getlogin() fails.