RuntimeError due to Numpy on Win10 v2004

[Tried to post this in Issues/Feedback, but wasn’t able to for some reason]

I’m getting an issue when I run perceptilabs (Windows 10, version 2004, Anaconda). It manifests as “Kernel is offline” and the console just repeats:
PerceptiLabs: Waiting for services to listen on these ports:
PerceptiLabs: kernel on port 5000

I ran it with verbose logging and it appears to be related to the bolded Numpy issue below. Any advice on the best way to work around this?
(perceptilabs3) C:\WINDOWS\system32>perceptilabs -v=3
PerceptiLabs: Your environment does not have atari_py installed, so some functionality may not be available
PerceptiLabs: To install it, please follow the directions at and then install gym through ‘pip install gym[atari]’
Operations to perform:
Apply all migrations: admin, api, auth, contenttypes, sessions
Running migrations:
No migrations to apply.
PerceptiLabs: Starting
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
Traceback (most recent call last):
File “”, line 1, in
File “c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\”, line 1, in
from perceptilabs.mainServer import main
File “perceptilabs\”, line 10, in init perceptilabs.mainServer
File “c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\”, line 99, in
from tensorflow_core import *
File “c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\”, line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “”, line 1019, in handle_fromlist
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\tensorflow_init
.py", line 50, in getattr
module = self.load()
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\importlib_init
.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\tensorflow_core\python_init
.py", line 47, in
import numpy as np
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\numpy_init
.py", line 305, in
File "c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\numpy_init
.py", line 302, in _win_os_check
raise RuntimeError(msg.format(file)) from None
RuntimeError: The current Numpy installation (‘c:\programdata\anaconda3\envs\perceptilabs3\lib\site-packages\numpy\’) fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information:
Performing system checks…

And 5 minutes later I think I figured it out… hopefully this is helpful to someone else.

I ran the following commands and restarted perceptilabs:

pip uninstall numpy
pip install numpy==1.18.5

This is also a workaround for the following error:
mlagents-envs 0.21.1 requires numpy<1.19.0,>=1.14.1, but you’ll have numpy 1.19.0 which is incompatible.


Hi there and thanks for the info! We’ll get that fixed in our next build.

1 Like