Memory access problem on MacOS
# crawlee-python
l
I'm deploying on Linux, but my development system is MacOS. I discovered an issue that appears with concurrency > 2. I have plenty of memory but that's not actually the problem;, but in any case it should probably fail gracefully. The Snapshotter tries to access child process memory via
psutil.Process.memory_full_info()
, which requires elevated permissions on macOS and fails with
Copy code
psutil/_psosx.py", line 356, in wrapper

    raise AccessDenied(self.pid, self._name)
I came up with a monkey patch workaround, so this is not a pressing issue. Just thought I'd mention it in case anyone else encountered it, or a fix could be incorporated in the code.
a
message has been deleted
l
I'm not sure I understand fully what are you trying to do or what caused the error. Can you give me more information about your workflow ?
p
I think it is a bug introduced when improving memory usage estimation on Linux. Unfortunately we have tests only for Windows and Linux in CI, so macOS support is kind of fragile. Thanks for reporting it I will take a look into that https://github.com/apify/crawlee-python/issues/1329
l
Wow! Thanks, Josef, that was fast. I've been using 0.6.12b34. Is there a beta tag that I should use to get this change?
m
@liamkultra The 0.6.12b43 release already includes this PR
l
Thanks. Just tested this and it works.