title: Scrapy on M1 Mac: MemoryError: Cannot allocate write+execute memory for ffi.callback()
body: <p>I'm new to scrapy, and recently started using it on the M1 MacBook Air. I've encountered an issue.</p>
  <p>For example, when I try to do something like this:</p>
  <pre><code>scrapy shell bbc.com
  </code></pre>
  <p>It would return me: <strong>MemoryError: Cannot allocate write+execute memory for ffi.callback(). You might be running on a system that prevents this. For more information, see <a href="https://cffi.readthedocs.io/en/latest/using.html#callbacks" rel="noreferrer">https://cffi.readthedocs.io/en/latest/using.html#callbacks</a></strong></p>
  <p>It is worth noting that if I do the exact same thing on Windows, everything works. Also, when I use scrapy shell on websites like <a href="http://quotes.toscrape.com/" rel="noreferrer">http://quotes.toscrape.com/</a> or HTTP websites on the M1 Mac, it also works. Seems like a HTTPS issue but I'm really not sure.</p>
  <p>Any help will be greatly appreciated.</p>