AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'kernel'
See original GitHub issuewandb, version 0.8.34 Python 3.7.4 Linux
Description
Using wandb
with PyCharm in the interactive terminal. It seems that wandb
is detecting the interactive terminal as a jupyter
environment. PyCharm uses the pydev console, which is kinda like Jupyter, but not 100% compatible.
Happened upon upgrade from 0.8.33
-> 0.8.34
.
Error in callback <function _init_jupyter.<locals>.cleanup at 0x7f612c1905f0> (for post_run_cell):
Traceback (most recent call last):
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/IPython/core/events.py", line 88, in trigger
func(*args, **kwargs)
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/backcall/backcall.py", line 104, in adapted
return callback(*args, **kwargs)
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/wandb/__init__.py", line 502, in cleanup
run._stop_jupyter_agent()
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/wandb/wandb_run.py", line 185, in _stop_jupyter_agent
self._jupyter_agent.stop()
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/wandb/jupyter.py", line 139, in stop
self.save_history()
File "/home/mccoy/.local/share/virtualenvs/training-gym-ZeodOefO/lib/python3.7/site-packages/wandb/jupyter.py", line 185, in save_history
'language_info': self.shell.kernel.language_info
AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'kernel'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
'PyDevTerminalInteractiveShell' object has no attribute 'kernel ...
Using wandb with PyCharm in the interactive terminal. It seems that wandb is detecting the interactive terminal as a jupyter environment.
Read more >'PyDevTerminalInteractiveShell' object has no attribute ...
This PyCharm issue occurs because of changes the the iPython api with iPython version 5. Until Jetbrains fix this, reverting to an earlier ......
Read more >running hiplot with pycharm error
hip.Experiment.from_iterable(data).display() AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'kernel' ...
Read more >'Dense' object has no attribute 'kernel' when trying to run ...
AttributeError : 'Dense' object has no attribute 'kernel' when trying to run TensorFlow model inference in a thread.
Read more >Python AttributeError — What is it and how do you fix it?
AttributeError : '***' object has no attribute '***'What is an AttributeError in Python? What can you do to fix it? When does it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just made a branch that fixes this, you can install with
pip install --no-cache-dir --upgrade https://github.com/wandb/client/archive/bug/ipython.zip
. We should be releasing 0.8.35 in the next couple days.Also seeing
SIGWINCH handler was not None: <Handlers.SIG_DFL: 0>