Does this error mean that this python library can not be used in Mojo?
I have this code:
from python import Pythondef search_images(term, max_images=30): let DDGS = Python.import_module("duckduckgo_search.DDGS") let ddgs = DDGS() print("Searching for " + term) let ddgs_images_gen = ddgs.images(term)def main(): search_images("cats")
from python import Pythondef search_images(term, max_images=30): let DDGS = Python.import_module("duckduckgo_search.DDGS") let ddgs = DDGS() print("Searching for " + term) let ddgs_images_gen = ddgs.images(term)def main(): search_images("cats")
and get this error:
Unhandled exception caught during execution: cannot import name 'etree' from 'lxml' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/lxml/__init__.py)mojo: error: execution exited with a non-zero result: 1
Unhandled exception caught during execution: cannot import name 'etree' from 'lxml' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/lxml/__init__.py)mojo: error: execution exited with a non-zero result: 1
This is after running
pip install duckduckgo_search
pip install duckduckgo_search
Does this mean that this library currently can not work in Mojo?