# ImportError: no module named ????

**URL:** <https://forums.digi.com/t/importerror-no-module-named/22361>\
**Category:** Python\
**Tags:** uart, micropython, xbee3\
**Created:** [April 20, 2021, 12:41pm UTC](https://forums.digi.com/t/importerror-no-module-named/22361 "2021-04-20T12:41:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamad-Badr](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mohamad-Badr](https://forums.digi.com/u/Mohamad-Badr)\
**Post date:** [April 20, 2021, 12:41pm UTC](https://forums.digi.com/t/importerror-no-module-named/22361/1 "2021-04-20T12:41:51Z")

</div>

Hello, i am trying to test the UART connection in the xbee grove board, but when I am trying to import the UART LIBRARY i have this error “ImportError: cannot import name UART”.  
I have this error with many other libraries like digi so I need a way to import the class or the library to the lib file in the file manager of XBee or if there is another good solution for my problem.  
i need this lib to make the connection between xbee3 and esp32 so it is very important to use this library.  
Thanks

---

<div class="post-metadata">

**Author:** ![deltav](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@deltav](https://forums.digi.com/u/deltav)\
**Post date:** [April 21, 2021, 4:05pm UTC](https://forums.digi.com/t/importerror-no-module-named/22361/2 "2021-04-21T16:05:33Z")

</div>

Try, from machine import UART

---

<div class="post-metadata">

**Author:** ![Mohamad-Badr](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mohamad-Badr](https://forums.digi.com/u/Mohamad-Badr)\
**Post date:** [April 23, 2021, 12:36pm UTC](https://forums.digi.com/t/importerror-no-module-named/22361/3 "2021-04-23T12:36:46Z")

</div>

I did it but it is the same answer and when I execute dir(machine) [----] uart is not included inside the result so uart class is not in the machine module.

---

<div class="post-metadata">

**Author:** ![deltav](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@deltav](https://forums.digi.com/u/deltav)\
**Post date:** [April 23, 2021, 2:59pm UTC](https://forums.digi.com/t/importerror-no-module-named/22361/4 "2021-04-23T14:59:18Z")

</div>

I’m not familiar with the Grove but double check in your getting started guide if there’s a different method for uart. For example on the xbee3, sys.stdin/out is the primary uart. Also make sure you’re on the latest firmware. The uart libs should be baked in into the stock firmware.

---

<div class="post-metadata">

**Author:** ![Mohamad-Badr](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mohamad-Badr](https://forums.digi.com/u/Mohamad-Badr)\
**Post date:** [April 26, 2021, 9:23am UTC](https://forums.digi.com/t/importerror-no-module-named/22361/5 "2021-04-26T09:23:32Z")

</div>

I have the last firmware, and I want to use UART lin for secondary UART . in the Xbee3 user guide they wrote many examples using UART lib but I can’t find this lib in the machine module dir(machine) –\>[] there is no uart class in the response
