Closed celeste-ramirez-srt closed 1 month ago
So, I'm on Windows, and I attempted to reproduce the issue with an incredibly minimal config, and failed to do so. (rez.packages imported fine, I'm on rez 3.2.0 with python-3.10 for reference).
Following the stack trace more carefully, it does feel or seem like the issue is more closely tied to the actual rez config in use, given that the error occurred seemingly during schema validation when creating the config singleton.
Could you share your (appropriately anonymized if necessary) config?
If anyone else comes through with a similar stacktrace, here is what fixed this for me. I backed up our existing rezconfig.py, then I copied the exact rezconfig.py file from source into the location in the REZ_CONFIG_FILE env var. I then changed these values using the backup. I can now import the rez.packages module just fine. Somehow, merging the two files with a text diff seemed to cause these issues.
In the effort to upgrade our version of Rez to the most recent, I'm encountering an issue where
rez-env
is working fine, but as soon as we try to importrez.packages
to be used in our custom GUI, python complains about an IMPORT_ERROR, an incomplete module and claims there are circular imports. Stacktrace below. I have upgraded from 2.112.0 to 2.114.1, then to 3.0.0 and 3.2.0, before going back down to 2.113.0 and 2.114.0. In all attempts except for 2.113.0, I got the same behavior.Environment
To Reproduce In Rez 2.114.0:
import rez
and see that Rez imports fineimport rez.packages
and see the traceback.Expected behavior I expected the import to succeed so the module could be used in our GUI.
Actual behavior The module fails to import due to what Python says is a circular import. I am not sure how to verify that. Given that it fails every time on the reading of config values, I was very careful when updating the rezconfig file to the new version, but it is possible that I've missed something there. I am happy to provide my rezconfig if that will be useful.
Regression My last functional version of Rez is 2.113.0.