# cannot find reference 'xbee in' in \_\_init\_\_ pyi

**URL:** <https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153>\
**Category:** Python\
**Tags:** xbee3, xbee, zigbee\
**Created:** [August 15, 2024, 2:41pm UTC](https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153 "2024-08-15T14:41:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdjggfds](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@hdjggfds](https://forums.digi.com/u/hdjggfds)\
**Post date:** [August 15, 2024, 2:41pm UTC](https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153/1 "2024-08-15T14:41:52Z")

</div>

Hi

I am trying to follow the guide listed here for using the Xbee device

[https://xbplib.readthedocs.io/en/latest/getting\_started\_with\_xbee\_python\_library.html](https://xbplib.readthedocs.io/en/latest/getting_started_with_xbee_python_library.html)

I am, however, encountering an issue when I use the following in my script:  
“from digi.xbee.devices import XBeeDevice”

In that I am getting the error

“cannot find reference ‘xbee in’ in **init** pyi”

Any idea as to how I should fix this?

Thank you.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [August 15, 2024, 3:02pm UTC](https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153/2 "2024-08-15T15:02:20Z")

</div>

I would suggest looking at [digi.xbee.devices — Digi XBee Python library 1.4.1 documentation](https://xbplib.readthedocs.io/en/latest/_modules/digi/xbee/devices.html?highlight=from%20digi.xbee.devices%20import%20xbeedevice#)

The function of “From Digi.xbee.Devices” does not support the function you are calling of “import XBee.Device”

---

<div class="post-metadata">

**Author:** ![hdjggfds](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@hdjggfds](https://forums.digi.com/u/hdjggfds)\
**Post date:** [August 25, 2024, 11:06am UTC](https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153/3 "2024-08-25T11:06:07Z")

</div>

Hi

Thank you for the response

Regardless of which I import I still get the same error:  
“cannot find reference ‘xbee in’ in **init** pyi”

I assume this has something to do with my IDE setup or paths?

Kind regards

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [August 26, 2024, 1:10pm UTC](https://forums.digi.com/t/cannot-find-reference-xbee-in-in-init-pyi/32153/4 "2024-08-26T13:10:50Z")

</div>

Try using the PyCharm with the Digi XBee Plugin.
