Skip to content

Python test script fails to import "Tso" class from zowe SDK #416

Description

@pjfarleyiii

Describe the bug

Test python script attempts to import zowe sdk class Tso but fails with error "ModuleNotFoundError: No module named 'zowe.zowe_zos_tso_for_zowe_sdk'"

[Edit:] The same not-found error occurs for both zowe.zowe_zos_files_for_zowe_sdk and zowe.zowe_zos_jobs_for_zowe_sdk regardless of whether "from . . . import classname" or "import . . . as MyName" format of import statements are used.

Expected and actual results

Tso class should be successfully imported

Console messages from test script execution follow, test script is attached below.

(.venv) Q:\zowe-test>python zowetest.py
Traceback (most recent call last):
File "Q:\zowe-test\zowetest.py", line 5, in
from zowe.zowe_zos_tso_for_zowe_sdk import Tso
ModuleNotFoundError: No module named 'zowe.zowe_zos_tso_for_zowe_sdk'

Current pip list output:

(.venv) Q:\zowe-test>pip list
Package Version


attrs 26.1.0
certifi 2026.7.22
charset-normalizer 3.5.1
deepmerge 1.1.1
idna 3.19
json5 0.12.1
jsonschema 4.17.3
pip 26.2.1
pyrsistent 0.20.0
PyYAML 6.0.3
requests 2.33.1
urllib3 2.7.0
zowe_core_for_zowe_sdk 1.0.0.dev26
zowe-python-sdk-bundle 1.0.0.dev26
zowe_workflows_for_zowe_sdk 1.0.0.dev26
zowe_zos_console_for_zowe_sdk 1.0.0.dev26
zowe_zos_files_for_zowe_sdk 1.0.0.dev26
zowe_zos_jobs_for_zowe_sdk 1.0.0.dev26
zowe_zos_tso_for_zowe_sdk 1.0.0.dev26
zowe_zosmf_for_zowe_sdk 1.0.0.dev26

Describe your environment

Python 3.13.15
pip 26.2.1 from Q:\zowe-test.venv\Lib\site-packages\pip (python 3.13)
PATH includes "C:\Program Files\Python313\Scripts;C:\Program Files\Python313"
No other PYTHON environment variables
Operating system:
Edition Windows 10 Pro
Version 22H2
Installed on ‎7/‎25/‎2020
OS Build 19045.7663
Command shell:
Windows cmd shell in Windows Terminal

Test Script zowetest.py is attached.

zowetest.py

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions