Problem with import flatland

#1

I just finished the install, but when I type “import flatland” I get the error below – any thoughts on what I can do to fix it?

import flatland
Error in callback <function sys_pipes_forever at 0x10c884048> (for pre_execute):
Traceback (most recent call last):

File “/Users/alyshareinard/anaconda/envs/flatland-rl/lib/python3.6/site-packages/wurlitzer.py”, line 331, in sys_pipes_forever
_mighty_wurlitzer.enter()

File “/Users/alyshareinard/anaconda/envs/flatland-rl/lib/python3.6/contextlib.py”, line 81, in enter
return next(self.gen)

File “/Users/alyshareinard/anaconda/envs/flatland-rl/lib/python3.6/site-packages/wurlitzer.py”, line 298, in pipes
with w:

File “/Users/alyshareinard/anaconda/envs/flatland-rl/lib/python3.6/site-packages/wurlitzer.py”, line 151, in enter
pipe = self._setup_pipe(‘stdout’)

File “/Users/alyshareinard/anaconda/envs/flatland-rl/lib/python3.6/site-packages/wurlitzer.py”, line 100, in _setup_pipe
real_fd = getattr(sys, ‘%s’ % name).fileno()

AttributeError: ‘NoneType’ object has no attribute ‘fileno’

#2

Hi @alysha_reinard, which version of wurlitzer has been installed. There might be a buggy version: https://github.com/spyder-ide/spyder-kernels/issues/94