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.

Can't import magenta.music

See original GitHub issue

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.80290
  • OS and version: XXX
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): XXX
  • Value of the python.languageServer setting: XXX

Expected behaviour

When you run following script it should display Before&After print(‘Before’) import magenta.music as mm print(‘After’)

Actual behaviour

It prints Before and than hangs

XXX

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Enter: print(‘Before’) import magenta.music as mm print(‘After’)

Run / Start Debug.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX


Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXXX

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
serhataycommented, Jun 4, 2020

De-installed plugin, then re-installed and it is working!

0reactions
kimadelinecommented, Jun 4, 2020

It does NOT work if you try the same in vscode terminal

Does it mean that if you open a terminal inside VS Code without having the extension activated, and you run python test.py it doesn’t work?

Does your command window use Powershell as well?

What is the path to the python executable you use in your command window (python -c import sys; print(sys.executable)) and in the VS Code terminal for your workspace?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Music Generation with Magenta 2.0.1: A migration guide from ...
Choosing an import style. When importing Tensorflow, we can import it using import tensorflow as tf and then write tf.compat.v1 everywhere we ...
Read more >
Getting Started - Magenta - TensorFlow
This page will help you get started making music and art with machine learning, and give you some resources if you want to...
Read more >
Highest scored 'magenta' questions
I'm trying to import magenta to use wavenet, however it always fails and I cannot find any useful information online. It keeps give...
Read more >
How To Make Music With A.I.!! FREE & FAST Tensorflow ...
Use Tensorflow Magenta, Anaconda Python, LMMS, and some browser based tools to make your own cool royalty free music.
Read more >
Colab Notebook ImportError: cannot import name bijectors
ImportErrorTraceback (most recent call last) <ipython-input-4-2924a5c1911e> in <module>() 29 import magenta.music as mm 30 from magenta.music.sequences_lib ...
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