Search code examples
pythonpython-3.xpython-import

I cannot import monsoon after installing Monsoon


I try to install Monsoon and then use it in the script, but I cannot import this module after installing it.

The Python version is 3.8.1; I also tried it in Python 3.11 and got the same issue.

Install script:

pip install monsoon

Then

import monsoon.LVPM as LVPM
import monsoon.sampleEngine as sampleEngine
import monsoon.Operations as op

Run the script, I got the error:

ModuleNotFoundError: No module named 'monsoon'

What am I missing here or I need install it via another mode?

enter image description here

Update1

import monsoon and get the same issue.

enter image description here


Solution

  • As a Windows user, you need to install libusb. Monsoon library uses libusb to communicate with the Power Monitor. On Windows, this requires installing the libusb filter to allow the connection code to detect the Power Monitor. Instructions for this are available at http://libusbdotnet.sourceforge.net/V2/Index.html

    See https://github.com/msoon/PyMonsoon