Does this error mean that this python library can not be used in Mojo?
I have this code:
and get this error:
This is after running
pip install duckduckgo_search
Does this mean that this library currently can not work in Mojo?9 Replies
Does this work when you run in python?
This code is already Mojo specific, but the python equivalent (as best I can tell) does work:
https://colab.research.google.com/drive/1KdgI3Q-BFjNckUJYca_YUXMKwmznbyDr?usp=sharing
Can you perform in your Python env:
?
Did you mean in the mojo environment? This all works in Python and yes, in python if you call
from lxml import etree
it works fineAhh, I see what's the problem I think. Via
Python.import_module()
you can only import modules, no variables within it. Please retry with removing .DDGS
partUnfortunately this produces the same error:
Error:
Congrats @irrationaljared, you just advanced to level 2!
Strange. I have no clue, sorry
Is it expected that this channel might provide more support or should I inquire elsewhere?