79635291

Date: 2025-05-23 10:06:50
Score: 1
Natty:
Report link

The actual problem was just setting the memory limit too low. I wanted 1024MB, but it ended up being 1024KB, so correctly it was:

def main():        
    resource.setrlimit(resource.RLIMIT_AS, (1024*1024*1024, 1024*1024*1024))
    print(requests.get('https://api.github.com').json())
    print(subprocess.Popen(['which', 'wkhtmltopdf'], stdout=subprocess.PIPE).communicate()[0])
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bálint Balina