"cannot initialize type 'WorkerID'" in 1.4.0?

After the release today, my tests (pytest with pytest-cov enabled) are now failing with

collecting ... terminate called after throwing an instance of 'std::runtime_error'

[531]  what(): generic_type: cannot initialize type "WorkerId": an object with that name is already defined

[532] Fatal Python error: Aborted

[533] Current thread 0x00007f13cc0f4740 (most recent call first):

[534]  File "/opt/conda/envs/pytorch/lib/python3.7/site-packages/torch/distributed/rpc/__init__.py", line 16 in <module>

I’m not using any kind of RPC, and the failure occurs before I actually run any tests… any thoughts?

Could you please create an issue on GitHub?

My pleasure. I’m not fully sure how to repro though, and may not have time to find out. I just rolled back to 1.3.1 for now and that fixed it.

Hmm, this is weird. We no longer have that WorkerId type in 1.4.0, it was there in 1.3.1. Checking

I cannot reproduce this error, but let’s move the discussion to GH issue