MrYsLab / s3-extend

Control an Arduino Uno, Circuit Playground Express, Raspberry Pi Pico, ESP-8266, ESP-32, Picoboard, Robohat MM1, or Rasberry Pi From Scratch 3
GNU Affero General Public License v3.0
28 stars 13 forks source link

Potential issue with Monterey 12.6.3 and M1 #39

Closed MrYsLab closed 1 year ago

MrYsLab commented 1 year ago

Some strange behavior has been reported using s3a while using macOS Monterey 12.6.3 in conjunction with an M1 processor. There seems to be some problem with psutil, but since I don't own a mac, I cannot reproduce or track this down.

There are several exceptions, but it starts with this:

Traceback (most recent call last):
  File "/Library/Python/3.9/site-packages/psutil/_psosx.py", line 346, in wrapper
    return fun(self, *args, **kwargs)
  File "/Library/Python/3.9/site-packages/psutil/_psosx.py", line 404, in cmdline
    return cext.proc_cmdline(self.pid)
ProcessLookupError: [Errno 3] assume no such process (originated from sysctl(KERN_PROCARGS2) -> EINVAL)

It seems to be related to this psutil issue: https://github.com/giampaolo/psutil/issues/2189

There is a workaround. Use sudo to invoke that OneGPIO server.

MrYsLab commented 1 year ago

Documentation was updated using sudo when using macOS.