Python 3.6 RoboRIO startup issue #243

virtuald opened this Issue Jan 7, 2017 · 4 comments


None yet

1 participant

virtuald commented Jan 7, 2017
BlockingIOError: [Errno 11] Resource temporarily unavailable 
 The above exception was the direct cause of the following exception: 
 Traceback (most recent call last): 
   File "/home/lvuser/py/", line 15, in <module> 
     import wpilib 
   File "/usr/local/lib/python3.6/site-packages/wpilib/", line 72, in <module> 
     from ._impl.main import run 
   File "/usr/local/lib/python3.6/site-packages/wpilib/_impl/", line 7, in <module> 
     from pkg_resources import iter_entry_points 
   File "/usr/local/lib/python3.6/site-packages/pkg_resources/", line 36, in <module> 
     import email.parser 
   File "/usr/local/lib/python3.6/email/", line 12, in <module> 
     from email.feedparser import FeedParser, BytesFeedParser 
   File "/usr/local/lib/python3.6/email/", line 27, in <module> 
     from email._policybase import compat32 
   File "/usr/local/lib/python3.6/email/", line 9, in <module> 
     from email.utils import _has_surrogates 
   File "/usr/local/lib/python3.6/email/", line 28, in <module> 
     import random 
   File "/usr/local/lib/python3.6/", line 742, in <module> 
     _inst = Random() 
 SystemError: <class 'random.Random'> returned a result with an error set 

This seems to be caused by running

The behavior is that the robot program restarts a few times, but eventually gets fixed and the program starts up. It's weird, because it shouldn't be using urandom at this point... will need to investigate this and fix it before the end of the season.

virtuald commented Jan 8, 2017

Bug filed on python at

virtuald commented Jan 8, 2017

@auscompgeek thinks that python/cpython@ff4a079 would fix this.

@virtuald virtuald self-assigned this Jan 10, 2017
@virtuald virtuald added the bug label Jan 10, 2017

I'm running a build now with the patch, so hopefully will be able to test this later tonight.

@virtuald virtuald added this to the 2017.0.1 milestone Jan 10, 2017

Fixed in Python 3.6.0-r1 in the ipkg feed

@virtuald virtuald closed this Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment