You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling rez.package_search.get_plugins with a package that has has_plugins set to True will error out if there is a folder in a package repo without a valid package in it. Simplest way to replicate this is just make an empty folder in ~/packages and try to run get_plugins:
>>> package_search.get_plugins("nuke")
Searching [############# ] 46/106Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/rez/rez_package_cache/rez/2.112.0/c2ee/a/rez/package_search.py", line 154, in get_plugins
if not plugin_pkg.plugin_for:
AttributeError: 'NoneType' object has no attribute 'plugin_for'
I actually came across this while in the middle of building a new package that took some time, so it had created the package folder with a version and .building file but there was not a valid package in there yet and started to get reports of our launcher breaking.
Fix may be as simple as adding a check for None here:
Calling
rez.package_search.get_plugins
with a package that hashas_plugins
set to True will error out if there is a folder in a package repo without a valid package in it. Simplest way to replicate this is just make an empty folder in ~/packages and try to run get_plugins:I actually came across this while in the middle of building a new package that took some time, so it had created the package folder with a version and
.building
file but there was not a valid package in there yet and started to get reports of our launcher breaking.Fix may be as simple as adding a check for None here:
rez/src/rez/package_search.py
Lines 154 to 156 in 7e8617d
The text was updated successfully, but these errors were encountered: