Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.6.0 regression - No module named 'src' error #2

Open
msradam opened this issue Sep 13, 2023 · 2 comments
Open

v0.6.0 regression - No module named 'src' error #2

msradam opened this issue Sep 13, 2023 · 2 comments

Comments

@msradam
Copy link

msradam commented Sep 13, 2023

I installed zos-utilities 0.6.0 and imported the CPC and LPAR structures in my code as follows:

from zos_utilities.cpc import CPC
from zos_utilities.lpar import LPAR

This code works fine in v0.5.3.

In v0.6.0, it returns the following, and my script halts.

Traceback (most recent call last):
  File "/Users/amrahman/lparlist/lparlist.py", line 14, in <module>
    from zos_utilities.lpar import LPAR
  File "/Users/amrahman/lparlist/env/lib/python3.9/site-packages/zos_utilities/lpar.py", line 9, in <module>
    from .data_set import DataSet
  File "/Users/amrahman/lparlist/env/lib/python3.9/site-packages/zos_utilities/data_set.py", line 5, in <module>
    from src.zos_utilities.dasd_volume import DasdVolume
ModuleNotFoundError: No module named 'src'

Running on Python 3.9.

❯ python3                                                                                                                                                         zos-utilities -> src-bugfix
Python 3.9.6 (default, May  7 2023, 23:32:44) 
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
@Tam-Lin
Copy link
Owner

Tam-Lin commented Sep 13, 2023

Let me see if I can figure out what changed; I'm not seeing that in any of my tests.

Tam-Lin added a commit that referenced this issue Sep 13, 2023
commit c2a02690f218ac31689a270e29db068984b25f5f
Author: Kevin McKenzie <kmckenzi@us.ibm.com>
Date:   Wed Sep 13 10:27:10 2023 -0400

    Resolves issue #2.

    <sigh>Would pass tests, but would break in real life.

    Signed-off-by: Kevin McKenzie <kmckenzi@us.ibm.com>

Signed-off-by: Kevin McKenzie <kmckenzi@us.ibm.com>
Tam-Lin added a commit that referenced this issue Sep 13, 2023
commit c2a02690f218ac31689a270e29db068984b25f5f
Author: Kevin McKenzie <kmckenzi@us.ibm.com>
Date:   Wed Sep 13 10:27:10 2023 -0400

    Resolves issue #2.

    <sigh>Would pass tests, but would break in real life.

    Signed-off-by: Kevin McKenzie <kmckenzi@us.ibm.com>

Signed-off-by: Kevin McKenzie <kmckenzi@us.ibm.com>
@Tam-Lin
Copy link
Owner

Tam-Lin commented Sep 13, 2023

Should be fixed in 0.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants