Closed j7smith closed 2 months ago
Can you check what version of ruamel.yaml has been installed by your deps manager? We deliberately pin <=0.18 as they deprecated these safe loading methods in 0.18+ and last I checked 0.17.x was working well.
Although I have tested with Python3.9, it may be that various libraries will force us to move forward the minimum versions once again. You may not be surprised to find that many users still use Py2 😅
Found the problem. At some point I allowed ruamel.yaml to install <=0.18, rather than <0.18, and they finally deprecated the calls. I will test a fix today.
Apologies for the delayed response. My schedule is a bit crazy so I'm playing catchup. In answer to your raumel.yaml
question, I am using version 0.18.6. Shall I rollback the version of raulmel.yaml
or pull #346?
@j7smith you can either pull that branch, or probably easier to just run pip install --upgrade "ruamel.yaml<0.18"
in the virtualenv you are running NiPy in.
We are in the process of migrating/upgrading from Python3.7 to Python3.9. When executing the following command: nipyapi.versioning.import_flow_version
I get the error: "safe_load()" has been removed, use...
Here is the code block:
Here is the trace:
When executing the code using Python3.7 there are no issues but once I try to execute the code under Python3.9 we started seeing the above issue.
This issue is pretty critical since Python3.7 is tagged to be EOL and our organization has made the decision to remove previous version from the system. Python3.9 will be designated the minimum codebase for all NiFi related projects moving forward.
Hope this helps. Please let me know if you need additional info