title: AS5600 sensor raspberry pi4 / ModuleNotFoundError: No module named 'machine'
body: <p>I am trying to read the AS5600 sensor with my raspberry pi 4. I tried this script (<a href="https://github.com/sgall17a/AS5600" rel="nofollow noreferrer">https://github.com/sgall17a/AS5600</a>) but unfortunately I get an error every time. Can someone help me to read the AS5600 on the Raspberry pi4 with python?</p>
  <p><strong>Error:</strong></p>
  <pre><code>pi@raspberrypi:~/Desktop/software $ python3 test.py
  Traceback (most recent call last):
    File &quot;test.py&quot;, line 2, in &lt;module&gt;
      from as5600 import *
    File &quot;/home/pi/Desktop/software/as5600.py&quot;, line 1, in &lt;module&gt;
      from machine import I2C,Pin
  ModuleNotFoundError: No module named 'machine'
  
  </code></pre>
  <p><strong>I tried the following but still ModuleNotFoundError: No module named 'machine':</strong></p>
  <pre><code>pi@raspberrypi:~ $ pip install machine
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  Collecting machine
    Using cached https://files.pythonhosted.org/packages/c0/ce/0c62600971471aabe55865c7100a886f3c2cad767e3a0af2dff717d08e68/machine-0.0.1-py2.py3-none-any.whl
  Requirement already satisfied: pycrypto in /usr/lib/python2.7/dist-packages (from machine) (2.6.1)
  Installing collected packages: machine
  Successfully installed machine-0.0.1
  </code></pre>
  <p><strong>After some googling I found out that I probably need &quot;micropython-machine&quot; so I tried it and got the next error:</strong></p>
  <pre><code>pi@raspberrypi:~ $ pip install micropython-machine
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  Collecting micropython-machine
    Using cached https://files.pythonhosted.org/packages/e1/31/a3282942b3e96881393db406130735913c647f0fc9e07a0d60d7b546b06b/micropython-machine-0.2.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
      IOError: [Errno 2] No such file or directory: '/tmp/pip-install-28u1A1/micropython-machine/setup.py'
  
      ----------------------------------------
  Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/pip-install-28u1A1/micropython-machine/
  
  </code></pre>