Hi Draden!
This issue was reported through our support portal and corrected. You should no longer need to comment those lines out.
Getting the following error when I try to upgrade q2-tecton
Select a number to toggle. 'a' for All. 'b' to set all to Blank. Leave empty to continue: 2
Which file(s) would you like to upgrade?
1) [ ] /Users/dradengaffney/Documents/AccountDashboard2/extension.py - v1.24.0
2) [x] /Users/dradengaffney/Documents/Fin/extension.py - v1.25.0
Select a number to toggle. 'a' for All. 'b' to set all to Blank. Leave empty to continue:
Traceback (most recent call last):
File "/Users/dradengaffney/Documents/.env/bin/q2", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/core/q2.py", line 36, in main
entrypoint_runner.execute()
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/core/cli/entrypoint_runner.py", line 185, in execute
LOOP.run_until_complete(handle_coro)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/entrypoints/upgrade.py", line 121, in handle
await self.handle_tecton_update()
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/entrypoints/upgrade.py", line 217, in handle_tecton_update
version_selection = await self._prompt_for_version_selection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/entrypoints/upgrade.py", line 185, in _prompt_for_version_selection
versions = await TectonVersion.get_all_versions(self.logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/models/tecton.py", line 75, in get_all_versions
return [TectonVersion(x) for x in versions.json() if 'sdkJS' in x]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/models/tecton.py", line 75, in <listcomp>
return [TectonVersion(x) for x in versions.json() if 'sdkJS' in x]
^^^^^^^^^^^^^^^^
File "/Users/dradengaffney/Documents/.env/lib/python3.11/site-packages/q2_sdk/models/tecton.py", line 66, in __init__
self.canary_url = versions_dict['canaryURL']
~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'canaryURL'
Hi Draden!
This issue was reported through our support portal and corrected. You should no longer need to comment those lines out.
I commented out these three lines in tecton.py and was able to upgrade. The pickContact bug is fixed, thanks! How important are these lines and what do I need to do to be able to upgrade tecton without having to comment them out?
— Draden Gaffney 3 years ago