Skip to content

Fix AttributeError in Wrapper.print_package_versions - #2167

Open
Sanjays2402 wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
Sanjays2402:fix/wrapper-print-package-versions-path
Open

Fix AttributeError in Wrapper.print_package_versions#2167
Sanjays2402 wants to merge 2 commits into
AcademySoftwareFoundation:mainfrom
Sanjays2402:fix/wrapper-print-package-versions-path

Conversation

@Sanjays2402

Copy link
Copy Markdown

Closes #2046

print_package_versions builds its rows from pkg.path, but Package has no path attribute — the package's location is exposed as uri (as rez-view, rez-help and rez-cp already use), so ++versions on any suite tool raised AttributeError: Package instance has no attribute 'path' instead of printing the table.

Added test_print_package_versions, which fails with the reported AttributeError before the change and passes after.

`rez-tool ++versions` crashed with:

    AttributeError: Package instance has no attribute 'path'

`print_package_versions` builds its output rows from `pkg.path`, but
`Package` has no `path` attribute; the filesystem location of a package
is exposed as `uri` (as used by rez-view, rez-help and rez-cp). Any use
of `++versions` on a suite tool therefore raised instead of printing the
version table.

Use `pkg.uri` and add a regression test that runs
`Wrapper.print_package_versions` against a saved suite.
@Sanjays2402
Sanjays2402 requested a review from a team as a code owner July 25, 2026 16:46
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 25, 2026

Copy link
Copy Markdown

CLA Not Signed

@maxnbk

maxnbk commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Hello, thanks for the PR submission. We'd like to see CLA's signed before reviewing if possible, because if the CLA is unable to be signed, we are unable to accept the contribution. Hope you understand.

@JeanChristopheMorinPerso JeanChristopheMorinPerso added the Blocked by CLA Waiting on CLA to be signed label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked by CLA Waiting on CLA to be signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_rez_fwd ++version causes exception with ++versions

3 participants