Can't get started anymore. This is the state of my Spyder console at startup. I have fresh-installed Python 3 from miniconda and Spyder 3. I'm on MacOS (latest). Any suggestions? Thanks!
Python 3.7.0 (default, Jun 28 2018, 07:39:16)myusername
Type "copyright", "credits" or "license" for more information.
IPython 7.2.0 -- An enhanced Interactive Python.
Error in callback <function sys_pipes_forever at 0x1215a3488> (for pre_execute):
Traceback (most recent call last):
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/Users/myusername/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Error in callback <function sys_pipes_forever at 0x1215a3488> (for pre_execute):
Error in callback <function sys_pipes_forever at 0x1215a3488> (for pre_execute):
Traceback (most recent call last):
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/Users/myusername/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Traceback (most recent call last):
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/Users/myusername/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/Users/myusername/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Thanks for reporting. We'll fix this in our next release (3.3.3) to be ready in a couple of days.
We have tests for this feature and they didn't detect your problem. So we relay on users to let us know about this kind of problems.
I am using Spyder 3.3.3 installed through conda along with Python 3 in Mac OS X 10.14.3. On opening Spyder, I get the following error messages in the console. Same error message appears every time a script is run, or interactive mode is used. The scripts work fine, but the error message is rather annoying!
Error message:
Python 3.6.7 | packaged by conda-forge | (default, Nov 20 2018, 18:37:09)
Type "copyright", "credits" or "license" for more information.
IPython 7.2.0 -- An enhanced Interactive Python.
Error in callback
Traceback (most recent call last):
File "/Users/Suman/anaconda/lib/python3.6/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/Users/Suman/anaconda/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/Users/Suman/anaconda/lib/python3.6/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/Users/Suman/anaconda/lib/python3.6/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/Users/Suman/anaconda/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'
@namus, what's your spyder-kernels version?
@namus, what's your spyder-kernels version?
Name Version Build Channel
spyder 3.3.3 py36_0 conda-forge
spyder-kernels 0.4.2 py36_0 conda-forge
`
Ok, that's different from the issue you're having. Please open a new issue about it here
Hello,
I am on a MacBook Pro, I installed everything though miniconda3
and opened Spyder after updating everything and I got following errors:
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
Type "copyright", "credits" or "license" for more information.
IPython 7.5.0 -- An enhanced Interactive Python.
Error in callback <function sys_pipes_forever at 0x124160ae8> (for pre_execute):
Traceback (most recent call last):
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Error in callback <function sys_pipes_forever at 0x124160ae8> (for pre_execute):
Error in callback <function sys_pipes_forever at 0x124160ae8> (for pre_execute):
Traceback (most recent call last):
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Traceback (most recent call last):
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 320, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/miniconda3/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 290, in pipes
with w:
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 151, in __enter__
pipe = self._setup_pipe('stdout')
File "/miniconda3/lib/python3.7/site-packages/wurlitzer.py", line 100, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
macOS Mojave version 10.14.5 (18F132)
spyder 3.3.4 py37_0
spyder-kernels 0.5.0 py37_0
wurlitzer 1.0.2 py37_0
I have the same with Spyder 4.
same issues on Mac Catalina 10.15.2
Spyder version 3.3.6
Python 3.7.0
It just suddenly came back. Latest MacOS/Python/Spyder.
Edit: Came and went. 馃憤
I am facing the same problem with my mac. This stopped showing up. But this error is back now.
Edit: This was fixed (temporarily?) by running
conda update anaconda
I met the same problem with fresh install of Spyder 4
I am facing the same problem with my mac. This stopped showing up. But this error is back now.
Edit: This was fixed (temporarily?) by running
conda update anaconda
Do you mean?
conda update conda
conda update -all
Getting it again after a full update. MacOS Catalina 10.15.4. Spyder 4.1.2. Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Darwin 19.4.0
Python 3.7.7 (default, Mar 26 2020, 10:32:53)
Type "copyright", "credits" or "license" for more information.
IPython 7.13.0 -- An enhanced Interactive Python.
Restarting kernel...
Error in callback <function sys_pipes_forever at 0x112a31050> (for pre_execute):
Traceback (most recent call last):
File "/Users/username/miniconda/lib/python3.7/site-packages/wurlitzer.py", line 339, in sys_pipes_forever
_mighty_wurlitzer.__enter__()
File "/Users/username/miniconda/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/username/miniconda/lib/python3.7/site-packages/wurlitzer.py", line 306, in pipes
with w:
File "/Users/username/miniconda/lib/python3.7/site-packages/wurlitzer.py", line 158, in __enter__
pipe = self._setup_pipe('stdout')
File "/Users/username/miniconda/lib/python3.7/site-packages/wurlitzer.py", line 107, in _setup_pipe
real_fd = getattr(sys, '__%s__' % name).fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'
Seems to be solved with:
conda install -c conda-forge wurlitzer
Yup, still an issue for me despite installing the latest wurlitzer (from conda-forge, as above).
Configuration:
Any solution welcome
I have the same issue..
Mac OS 10.15.4
Spyder 3.3.6
Python 3.6.10
Wurlitzer 2.0.0
A strange phenomena that might make solving this much harder: After I close Spyder and reopen everything works well - but if I log out and log back in it comes back
Most helpful comment
Hello,
I am on a MacBook Pro, I installed everything though
miniconda3
and opened Spyder after updating everything and I got following errors:macOS Mojave version 10.14.5 (18F132)