Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
q2 upgrade q2-tecton error

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'
0

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?

#self.canary_url = versions_dict['canaryURL']
#self.docs_url = versions_dict['docsURL']
 #self.shell_url = versions_dict['shellURL']
— Draden Gaffney   3 years ago
Votes Newest

Answers


Hi Draden!

This issue was reported through our support portal and corrected. You should no longer need to comment those lines out.

Posted 3 years ago