Support Center > Search Results > SecureKnowledge Details
Python commands in Maestro do not work when logged in as a new local user Technical Level
Symptoms
  • Python commands like sx_api_ports_dump.py do not work when the user is logged in as a new local user.
    Note: The command works correctly when the user is connected as an admin user.
  • The Python command fails with the following Python error:
    [Expert@orchestrator:0]# sx_api_ports_dump.py
    Traceback (most recent call last):
      File "/usr/local/bin/sx_api_ports_dump.py", line 31, in 
        from test_infra_common import *
      File "/usr/local/bin/test_infra_common.py", line 17, in 
        from python_sdk_api.sx_api import *
    ImportError: No module named python_sdk_api.sx_api
    

Cause
There are no Python environment variables in the /home/<user>/.bashrc file.


Solution
Note: To view this solution you need to Sign In .