Can't import a module using 'mip', (VSCODE/Pico W/micropython), but works with pip and VSCODE Python #12064
Replies: 4 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
by untangle, do you mean this: stchris/untangle: Converts XML to Python objects? If so, this won't work with MicroPython: it relies on xml.sax, which isn't ported to MicroPython and would probably run out of memory on most ports |
Beta Was this translation helpful? Give feedback.
-
Thanks, all, for your responses! I think using an approach other than 'mip' and what's available in the micropython library might trip over a bunch of issues, such as missing dependencies, improper imports, etc. I am such a beginner that these would take me down a rabbit hole that I'd never be able to crawl out of..... The original issue was to find a way to parse an XML website page. This point was made by SCRUSS, the xml libraries might be too huge to really work on a PICO. Fortunately, we have some tools with regex (but not .findall! :-)), and the page is straightforward, that a site-specific parser could work... thanks again to all for your help, advice and guidance....much appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to import 'untangle' to use on a Pico W; am using VSCODE, Pico-W-Go. I can import 'untangle' using pip, and the module is found when running Python in VSCODE and import. However, when I use REPL, and 'mip' install 'untangle', it reports not found. Here's the result:
I tried looking at the links directly, but they either don't exist, or are forbidden. I'm pretty new at this, so appreciate the help and guidance!
best,
dave
Beta Was this translation helpful? Give feedback.
All reactions