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
Error In "Add To Nav" Code?

Was getting this error:

Traceback (most recent call last):
  File "/home/xxx/sdk/.env/bin/q2", line 8, in <module>
    sys.exit(main())
  File "/home/xxx/sdk/.env/lib/python3.9/site-packages/q2_sdk/core/q2.py", line 34, in main
    entrypoint_runner.execute()
  File "/home/xxx/sdk/.env/lib/python3.9/site-packages/q2_sdk/core/cli/entrypoint_runner.py", line 175, in execute
    LOOP.run_until_complete(handle_coro)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/xxx/sdk/.env/lib/python3.9/site-packages/q2_sdk/entrypoints/add_to_nav.py", line 252, in handle
    installed_forms,installed_vendors = asyncio.gather(installed_forms,installed_vendors)

Seems to be resolved if I manually update the package

From: installed_forms,installed_vendors = asyncio.gather(installed_forms,installed_vendors)

To: installed_forms,installed_vendors = await asyncio.gather(installed_forms,installed_vendors)

Votes Newest

Answers


This was due to a bug introduced in 2.94.0 and was patched in 2.94.2

Posted 5 years ago
Robert Hotz
10 × 2 Administrator
112 Views
1 Answer
5 years ago
5 years ago
Tags