# Ping-python problem: 'Ping360' object has no attribute '\_mode'

**URL:** <https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268>\
**Category:** Ping Sonar Devices\
**Tags:** ping\
**Created:** [October 1, 2020, 5:53pm UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268 "2020-10-01T17:53:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmomo26](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mrmomo26](https://discuss.bluerobotics.com/u/mrmomo26)\
**Post date:** [October 1, 2020, 5:53pm UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268/1 "2020-10-01T17:53:29Z")

</div>

Hello there, I am getting an error with the ping-python module for the ping360 sonar. The error is saying that Ping360 object doesn’t have the \_mode attribute in Ping360.py. I don’t see anyone else having this issue on this forum, and I looked at the Ping360.py and can’t find the problem. Let me know if you need me to upload my SonarSweep.py script, or if you need any other additional information! 🙂

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/9/9a7b6af9181bd887a02fcbb115756b5185dd1be7.png)

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [October 1, 2020, 6:20pm UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268/2 "2020-10-01T18:20:45Z")

</div>

Hi Ainda,

Can you please provide a minimum version of your script that replicates the problem ?

---

<div class="post-metadata">

**Author:** ![mrmomo26](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mrmomo26](https://discuss.bluerobotics.com/u/mrmomo26)\
**Post date:** [October 1, 2020, 7:31pm UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268/4 "2020-10-01T19:31:54Z")

</div>

Hey, I realized that I had the wrong port number (I was using 1234, but it’s actually 12345 -\_-) Sorry for the trouble!

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [October 2, 2020, 11:55am UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268/5 "2020-10-02T11:55:08Z")

</div>

I’m glad that you figure it out @mrmomo26, let us know if you have any further questions.

---

<div class="post-metadata">

**Author:** ![alexsunny123](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alexsunny123](https://discuss.bluerobotics.com/u/alexsunny123)\
**Post date:** [July 10, 2021, 11:24am UTC](https://discuss.bluerobotics.com/t/ping-python-problem-ping360-object-has-no-attribute-mode/8268/6 "2021-07-10T11:24:45Z")

</div>

> [@mrmomo26](#):
>
> Hey, I realized that I had the wrong port number (I was using 1234, but it’s actually 12345 -\_-) Sorry for the trouble!

thanks, my issue has been fixed.
