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 Unable to import q2_sdk.entrypoints.update_installed_form due to: cannot import name 'soft_unicode' from 'markupsafe'

When running q2 run I get the following error

Error Unable to import q2_sdk.entrypoints.update_installed_form due to: cannot import name 'soft_unicode' from 'markupsafe'

I have done the following to try and resolve it:

  1. pip install -r requirements.txt
  2. pip install --upgrade pip
  3. upgrade_to_python3.9
  4. /home//sdk/.env/bin/python3.9 -m pip install --upgrade pip
Posted 4 years ago
Votes Newest

Answers


Hello,

Quick answer, update to the latest SDK version and this issue will be fixed.

Why did this happen and why updating to the latest version is necessary?
The q2-sdk library has a few dependencies one of them being Jinja2. Jinja2 has a dependency to markupsafe that is not version locked. Thus when markupsafe updated with a backwards incompatible change this broke on new installs of the q2-sdk. In any version of the SDK newer than 2.120.0 the issue will be fixed.

This did not break any existing sdk extensions running in production because we install all the dependencies and sub dependencies on build.

-Trey

Posted 4 years ago
Trey Teter
124 × 2 Administrator
0

Awesome thank you that worked for me. The command I use to upgrade was q2 upgrade and selected the newest sdk version.

— Jesus Guzman   4 years ago
111 Views
1 Answer
4 years ago
4 years ago
Tags