Pi-Top Python SDK on Windows (WSL) Machine?

Hey there,

we are working with Pi-Tops at the vocational school and I want to program scripts during the time I am not at school. (I only want auto-completion and those features…)

Is it possible to install the Pi-Top Python SDK on a Windows Machine?

I already tried to install it on the Windows Subsystem for Linux, but that did not work too. And also a manual install would not work…

Do you know a solution to this or is it just not possible? Thanks

The detailed error code is:

Getting requirements to build wheel … error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [61 lines of output]
warning: src/gevent/resolver/cares.pyx:38:0: The ‘DEF’ statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See github link was here: The ‘DEF’ statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See github link was here: The ‘DEF’ statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See github link was here because it changed.
[1/1] Cythonizing src/gevent/resolver/cares.pyx
warning: src/gevent/libev/corecext.pyx:326:0: The ‘DEF’ statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See github link was here

  warning: src/gevent/libev/corecext.pyx:791:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See ***github link was here***: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See ***github link was here***: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See ***github link was here*** cython/cython/issues/4310
  warning: src/gevent/libev/corecext.pyx:799:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See ***github link was here*** cython/cython/issues/4310
  Compiling src/gevent/libev/corecext.pyx because it changed.
  [1/1] Cythonizing src/gevent/libev/corecext.pyx
  Compiling src/gevent/_greenlet_primitives.py because it changed.
  [1/1] Cythonizing src/gevent/_greenlet_primitives.py
  Compiling src/gevent/_hub_primitives.py because it changed.
  [1/1] Cythonizing src/gevent/_hub_primitives.py
  Compiling src/gevent/_hub_local.py because it changed.
  [1/1] Cythonizing src/gevent/_hub_local.py
  Compiling src/gevent/_waiter.py because it changed.
  [1/1] Cythonizing src/gevent/_waiter.py
  warning: src/gevent/_gevent_cgreenlet.pxd:112:33: Declarations should not be declared inline.

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  cdef load_traceback
  cdef Waiter
  cdef wait
  cdef iwait
  cdef reraise
  cpdef GEVENT_CONFIG
        ^
  ------------------------------------------------------------

  src/gevent/_gevent_cgreenlet.pxd:182:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
  Compiling src/gevent/greenlet.py because it changed.
  [1/1] Cythonizing src/gevent/greenlet.py
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 143, in _get_build_requires
      self.run_setup()
    File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 294, in <module>
      EXT_MODULES.append(cythonize1(mod))
    File "/tmp/pip-install-qm27vn9f/gevent_48e6708889644530a9a6b464314ef626/_setuputils.py", line 237, in cythonize1
      new_ext = cythonize(
    File "/tmp/pip-build-env-rakjxoj9/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1129, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-rakjxoj9/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1296, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: src/gevent/greenlet.py
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.