> Source: [sk168073](https://support.checkpoint.com/results/sk/sk168073)

# sk168073 - sx_api_ports_dump.py command in Maestro does not work when logged in as a non-local user

| Property | Value |
|----------|-------|
| Solution ID | sk168073 |
| Date Created | 2020-07-22 |
| Last Modified | 2020-07-23 |
| Technical Level | Advanced |
| Products | Scalable Platforms |
| Versions | R82.20, R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * The *sx_api_ports_dump.py* command does not work when logged on as a non-local user.
* The command works correctly when connected as a local user.
* The *sx_api_ports_dump.py* command fails with the following Python error:

  \[Expert@tucmger0:0\]# sx_api_ports_dump.py

  <br />

  Traceback (most recent call last):

  <br />

  File "/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

  <br />

## Cause

Python environment variables do not exist in the */home/_nonlocl/.bashrc* file.

<br />

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
