Note that there are some explanatory texts on larger screens.

plurals
  1. POImport where subfolder is same as outer folder
    primarykey
    data
    text
    <p>I want to use this framework called Music21.</p> <p>In the shell everything works fine. For example, the command:</p> <pre><code>from music21 import corpus </code></pre> <p>works perfectly. In the IDE there is an import error.</p> <p>the music21 path is:</p> <pre><code>&gt;&gt;&gt; music21.__file__ '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/music21/__init__.pyc' </code></pre> <p>I put this path in the IDE: <img src="https://i.stack.imgur.com/9RybL.png" alt="enter image description here"></p> <p>EDIT: the commands:</p> <blockquote> <p>import music21 print dir(music21)</p> </blockquote> <p>gives me in the shell:</p> <blockquote> <blockquote> <blockquote> <p>['DefinedContexts', 'DefinedContextsException', 'ElementException', 'ElementWrapper', 'GroupException', 'Groups', 'JSONSerializer', 'JSONSerializerException', 'Music21Exception', 'Music21Object', 'Music21ObjectException', 'Test', 'TestMock', 'VERSION', 'VERSION_STR', 'WEAKREF_ACTIVE', '<strong>all</strong>', '<strong>builtins</strong>', '<strong>doc</strong>', '<strong>file</strong>', '<strong>name</strong>', '<strong>package</strong>', '<strong>path</strong>', 'abc', 'abj', 'analysis', 'articulations', 'bar', 'base', 'beam', 'chord', 'chordTables', 'clef', 'codecs', 'common', 'composition', 'configure', 'converter', 'copy', 'corpus', 'counterpoint', 'defaults', 'demos', 'derivation', 'doc', 'doctest', 'duration', 'dynamics', 'editorial', 'environLocal', 'environment', 'expressions', 'figuredBass', 'graph', 'humdrum', 'inspect', 'instrument', 'interval', 'intervalNetwork', 'json', 'key', 'layout', 'lily', 'mainTest', 'matplotlib', 'medren', 'metadata', 'meter', 'midi', 'musedata', 'musicxml', 'note', 'numpy', 'parse', 'pitch', 'ratios', 'repeat', 'roman', 'romanText', 'scale', 'serial', 'sieve', 'spanner', 'stream', 'sys', 'tempo', 'test', 'text', 'tie', 'tinyNotation', 'trecento', 'types', 'unittest', 'uuid', 'voiceLeading', 'xmlnode']</p> </blockquote> </blockquote> </blockquote> <p>and in the IDE:</p> <blockquote> <blockquote> <blockquote> <p>['<strong>author</strong>', '<strong>builtins</strong>', '<strong>date</strong>', '<strong>doc</strong>', '<strong>file</strong>', '<strong>name</strong>', '<strong>package</strong>', 'music21']</p> </blockquote> </blockquote> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload