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.

IPython not working after wandb import

See original GitHub issue
  • Weights and Biases version: 0.10.2
  • Python version: 3.8.5
  • Operating System: Linux

Description

After importing wandb, IPython can no longer be embedded. Without import wandb everything works fine.

What I Did

Python 3.8.5 (default, Aug  5 2020, 08:36:46)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wandb
>>> __import__('IPython').embed()                                                                                                                                                                                                                                 
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../conda/envs/ryn/lib/python3.8/site-packages/IPython/__init__.py", line 56, in <module>
from .terminal.embed import embed
File ".../conda/envs/ryn/lib/python3.8/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File ".../conda/envs/ryn/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 21, in <module>
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, Sep 22, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

1reaction
sydhollcommented, Nov 18, 2021

This issue has been solved in Client Release 0.10.11

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPython not working after wandb import · Issue #1253 - GitHub
After importing wandb, IPython can no longer be embedded. Without import wandb everything works fine. What I Did. Python 3.8.5 (default, Aug 5 ......
Read more >
Troubleshooting - Documentation - Weights & Biases - WandB
We run wandb in a separate process to make sure that if wandb somehow crashes, your training will continue to run. If the...
Read more >
Google Colab: "wandb" ModuleNotFoundError after installation
I just tried both. Did not work in my case. Thanks. – Laiborn. Oct 14 at 18:56. Add ...
Read more >
Sweep from Jupyter Notebook · GitBook
A temporary workaround (until we can fix these interactions) is to avoid using the python interface for running the agent. Instead, use the...
Read more >
attributeerror: module 'wandb' has no attribute 'run' - You.com
The tasks I am working on is: Text Classification on Publicly available Dataset. To reproduce. Steps to reproduce the behaviour: After setuping Environment ......
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