# Python API now available for Moku:Go

**URL:** <https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269>\
**Category:** Announcements and New Releases\
**Created:** [May 26, 2021, 3:21am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269 "2021-05-26T03:21:23Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulC](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/paulc/32/23_2.png) [@PaulC](https://forum.liquidinstruments.com/u/PaulC)\
**Post date:** [May 26, 2021, 3:21am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/1 "2021-05-26T03:21:23Z")

</div>

We have today launched the Beta of the python API for Moku:Go.

To download it : [moku · PyPI](https://pypi.org/project/moku/)

Or alternatively, from Linux or macOS : _`pip install moku`_  
The package includes some BETA examples : _`/usr/lib/python3.5/site-packages/moku/examples`_

The documentation is here : [https://apis.liquidinstruments.com](https://apis.liquidinstruments.com)

We welcome feedback, questions and comments.

---

<div class="post-metadata">

**Author:** ![JasonNaughton](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@JasonNaughton](https://forum.liquidinstruments.com/u/JasonNaughton)\
**Post date:** [May 26, 2021, 3:06pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/2 "2021-05-26T15:06:31Z")

</div>

Hi Paul,

Can you look at your document link and confirm it’s correct? I’m not able to access the document page.

Cheers

Jason

---

<div class="post-metadata">

**Author:** ![PaulC](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/paulc/32/23_2.png) [@PaulC](https://forum.liquidinstruments.com/u/PaulC)\
**Post date:** [May 26, 2021, 4:03pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/3 "2021-05-26T16:03:38Z")

</div>

Hi @JasonNaughton : could you please try the documentation page again, it should now be working, thanks.

---

<div class="post-metadata">

**Author:** ![JasonNaughton](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@JasonNaughton](https://forum.liquidinstruments.com/u/JasonNaughton)\
**Post date:** [May 26, 2021, 4:18pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/4 "2021-05-26T16:18:27Z")

</div>

All good it’s reachable now.

Cheers  
Jason

---

<div class="post-metadata">

**Author:** ![bnizette](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/bnizette/32/72_2.png) [@bnizette](https://forum.liquidinstruments.com/u/bnizette)\
**Post date:** [June 3, 2021, 12:23am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/5 "2021-06-03T00:23:19Z")

</div>

Hi All,

While the Python API is in beta, we will be releasing a new package to support each new firmware version (this will stabilize once we come out of beta). If you’ve updated your Moku:Go to firmware 543 (included with Desktop App version 0.9.4) then you should update your `moku` package too. Simply `pip install --upgrade moku`.

If you skip this step, then your `moku`-based programs will just print an error when you try to connect to your device. The new package will be almost identical in terms of the API so all your old scripts will continue to work - in fact, they may even work a little better 🙂 .

If you’re having any issues with your Python installation, please reach out to us here on the forum!

Ben.

---

<div class="post-metadata">

**Author:** ![Xiya](https://avatars.discourse-cdn.com/v4/letter/x/7993a0/32.png) [@Xiya](https://forum.liquidinstruments.com/u/Xiya)\
**Post date:** [October 1, 2022, 9:21pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/6 "2022-10-01T21:21:19Z")

</div>

this is the first time I’m using Mokugo,python verison is 3.9.7. when I run ```  
osc = Oscilloscope(‘192.168.123.45’)

```nohighlight

```

---

<div class="post-metadata">

**Author:** ![Sam.Speece](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/sam.speece/32/191_2.png) [@Sam.Speece](https://forum.liquidinstruments.com/u/Sam.Speece)\
**Post date:** [October 1, 2022, 9:26pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/7 "2022-10-01T21:26:31Z")

</div>

It looks like your message is incomplete Xiya! If you are looking for assistance from our support team, it may be better to reach out to us via the [support form](https://www.liquidinstruments.com/support/contact/) on our website especially if you don’t want to make your IP addresses public!

I am guessing you are having issues connecting to your Moku:Go via the python API. Here is a link to our [API documentation](https://apis.liquidinstruments.com/starting-python.html) site where you can find some examples to help you get started along with a troubleshooting guide.

---

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://forum.liquidinstruments.com/u/Anthony)\
**Post date:** [March 9, 2023, 12:44am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/8 "2023-03-09T00:44:26Z")

</div>

Hi Mr. Paul! This is great news! I have started using the Moku Go and I could not see myself going back to a more traditional oscilloscope. I started using the Python API with my Moku Go in the lab but I am struggling to acquire data from the Moku directly to my file .py with get\_data(). Currently, I am able to use get\_data() from my Moku but I can only acquire one frame of data. If I want a longer period of data, I must use a for loop with get\_data() in it. However, when doing so, I am losing a lot of quality in the data that I am acquiring which is problematic. Is there a way to specify that the Moku can start to acquire data and then stop after a certain time and to retrieve the data with a function such as get\_data() ? In other words, is there a way to use get\_data as a way to transfer data from the Moku to the .py through the API ? Thanks in advance for your help! 🙂

---

<div class="post-metadata">

**Author:** ![Sam.Speece](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/sam.speece/32/191_2.png) [@Sam.Speece](https://forum.liquidinstruments.com/u/Sam.Speece)\
**Post date:** [March 9, 2023, 12:55am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/9 "2023-03-09T00:55:00Z")

</div>

Thank you for posting to the forum Anthony! Yes there is a way to stream data directly to your .py file without losing data points like with your current use of get\_data().

[Here](https://apis.liquidinstruments.com/reference/datalogger/start_streaming.html) is a link to our API reference site which details how to use the start\_streaming() function in our Python library. Should you have any other issues with getting the streaming feature to work feel free to respond here.

---

<div class="post-metadata">

**Author:** ![halilcuma](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@halilcuma](https://forum.liquidinstruments.com/u/halilcuma)\
**Post date:** [April 5, 2023, 11:57am UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/10 "2023-04-05T11:57:33Z")

</div>

Hello,

I’m using Moku:Go python API

I installed the Python package correctly but when I run

Oscilloscope(‘[fe80:0000:0000:0000:7269:79ff:feb9:3056%21]’,force\_connect=True)

I’m getting this error \>  
Exception: Instrument files not available, please run `moku download --fw_ver=577` to download latest instrument data

However when I run \> moku download --fw\_ver=577

File “”, line 1  
moku download --fw\_ver=577  
^  
SyntaxError: invalid syntax

Any suggestion? Thanks!

---

<div class="post-metadata">

**Author:** ![Sam.Speece](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/sam.speece/32/191_2.png) [@Sam.Speece](https://forum.liquidinstruments.com/u/Sam.Speece)\
**Post date:** [April 5, 2023, 8:46pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/11 "2023-04-05T20:46:13Z")

</div>

When you downloaded the python package, did you use

`pip install pymoku`

or

`pip install moku`

If you have used Moku:Lab or accidentally downloaded the pymoku library then it can cause issues when using both packages in the same terminal. Try running `pip uninstall pymoku` first.

If that isn’t the case, you may need to download our new Moku CLI that is a separate download from our website [here](https://www.liquidinstruments.com/software/utilities/) which improves the moku commands you are trying to use.

---

<div class="post-metadata">

**Author:** ![halilcuma](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@halilcuma](https://forum.liquidinstruments.com/u/halilcuma)\
**Post date:** [April 6, 2023, 1:10pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/12 "2023-04-06T13:10:01Z")

</div>

Thank you for your reply!

I used pip install moku

I already installed Moku CLI but still have same problem when running moku download

---

<div class="post-metadata">

**Author:** ![Sam.Speece](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/sam.speece/32/191_2.png) [@Sam.Speece](https://forum.liquidinstruments.com/u/Sam.Speece)\
**Post date:** [April 6, 2023, 11:16pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/13 "2023-04-06T23:16:37Z")

</div>

Could you tell me if you are using an IDE (pycharm, visual studio, etc.)? Also, are you running `moku download` in a command terminal?

---

<div class="post-metadata">

**Author:** ![halilcuma](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@halilcuma](https://forum.liquidinstruments.com/u/halilcuma)\
**Post date:** [April 7, 2023, 12:43pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/14 "2023-04-07T12:43:53Z")

</div>

I’m using Jupyter notebook and running moku download in the notebook

---

<div class="post-metadata">

**Author:** ![Sam.Speece](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/sam.speece/32/191_2.png) [@Sam.Speece](https://forum.liquidinstruments.com/u/Sam.Speece)\
**Post date:** [April 10, 2023, 5:42pm UTC](https://forum.liquidinstruments.com/t/python-api-now-available-for-moku-go/269/15 "2023-04-10T17:42:11Z")

</div>

Could you try opening a command prompt on your PC (Win+R on Windows, or in the Launchpad for Mac) and running the moku download command? There are also a few additional troubleshooting tips you can find [here](https://apis.liquidinstruments.com/starting-python.html#troubleshooting).
