question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'kernel'

See original GitHub issue

wandb, 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, Apr 29, 2020

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.

0reactions
sooheoncommented, Jun 5, 2020

Also seeing SIGWINCH handler was not None: <Handlers.SIG_DFL: 0>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found