mercredi 1 février 2017

Python 3.6 fails to build in QEMU with "failed to get random numbers to initialize Python"

I'm trying to build Python using qemu on Linux. Python 2.7 worked great, no problems, standard build process. Python 3.6, same build process is throwing an error like this:

./Programs/_freeze_importlib \
    ./Lib/importlib/_bootstrap.py Python/importlib.h
Fatal Python error: failed to get random numbers to initialize Python

So I'm thinking this is due to qemu not having /dev/random or /dev/urandom? So either I figure out how to add random to the qemu, or convince Python 3.6 to not require it? I'm going to post on python.org also - thanks!




1 commentaire: