text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>Windows build number: 19042.330</li> <li>PowerToys version: 0.20.0</li> <li>PowerToy module: Color Picker</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Launch the Color Picker</li> <li>Open the start menu with the windows key</li> <li>Try to select a color from the taskbar or from the start menu</li> </ol> <h3 dir="auto">✔️ Expected result</h3> <p dir="auto">The color picker's tooltip appears above the taskbar and start menu</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">The color picker's tooltip appears behind them. Clicking on them still successfully copies the color of whatever is under the mouse pointer.</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5175705/89129230-ffb2a900-d4fb-11ea-9e55-2b99df5011a0.png"><img src="https://user-images.githubusercontent.com/5175705/89129230-ffb2a900-d4fb-11ea-9e55-2b99df5011a0.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>Windows build number: 17134.950</li> <li>PowerToys version: 0.20</li> <li>PowerToy module: ?</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>right-click tray icon and click <code class="notranslate">setting</code></li> <li>happened</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">no g-sync indicator. and no frame/refresh rate drop.<br> <em>suggest turn off g-sync support for PT and non-game app</em></p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">more than one g-sync indicator display in the middle of PT's GUI. and <code class="notranslate">frame rate</code> and <code class="notranslate">refresh rate</code> both dropped blow 30fps/hz causing mouse lagging.</p> <h2 dir="auto">📷 Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32261870/89134881-4daac980-d55b-11ea-9503-b84e186a13e4.png"><img src="https://user-images.githubusercontent.com/32261870/89134881-4daac980-d55b-11ea-9503-b84e186a13e4.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">demo: <a href="https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015%2Cstage-0&amp;code=async%20function%20foo()%7B%0A%20%20%0A%7D%0A%0Aconsole.log(foo.constructor)%3B&amp;experimental=true&amp;loose=false&amp;spec=false&amp;playground=true" rel="nofollow">https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015%2Cstage-0&amp;code=async%20function%20foo()%7B%0A%20%20%0A%7D%0A%0Aconsole.log(foo.constructor)%3B&amp;experimental=true&amp;loose=false&amp;spec=false&amp;playground=true</a></p> <p dir="auto">it outputs 'Function'</p> <p dir="auto">The spec <a href="https://tc39.github.io/ecmascript-asyncawait/#async-function-constructor-arguments" rel="nofollow">https://tc39.github.io/ecmascript-asyncawait/#async-function-constructor-arguments</a> seems to tell about a AsyncFunction type</p>
<p dir="auto">This would be really nice for larger applications that aren't libraries, where they could still use the full, globally polluting polyfill, but the helpers wouldn't be duplicated across several modules. It would make the compiled code faster to load, and a lot smaller overall. These benefits are nice for both Node applications and web applications, where the deduplication would make programs significantly smaller. As for the core-js aliasing, it could just require the module at the top of every file that needs a feature from it, which doesn't add a lot of size overhead to the files.</p>
0
<p dir="auto">I'm an <strong>end user</strong> and I'm new to ES and I've been immediately faced with the problem of getting my data processed correctly.<br> The problem with ES (vs. Splunk) is that data is being indexed/analyzed first, then stored, then you can't change it. (vs. Splunk, where almost everything happens during search time, thus you can adjust your plans).</p> <p dir="auto">Currently, in order to test my new mapping params, I have to (using kopf plugin -- otherwise I'd throw ES immediately out of window for lack of usability):</p> <ol dir="auto"> <li>Have my data ready -- either stored in some safe index or in local .json file on disk</li> <li>delete index / index template -- <code class="notranslate">/_plugin/kopf/#!/cluster</code></li> <li>adjust index appropriately and create it -- <code class="notranslate">/_plugin/kopf/#!/createIndex</code></li> <li>Use <strong>stream2es</strong> in order to copy index from "safe place" to the index above -- <code class="notranslate">cat mydata.json | stream2es stdin --target http://blah:9200/newidx/type1</code><br> OR<br> <code class="notranslate">stream2es es --source http://blah:9200/safe_idx/type1 --target http://blah:9200/newidx/type1</code></li> <li>Run some query, see it failing/misbehaving, read docs, see that you need mapping adjustment, GO TO step <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130149" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/2" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/2/hovercard" href="https://github.com/elastic/elasticsearch/issues/2">#2</a>.</li> </ol> <p dir="auto">Now imagine doing this 50 times, because you can't get ES behave properly with your data....<br> This is very tedious for someone who expected modern easy-to-use software.</p> <p dir="auto">Ideally, I want to input my new mapping, press button, and let it do the reindex automatically.<br> Of course, this would be useful for dev env only as on production, you'd sync the mapping changes with app schema changes.</p>
<p dir="auto">Be able to ask the system to reindex from the saved JSON by document ID or query. This is useful once we have ES style plugins for manipulating documents that might later change and therefore cause you to want to reindex some set of documents.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405994" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/490" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/490/hovercard" href="https://github.com/elastic/elasticsearch/issues/490">#490</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405996" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/491" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/491/hovercard" href="https://github.com/elastic/elasticsearch/issues/491">#491</a> would let you query by a set of documents indexed before the required change.</p> <p dir="auto">If you are going to store the JSON, you can take advantage of that by reindex requests.</p> <p dir="auto">This might also allow the system to handle schema changes in the future more automatically by reindexing to the new analyzer over time in batch.</p>
1
<p dir="auto">Right now <code class="notranslate">test.step</code> resolves to <code class="notranslate">undefined</code>.</p> <p dir="auto">It would be great if it resolved to the value the callback resolves to, so we could have tests like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('test something', async ({ pageObject, page }) =&gt; { await pageObject.navigateTo(); const link = await test.step('is able to retrieve a link', async () =&gt; { const link = await pageObject.getLink(); // tests... expect(link).toBe(blabla); return link; }); await test.step('link is accessible', async () =&gt; { await page.goto(link) // tests... expect(page.locator('#my-element')).toBeVisible(); }); })"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'test something'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> pageObject<span class="pl-kos">,</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">pageObject</span><span class="pl-kos">.</span><span class="pl-en">navigateTo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">link</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'is able to retrieve a link'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">link</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">pageObject</span><span class="pl-kos">.</span><span class="pl-en">getLink</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// tests...</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">link</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-s1">blabla</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">link</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'link is accessible'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">link</span><span class="pl-kos">)</span> <span class="pl-c">// tests...</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#my-element'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Right now the workaround is to have <code class="notranslate">let</code> variables before the step (notice the <code class="notranslate">!</code> to avoid type errors):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('test something', async ({ pageObject, page }) =&gt; { await pageObject.navigateTo(); let link!: string await test.step('is able to retrieve a link', async () =&gt; { link = await pageObject.getLink(); // tests... expect(link).toBe(blabla); }); await test.step('link is accessible', async () =&gt; { await page.goto(link) // tests... expect(page.locator('#my-element')).toBeVisible(); }); })"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'test something'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> pageObject<span class="pl-kos">,</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">pageObject</span><span class="pl-kos">.</span><span class="pl-en">navigateTo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">link</span><span class="pl-c1">!</span>: <span class="pl-smi">string</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'is able to retrieve a link'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">link</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">pageObject</span><span class="pl-kos">.</span><span class="pl-en">getLink</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// tests...</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">link</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-s1">blabla</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'link is accessible'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">link</span><span class="pl-kos">)</span> <span class="pl-c">// tests...</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#my-element'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">I'm free to work on this if it is something that would be accepted in the library.</p>
<p dir="auto">It would be useful to be able to return a value from a test step and use it in a subsequent step.<br> This way we could avoid mutable state (<code class="notranslate">let</code>).</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const invitationLink = await test.step('Create invitation link', async () =&gt; { await page.goto('create-invitation-link'); … return await page.locator('#link').getAttribute('href'); }); await test.step('Accept invitation', async () =&gt; { await page.goto(invitationLink); });"><pre class="notranslate"> <span class="pl-k">const</span> <span class="pl-s1">invitationLink</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Create invitation link'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'create-invitation-link'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">…</span> <span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#link'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getAttribute</span><span class="pl-kos">(</span><span class="pl-s">'href'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'Accept invitation'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">invitationLink</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The <code class="notranslate">test.step</code> method would probably need a generic signature:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="step&lt;A&gt;(title: string, body: () =&gt; Promise&lt;A&gt;): Promise&lt;A&gt;;"><pre class="notranslate"><span class="pl-s1">step</span><span class="pl-c1">&lt;</span><span class="pl-smi">A</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">title</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">body</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">12 -span columns is great for nearly all cases - except creating 5 column layouts.</p> <p dir="auto">But I can't create a 10 column system without deleting the 12 column one. And the reason is mainly because @grid-column -variable is called inside the <a href="https://github.com/twbs/bootstrap/blob/master/less/mixins/grid-framework.less">https://github.com/twbs/bootstrap/blob/master/less/mixins/grid-framework.less</a> -mixins.</p> <p dir="auto">If @grid-column was passed to the mixin as the default value parameter then creating both 12 and 10 (and whatever) column systems would be easy.</p> <p dir="auto">Like instead of this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".calc-grid-column(@index, @class, @type) when (@type = width) and (@index &gt; 0) { .col-@{class}-@{index} { width: percentage((@index / @grid-columns)); } }"><pre class="notranslate"><code class="notranslate">.calc-grid-column(@index, @class, @type) when (@type = width) and (@index &gt; 0) { .col-@{class}-@{index} { width: percentage((@index / @grid-columns)); } } </code></pre></div> <p dir="auto">It would be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".calc-grid-column(@index, @class, @type, @grid-column-count: @grid-columns) when (@type = width) and (@index &gt; 0) { .col-@{class}-@{index} { width: percentage((@index / @grid-column-count)); } }"><pre class="notranslate"><code class="notranslate">.calc-grid-column(@index, @class, @type, @grid-column-count: @grid-columns) when (@type = width) and (@index &gt; 0) { .col-@{class}-@{index} { width: percentage((@index / @grid-column-count)); } } </code></pre></div> <p dir="auto">I already got it to work (SASS version) and I think this would be a logical addition.</p>
<p dir="auto">Cause <code class="notranslate">@grid-columns</code> will be used to define the number of columns in make-grid() and make-grid-columns-float() it will be impossible to compile sub grid with different number of columns. See also: <a href="http://stackoverflow.com/a/19724075/1596547" rel="nofollow">http://stackoverflow.com/a/19724075/1596547</a></p> <p dir="auto">The extra parameter will make possible to do:</p> <p dir="auto"><code class="notranslate">make-grid(@grid-columns, sm, width,@grid-columns);</code> and <code class="notranslate">make-grid(6, sm, width,6);</code> etc.</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [ X] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [ X] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> With multiple &lt;ng-content&gt;&lt;/ng-content&gt; only works last one.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> Both should paint content if condition met.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto"><a href="http://stackoverflow.com/questions/38768324/angular2-rc-4-ng-content-duplicated-dont-work" rel="nofollow">http://stackoverflow.com/questions/38768324/angular2-rc-4-ng-content-duplicated-dont-work</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div *ngIf=&quot;dialog&quot;&gt; &lt;ng-content&gt;&lt;/ng-content&gt; &lt;/div&gt; &lt;!-- for pages not in dialog popups put all div structure --&gt; &lt;div *ngIf=&quot;!dialog&quot; class=&quot;container content&quot;&gt; &lt;div class=&quot;page-header&quot;&gt; &lt;h2&gt;{{title}}&lt;/h2&gt; &lt;/div&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-md-12&quot;&gt; &lt;ng-content&gt;&lt;/ng-content&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><code class="notranslate">&lt;div *ngIf="dialog"&gt; &lt;ng-content&gt;&lt;/ng-content&gt; &lt;/div&gt; &lt;!-- for pages not in dialog popups put all div structure --&gt; &lt;div *ngIf="!dialog" class="container content"&gt; &lt;div class="page-header"&gt; &lt;h2&gt;{{title}}&lt;/h2&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;div class="col-md-12"&gt; &lt;ng-content&gt;&lt;/ng-content&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Both should paint content if condition met.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Paint content in one or another container</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.4</li> <li><strong>Browser:</strong> [all]</li> <li><strong>Language:</strong> [ TypeScript ]</li> </ul>
<p dir="auto">**I'm submitting a ...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request "><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> I'm using a guard to protect a route (<strong>View Two</strong>). User can go from <strong>View One</strong> to <strong>View Two</strong>. Guard checks if application has some state. If not, the guard redirect the user on a dedicated page (<strong>View State</strong>). On that page user will give the expected state to application. After that, I do a <strong>location.back()</strong>. This calls send back the user on page <strong>View One</strong> not on <strong>View Two</strong>.</p> <p dir="auto"><strong>Expected behavior</strong><br> I will like that 'location.back()' back to the cancelled route (<strong>View Two</strong>)</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="https://plnkr.co/edit/wxRFQlXNyClzLStcKtZQ?p=preview" rel="nofollow">A demonstration on plunkr</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> In my application, there are optional pages (optional functionalities). Those pages can be accessed only if some configurations has been done before. When users try to navigate to those pages for the first time, I redirect them to the configuration pages. On those configuration pages, I want to use 'location.back()' to back to the cancelled routes.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li> <p dir="auto"><strong>Environment:</strong> Windows 7, Atom, npm, Webpack-dev-server</p> </li> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.8</p> </li> <li> <p dir="auto"><strong>Browser:</strong> all</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.1.5</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.9.5</p> </li> </ul>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">yum</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">No changes to ansible.cfg, and no ANSIBLE_* environment variables are set</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Control machine: Arch Linux x64<br> Target machine: CentOS 6 and CentOS 7</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">yum module does not respect disablerepo and enablerepo while querying the RPM packages (repoquery)<br> If one of the repos, whose enabled is set to 1 in /etc/yum.repos.d/, is temporarily unavailable, even it's has been listed in disablerepo argument, yum module will still fail.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Fresh install a CentOS 7, then intentionally add a repo config as /etc/yum.repos.d/unavailable.repo</p> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[unavailable] name=unavailable repo baseurl=http://localhost/does/not/exist enabled=1 gpgcheck=0"><pre class="notranslate"><span class="pl-en">[unavailable]</span> <span class="pl-k">name</span>=unavailable repo <span class="pl-k">baseurl</span>=http://localhost/does/not/exist <span class="pl-k">enabled</span>=1 <span class="pl-k">gpgcheck</span>=0</pre></div> <p dir="auto">Then from control machine, issue the following command for querying packages on CentOS</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible CENTOS7 -vvvv -m yum -a 'disablerepo=* enablerepo=base list=zlib'"><pre class="notranslate"><code class="notranslate">ansible CENTOS7 -vvvv -m yum -a 'disablerepo=* enablerepo=base list=zlib' </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/packaging/os/yum.py &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo ~/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901 `&quot; &amp;&amp; echo ansible-tmp-1490192981.95-117749880161901=&quot;` echo ~/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;172.16.3.118&gt; PUT /tmp/tmpM2ZNYY TO /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[172.16.3.118]' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/ /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 172.16.3.118 '/bin/sh -c '&quot;'&quot;'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' 172.16.3.118 | SUCCESS =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;conf_file&quot;: null, &quot;disable_gpg_check&quot;: false, &quot;disablerepo&quot;: &quot;*&quot;, &quot;enablerepo&quot;: &quot;base&quot;, &quot;exclude&quot;: null, &quot;install_repoquery&quot;: true, &quot;list&quot;: &quot;zlib&quot;, &quot;name&quot;: null, &quot;state&quot;: &quot;installed&quot;, &quot;update_cache&quot;: false, &quot;validate_certs&quot;: true }, &quot;module_name&quot;: &quot;yum&quot; }, &quot;results&quot;: [ { &quot;arch&quot;: &quot;x86_64&quot;, &quot;epoch&quot;: &quot;0&quot;, &quot;name&quot;: &quot;zlib&quot;, &quot;nevra&quot;: &quot;0:zlib-1.2.7-15.el7.x86_64&quot;, &quot;release&quot;: &quot;15.el7&quot;, &quot;repo&quot;: &quot;installed&quot;, &quot;version&quot;: &quot;1.2.7&quot;, &quot;yumstate&quot;: &quot;installed&quot; }, { &quot;arch&quot;: &quot;i686&quot;, &quot;epoch&quot;: &quot;0&quot;, &quot;name&quot;: &quot;zlib&quot;, &quot;nevra&quot;: &quot;0:zlib-1.2.7-17.el7.i686&quot;, &quot;release&quot;: &quot;17.el7&quot;, &quot;repo&quot;: &quot;base&quot;, &quot;version&quot;: &quot;1.2.7&quot;, &quot;yumstate&quot;: &quot;available&quot; }, { &quot;arch&quot;: &quot;x86_64&quot;, &quot;epoch&quot;: &quot;0&quot;, &quot;name&quot;: &quot;zlib&quot;, &quot;nevra&quot;: &quot;0:zlib-1.2.7-17.el7.x86_64&quot;, &quot;release&quot;: &quot;17.el7&quot;, &quot;repo&quot;: &quot;base&quot;, &quot;version&quot;: &quot;1.2.7&quot;, &quot;yumstate&quot;: &quot;available&quot; } ] }"><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/packaging/os/yum.py &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901 `" &amp;&amp; echo ansible-tmp-1490192981.95-117749880161901="` echo ~/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901 `" ) &amp;&amp; sleep 0'"'"'' &lt;172.16.3.118&gt; PUT /tmp/tmpM2ZNYY TO /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[172.16.3.118]' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/ /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py &amp;&amp; sleep 0'"'"'' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 172.16.3.118 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/yum.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1490192981.95-117749880161901/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' 172.16.3.118 | SUCCESS =&gt; { "changed": false, "invocation": { "module_args": { "conf_file": null, "disable_gpg_check": false, "disablerepo": "*", "enablerepo": "base", "exclude": null, "install_repoquery": true, "list": "zlib", "name": null, "state": "installed", "update_cache": false, "validate_certs": true }, "module_name": "yum" }, "results": [ { "arch": "x86_64", "epoch": "0", "name": "zlib", "nevra": "0:zlib-1.2.7-15.el7.x86_64", "release": "15.el7", "repo": "installed", "version": "1.2.7", "yumstate": "installed" }, { "arch": "i686", "epoch": "0", "name": "zlib", "nevra": "0:zlib-1.2.7-17.el7.i686", "release": "17.el7", "repo": "base", "version": "1.2.7", "yumstate": "available" }, { "arch": "x86_64", "epoch": "0", "name": "zlib", "nevra": "0:zlib-1.2.7-17.el7.x86_64", "release": "17.el7", "repo": "base", "version": "1.2.7", "yumstate": "available" } ] } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/packaging/os/yum.py &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo ~/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751 `&quot; &amp;&amp; echo ansible-tmp-1490193076.22-207032486798751=&quot;` echo ~/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;172.16.3.118&gt; PUT /tmp/tmpuTFEqF TO /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[172.16.3.118]' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/ /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 172.16.3.118 '/bin/sh -c '&quot;'&quot;'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' 172.16.3.118 | FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;conf_file&quot;: null, &quot;disable_gpg_check&quot;: false, &quot;disablerepo&quot;: &quot;*&quot;, &quot;enablerepo&quot;: &quot;base&quot;, &quot;exclude&quot;: null, &quot;install_repoquery&quot;: true, &quot;list&quot;: &quot;zlib&quot;, &quot;name&quot;: null, &quot;state&quot;: &quot;installed&quot;, &quot;update_cache&quot;: false, &quot;validate_certs&quot;: true }, &quot;module_name&quot;: &quot;yum&quot; }, &quot;msg&quot;: &quot;Error from repoquery: ['/usr/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '--disablerepo', '', '--enablerepo', '', '--qf', '%{name}|%{epoch}|%{version}|%{release}|%{arch}|%{repoid}', 'zlib']: Could not match packages: failure: repodata/repomd.xml from unavailable: [Errno 256] No more mirrors to try.\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \&quot;Failed connect to localhost:80; Connection refused\&quot;\n&quot;"><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/packaging/os/yum.py &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751 `" &amp;&amp; echo ansible-tmp-1490193076.22-207032486798751="` echo ~/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751 `" ) &amp;&amp; sleep 0'"'"'' &lt;172.16.3.118&gt; PUT /tmp/tmpuTFEqF TO /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[172.16.3.118]' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.16.3.118 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/ /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py &amp;&amp; sleep 0'"'"'' &lt;172.16.3.118&gt; ESTABLISH SSH CONNECTION FOR USER: root &lt;172.16.3.118&gt; SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 172.16.3.118 '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/yum.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1490193076.22-207032486798751/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' 172.16.3.118 | FAILED! =&gt; { "changed": false, "failed": true, "invocation": { "module_args": { "conf_file": null, "disable_gpg_check": false, "disablerepo": "*", "enablerepo": "base", "exclude": null, "install_repoquery": true, "list": "zlib", "name": null, "state": "installed", "update_cache": false, "validate_certs": true }, "module_name": "yum" }, "msg": "Error from repoquery: ['/usr/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '--disablerepo', '', '--enablerepo', '', '--qf', '%{name}|%{epoch}|%{version}|%{release}|%{arch}|%{repoid}', 'zlib']: Could not match packages: failure: repodata/repomd.xml from unavailable: [Errno 256] No more mirrors to try.\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\nhttp://localhost/does/not/exist/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to localhost:80; Connection refused\"\n" </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lineinfile</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0 (devel db8fd95d68) last updated 2017/02/06 16:21:29 (GMT +200)"><pre class="notranslate"><code class="notranslate">ansible 2.3.0 (devel db8fd95d68) last updated 2017/02/06 16:21:29 (GMT +200) </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">nothing special</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Running on macOS 10.12 against SLES-12.2</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">My playbook adds line(s) to a config file.<br> The line(s) looks like a python or json dictionary.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">dest file on server:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="instances = [ {&quot;port&quot; : 12184, &quot;instance&quot; : &quot;zookeeper-2184&quot;}, {&quot;port&quot; : 12183, &quot;instance&quot; : &quot;zookeeper-2183&quot;}, {&quot;port&quot; : 12182, &quot;instance&quot; : &quot;zookeeper-2182&quot;}, {&quot;port&quot; : 12181, &quot;instance&quot; : &quot;zookeeper-2181&quot;}, ]"><pre class="notranslate"><code class="notranslate">instances = [ {"port" : 12184, "instance" : "zookeeper-2184"}, {"port" : 12183, "instance" : "zookeeper-2183"}, {"port" : 12182, "instance" : "zookeeper-2182"}, {"port" : 12181, "instance" : "zookeeper-2181"}, ] </code></pre></div> <p dir="auto">Playbook to show the bug</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: testserver remote_user: root vars: - ZOOKEEPERPORT: 2222 - bla: abc tasks: - name: add line to config - integer variable lineinfile: dest: /root/test_jolokia.cfg line: &quot;{\&quot;port\&quot; : 1{{ ZOOKEEPERPORT }}, \&quot;instance\&quot; : \&quot;zookeeper-{{ ZOOKEEPERPORT }}\&quot;},&quot; state: present insertafter: &quot;^instances = &quot; - name: add line to config - string variable lineinfile: dest: /root/test_jolokia.cfg line: &quot;{\&quot;port\&quot; : 1{{ bla }}, \&quot;instance\&quot; : \&quot;zookeeper-{{ bla }}\&quot;},&quot; state: present insertafter: &quot;^instances = &quot; - name: add line to config - fixed string lineinfile: dest: /root/test_jolokia.cfg line: &quot;{\&quot;port\&quot; : 11111, \&quot;instance\&quot; : \&quot;zookeeper-1111\&quot;},&quot; state: present insertafter: &quot;^instances = &quot;"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">testserver</span> <span class="pl-ent">remote_user</span>: <span class="pl-s">root</span> <span class="pl-ent">vars</span>: - <span class="pl-ent">ZOOKEEPERPORT</span>: <span class="pl-c1">2222</span> - <span class="pl-ent">bla</span>: <span class="pl-s">abc</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">add line to config - integer variable</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">dest</span>: <span class="pl-s">/root/test_jolokia.cfg</span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span>{<span class="pl-cce">\"</span>port<span class="pl-cce">\"</span> : 1{{ ZOOKEEPERPORT }}, <span class="pl-cce">\"</span>instance<span class="pl-cce">\"</span> : <span class="pl-cce">\"</span>zookeeper-{{ ZOOKEEPERPORT }}<span class="pl-cce">\"</span>},<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present </span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">"</span>^instances = <span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">add line to config - string variable</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">dest</span>: <span class="pl-s">/root/test_jolokia.cfg</span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span>{<span class="pl-cce">\"</span>port<span class="pl-cce">\"</span> : 1{{ bla }}, <span class="pl-cce">\"</span>instance<span class="pl-cce">\"</span> : <span class="pl-cce">\"</span>zookeeper-{{ bla }}<span class="pl-cce">\"</span>},<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present </span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">"</span>^instances = <span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">add line to config - fixed string</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">dest</span>: <span class="pl-s">/root/test_jolokia.cfg</span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span>{<span class="pl-cce">\"</span>port<span class="pl-cce">\"</span> : 11111, <span class="pl-cce">\"</span>instance<span class="pl-cce">\"</span> : <span class="pl-cce">\"</span>zookeeper-1111<span class="pl-cce">\"</span>},<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present </span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">"</span>^instances = <span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">There should be 3 additional lines like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="instances = [ {&quot;port&quot; : 11111, &quot;instance&quot; : &quot;zookeeper-1111&quot;}, {&quot;port&quot; : 1abc, &quot;instance&quot; : &quot;zookeeper-abc&quot;}, {&quot;port&quot; : 12222, &quot;instance&quot; : &quot;zookeeper-2222&quot;}, {&quot;port&quot; : 12184, &quot;instance&quot; : &quot;zookeeper-2184&quot;}, {&quot;port&quot; : 12183, &quot;instance&quot; : &quot;zookeeper-2183&quot;}, {&quot;port&quot; : 12182, &quot;instance&quot; : &quot;zookeeper-2182&quot;}, {&quot;port&quot; : 12181, &quot;instance&quot; : &quot;zookeeper-2181&quot;}, ]"><pre class="notranslate"><code class="notranslate">instances = [ {"port" : 11111, "instance" : "zookeeper-1111"}, {"port" : 1abc, "instance" : "zookeeper-abc"}, {"port" : 12222, "instance" : "zookeeper-2222"}, {"port" : 12184, "instance" : "zookeeper-2184"}, {"port" : 12183, "instance" : "zookeeper-2183"}, {"port" : 12182, "instance" : "zookeeper-2182"}, {"port" : 12181, "instance" : "zookeeper-2181"}, ] </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The line with the integer variable is converted to a list with one dictionary item and then added to the file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="instances = [ {&quot;port&quot; : 11111, &quot;instance&quot; : &quot;zookeeper-1111&quot;}, {&quot;port&quot; : 1abc, &quot;instance&quot; : &quot;zookeeper-abc&quot;}, [{'instance': 'zookeeper-2222', 'port': 12222}] {&quot;port&quot; : 12184, &quot;instance&quot; : &quot;zookeeper-2184&quot;}, {&quot;port&quot; : 12183, &quot;instance&quot; : &quot;zookeeper-2183&quot;}, {&quot;port&quot; : 12182, &quot;instance&quot; : &quot;zookeeper-2182&quot;}, {&quot;port&quot; : 12181, &quot;instance&quot; : &quot;zookeeper-2181&quot;}, ]"><pre class="notranslate"><code class="notranslate">instances = [ {"port" : 11111, "instance" : "zookeeper-1111"}, {"port" : 1abc, "instance" : "zookeeper-abc"}, [{'instance': 'zookeeper-2222', 'port': 12222}] {"port" : 12184, "instance" : "zookeeper-2184"}, {"port" : 12183, "instance" : "zookeeper-2183"}, {"port" : 12182, "instance" : "zookeeper-2182"}, {"port" : 12181, "instance" : "zookeeper-2181"}, ] </code></pre></div> <p dir="auto">In the output of ansible-playbook -vvv the three lines appear as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[...] &quot;line&quot;: &quot;[{'instance': 'zookeeper-2222', 'port': 12222}]&quot;, [...] &quot;line&quot;: &quot;{\&quot;port\&quot; : 1abc, \&quot;instance\&quot; : \&quot;zookeeper-abc\&quot;},&quot;, [...] &quot;line&quot;: &quot;{\&quot;port\&quot; : 11111, \&quot;instance\&quot; : \&quot;zookeeper-1111\&quot;},&quot;, [...]"><pre class="notranslate"><code class="notranslate">[...] "line": "[{'instance': 'zookeeper-2222', 'port': 12222}]", [...] "line": "{\"port\" : 1abc, \"instance\" : \"zookeeper-abc\"},", [...] "line": "{\"port\" : 11111, \"instance\" : \"zookeeper-1111\"},", [...] </code></pre></div> <h5 dir="auto">WORKAROUND</h5> <p dir="auto">My workaround is to add one space to the beginning of the line, then it works as it should:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- [...] - name: add line to config - integer variable lineinfile: dest: /root/test_jolokia.cfg line: &quot; {\&quot;port\&quot; : 1{{ ZOOKEEPERPORT }}, \&quot;instance\&quot; : \&quot;zookeeper-{{ ZOOKEEPERPORT }}\&quot;},&quot; state: present insertafter: &quot;^instances = &quot; [...]"><pre class="notranslate">--- <span class="pl-s">[...]</span> - <span class="pl-ent">name</span>: <span class="pl-s">add line to config - integer variable</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">dest</span>: <span class="pl-s">/root/test_jolokia.cfg</span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span> {<span class="pl-cce">\"</span>port<span class="pl-cce">\"</span> : 1{{ ZOOKEEPERPORT }}, <span class="pl-cce">\"</span>instance<span class="pl-cce">\"</span> : <span class="pl-cce">\"</span>zookeeper-{{ ZOOKEEPERPORT }}<span class="pl-cce">\"</span>},<span class="pl-pds">"</span></span> <span class="pl-ent">state</span>: <span class="pl-s">present </span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">"</span>^instances = <span class="pl-pds">"</span></span> <span class="pl-s">[...]</span></pre></div> <p dir="auto">dest file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="instances = [ {&quot;port&quot; : 11111, &quot;instance&quot; : &quot;zookeeper-1111&quot;}, {&quot;port&quot; : 1abc, &quot;instance&quot; : &quot;zookeeper-abc&quot;}, {&quot;port&quot; : 12222, &quot;instance&quot; : &quot;zookeeper-2222&quot;}, {&quot;port&quot; : 12184, &quot;instance&quot; : &quot;zookeeper-2184&quot;}, {&quot;port&quot; : 12183, &quot;instance&quot; : &quot;zookeeper-2183&quot;}, {&quot;port&quot; : 12182, &quot;instance&quot; : &quot;zookeeper-2182&quot;}, {&quot;port&quot; : 12181, &quot;instance&quot; : &quot;zookeeper-2181&quot;}, ]"><pre class="notranslate"><code class="notranslate">instances = [ {"port" : 11111, "instance" : "zookeeper-1111"}, {"port" : 1abc, "instance" : "zookeeper-abc"}, {"port" : 12222, "instance" : "zookeeper-2222"}, {"port" : 12184, "instance" : "zookeeper-2184"}, {"port" : 12183, "instance" : "zookeeper-2183"}, {"port" : 12182, "instance" : "zookeeper-2182"}, {"port" : 12181, "instance" : "zookeeper-2181"}, ] </code></pre></div> <p dir="auto">The fixed line in verbose output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;line&quot;: &quot; {\&quot;port\&quot; : 12222, \&quot;instance\&quot; : \&quot;zookeeper-2222\&quot;},&quot;,"><pre class="notranslate"><code class="notranslate">"line": " {\"port\" : 12222, \"instance\" : \"zookeeper-2222\"},", </code></pre></div>
0
<h4 dir="auto">Reproducing code example:</h4> <p dir="auto">scipy test fails</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import scipy &gt;&gt;&gt; scipy.test()"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import scipy &gt;&gt;&gt; scipy.test() </code></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="=================================== FAILURES =================================== ____________________________ test_tolerance_float32 ____________________________ @pytest.mark.xfail(platform.machine() == 'ppc64le', reason=&quot;fails on ppc64le&quot;) def test_tolerance_float32(): &quot;&quot;&quot;Check lobpcg for attainable tolerance in float32. &quot;&quot;&quot; np.random.seed(1234) n = 50 m = 3 vals = -np.arange(1, n + 1) A = diags([vals], [0], (n, n)) A = A.astype(np.float32) X = np.random.randn(n, m) X = X.astype(np.float32) eigvals, _ = lobpcg(A, X, tol=1e-9, maxiter=50, verbosityLevel=0) &gt; assert_allclose(eigvals, -np.arange(1, 1 + m), atol=1e-5) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=1e-05 E E Mismatched elements: 1 / 3 (33.3%) E Max absolute difference: 0.01461172 E Max relative difference: 0.00487057 E x: array([-1. , -1.999997, -3.014612], dtype=float32) E y: array([-1, -2, -3]) A = &lt;50x50 sparse matrix of type '&lt;class 'numpy.float32'&gt;' with 50 stored elements (1 diagonals) in DIAgonal format&gt; X = array([[ 4.71435159e-01, -1.19097567e+00, 1.43270695e+00], [-3.12651902e-01, -7.20588744e-01, 8.87162924e-01]...241e+00, -5.24336100e-01, 7.00907707e-01], [ 9.84188080e-01, -1.21728405e-01, 2.36576867e+00]], dtype=float32) _ = array([[-1.00000000e+00, 2.00615219e-12, -2.44451428e-08], [ 1.97884764e-12, 1.00000012e+00, -7.59038812e-07]...590e-08, -1.29014893e-07, -3.75821907e-03], [ 7.36326111e-09, 1.62651048e-08, 1.63773284e-03]], dtype=float32) eigvals = array([-1. , -1.9999971, -3.0146117], dtype=float32) m = 3 n = 50 vals = array([ -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21,..., -29, -30, -31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, -42, -43, -44, -45, -46, -47, -48, -49, -50]) lib/python3.8/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py:288: AssertionError =========================== short test summary info ============================ FAILED lib/python3.8/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py::test_tolerance_float32 = 1 failed, 19510 passed, 1332 skipped, 10954 deselected, 78 xfailed, 7 xpassed in 370.28s (0:06:10) = False "><pre class="notranslate"><code class="notranslate">=================================== FAILURES =================================== ____________________________ test_tolerance_float32 ____________________________ @pytest.mark.xfail(platform.machine() == 'ppc64le', reason="fails on ppc64le") def test_tolerance_float32(): """Check lobpcg for attainable tolerance in float32. """ np.random.seed(1234) n = 50 m = 3 vals = -np.arange(1, n + 1) A = diags([vals], [0], (n, n)) A = A.astype(np.float32) X = np.random.randn(n, m) X = X.astype(np.float32) eigvals, _ = lobpcg(A, X, tol=1e-9, maxiter=50, verbosityLevel=0) &gt; assert_allclose(eigvals, -np.arange(1, 1 + m), atol=1e-5) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=1e-05 E E Mismatched elements: 1 / 3 (33.3%) E Max absolute difference: 0.01461172 E Max relative difference: 0.00487057 E x: array([-1. , -1.999997, -3.014612], dtype=float32) E y: array([-1, -2, -3]) A = &lt;50x50 sparse matrix of type '&lt;class 'numpy.float32'&gt;' with 50 stored elements (1 diagonals) in DIAgonal format&gt; X = array([[ 4.71435159e-01, -1.19097567e+00, 1.43270695e+00], [-3.12651902e-01, -7.20588744e-01, 8.87162924e-01]...241e+00, -5.24336100e-01, 7.00907707e-01], [ 9.84188080e-01, -1.21728405e-01, 2.36576867e+00]], dtype=float32) _ = array([[-1.00000000e+00, 2.00615219e-12, -2.44451428e-08], [ 1.97884764e-12, 1.00000012e+00, -7.59038812e-07]...590e-08, -1.29014893e-07, -3.75821907e-03], [ 7.36326111e-09, 1.62651048e-08, 1.63773284e-03]], dtype=float32) eigvals = array([-1. , -1.9999971, -3.0146117], dtype=float32) m = 3 n = 50 vals = array([ -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21,..., -29, -30, -31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, -42, -43, -44, -45, -46, -47, -48, -49, -50]) lib/python3.8/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py:288: AssertionError =========================== short test summary info ============================ FAILED lib/python3.8/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py::test_tolerance_float32 = 1 failed, 19510 passed, 1332 skipped, 10954 deselected, 78 xfailed, 7 xpassed in 370.28s (0:06:10) = False </code></pre></div> <p dir="auto">After running test, I exited python and got these</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; exit() Normal return from subroutine COBYLA NFVALS = 50 F = 2.485185E+01 MAXCV = 1.999965E-10 X = 4.955358E+00 6.666553E-01 NNLS quitting on iteration count."><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; exit() Normal return from subroutine COBYLA NFVALS = 50 F = 2.485185E+01 MAXCV = 1.999965E-10 X = 4.955358E+00 6.666553E-01 NNLS quitting on iteration count. </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">scipy 1.4.1<br> numpy 1.18.4<br> python 3.8.2</p> <p dir="auto">OS ubuntu 16.04, python installed from source.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1314" rel="nofollow">http://projects.scipy.org/scipy/ticket/1314</a> on 2010-10-18 by trac user markMiscavage, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p> <p dir="auto">I have this bug in a larger program but I've narrowed it down to a script consisting of just :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys import scipy.sparse.sparsetools sys.exit(&quot;EXIT&quot;)"><pre class="notranslate"><code class="notranslate">import sys import scipy.sparse.sparsetools sys.exit("EXIT") </code></pre></div> <p dir="auto">This will always exit with code 0. It seems it is the .pyd files in the sparsetools folder that are the source of this problem. I have the same problem in both 0.7.1 and 0.8.0 builds of scipy. I am using python 2.6 on a Windows 7 - 64 bit system.</p>
0
<p dir="auto">This was posted onto stackoverflow but it seems more like a bug than anything:</p> <p dir="auto"><a href="http://stackoverflow.com/questions/43242246/pandas-dataframe-groupby-failed-zooming-for-x-axis-ticks" rel="nofollow">http://stackoverflow.com/questions/43242246/pandas-dataframe-groupby-failed-zooming-for-x-axis-ticks</a></p>
<p dir="auto">As pointed out here (<a href="https://stackoverflow.com/questions/24468333/set-xlim-for-pandas-matplotlib-where-index-is-string/24477138#24477138" rel="nofollow">https://stackoverflow.com/questions/24468333/set-xlim-for-pandas-matplotlib-where-index-is-string/24477138#24477138</a>) if the index of a data frame is objects (that is not, the index obviously convertible to scalars and the data is being plotted against <code class="notranslate">range(len(df))</code>), the ticklabels are set to be string representations of the objects (I presume via <code class="notranslate">set_xticklabels</code>) but the locator is still a <code class="notranslate">AutoLocator</code> which means if you change the xlimits or pan/zoom the axes, the ticklabels become de-coupled from the data.</p> <p dir="auto">A solution is to also use a fixed locator which will pin the ticks to only be on the index locations.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mticker df = pd.DataFrame({'Foo': pd.Series([2,3,4], index=['2002', '2003', '2004'])}) fig, ax = plt.subplots() df.plot(ax=ax) ax.xaxis.set_major_locator(mticker.FixedLocator(np.arange(len(df)))) ax.xaxis.set_major_formatter(mticker.FixedFormatter(df.index))"><pre class="notranslate"><code class="notranslate">import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mticker df = pd.DataFrame({'Foo': pd.Series([2,3,4], index=['2002', '2003', '2004'])}) fig, ax = plt.subplots() df.plot(ax=ax) ax.xaxis.set_major_locator(mticker.FixedLocator(np.arange(len(df)))) ax.xaxis.set_major_formatter(mticker.FixedFormatter(df.index)) </code></pre></div> <p dir="auto">I can make changes to the code if someone points me to where the relevant section is.</p>
1
<ul dir="auto"> <li>Install Code Alpha only.</li> <li>Check add code to path.</li> <li>in command type code or codeAlpha</li> </ul> <p dir="auto">Observe: both fail.</p> <p dir="auto">code.cmd refers to Code.exe, however in Alpha channel code is named CodeAlpha.</p>
<p dir="auto">For import statement in typescript it would be nice if we can reference an object in a class (for e,g.) and the IDE can write (when you click on the object reference Foo in example below) an import statement for you.<br> For e.g.</p> <p dir="auto"><code class="notranslate">import {Foo} from "../../../bar/somelongpath/foo"</code></p> <p dir="auto"><code class="notranslate">export class Test {</code><br> <code class="notranslate">private f: Foo;</code><br> <code class="notranslate">}</code></p> <p dir="auto">Webstorm already provides this and it makes a lot of difference (productivitywise) as you dont have to manually type and figure out the path to the import statement.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 2004 19041.329 PowerToys version: 19 PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: 2004 19041.329 PowerToys version: 19 PowerToy module for which you are reporting the bug (if applicable): </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Press the Space Bar in most applications, I get the Power Toys search, even with all modules disabled. Notably Adobe Premiere Pro, Edge Chromium, Chrome.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The space bar works as its supposed to.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The Power Toys search appears, blocking the space bar input from the intended application even when all modules are disabled.</p> <h1 dir="auto">Screenshots</h1>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt] PowerToys version: 0.19 PowerToy module for which you are reporting the bug (if applicable): PT Run"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] PowerToys version: 0.19 PowerToy module for which you are reporting the bug (if applicable): PT Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Remap key from alt-space to win-space<br> execute shortcut multiple times</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">don't have start menu false positive executions</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Lots of start menu executions</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When the form control of an input is changed (e.g. async pipe), the HTML element disabled property is not properly updated to the one on the new form control.</p> <p dir="auto"><strong>Expected behavior</strong><br> The HTMLElement disabled property should be synchronised with the one of the corresponding FormControl associated.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Here's a plunkr <a href="https://plnkr.co/edit/WL7DjZHHmzLR8o5NBO1R?p=preview" rel="nofollow">https://plnkr.co/edit/WL7DjZHHmzLR8o5NBO1R?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> We use dynamic forms with a BehaviorSubject of the formGroup to use. When new forms are pushed, all the values work fine, but the disabled properties don't get updated properly.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Mac OS X 10.12.3</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.9<br> Happens in 2.4.9. Will check in current 4RC now and update the issue.</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.2</p> </li> </ul>
<h2 dir="auto">I'm submitting a ...</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] Bug report"><pre class="notranslate"><code class="notranslate">[X] Bug report</code></pre></div> <h2 dir="auto">Current behavior</h2> <p dir="auto">When setting new <code class="notranslate">FormControl</code> instance to <code class="notranslate">[formControl]</code>/<code class="notranslate">formControlName</code> directive the <strong>disabled</strong> property/attribute of control DOM element <strong>does not update</strong> to the newest value.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">When setting new <code class="notranslate">FormControl</code> instance to <code class="notranslate">[formControl]</code>/<code class="notranslate">formControlName</code> directive the <strong>disabled</strong> property/attribute of control DOM element <strong>should reflect</strong> the newest value.</p> <h2 dir="auto">Minimal reproduction of the problem with instructions</h2> <p dir="auto"><a href="http://plnkr.co/edit/g5yxZRs8PvJWPAIag7wj?p=preview" rel="nofollow">http://plnkr.co/edit/g5yxZRs8PvJWPAIag7wj?p=preview</a></p> <h2 dir="auto">Please tell us about your environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Angular version: 4.2.4 Browser: - [X] Chrome (desktop) version 58.0"><pre class="notranslate"><code class="notranslate">Angular version: 4.2.4 Browser: - [X] Chrome (desktop) version 58.0 </code></pre></div>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 8.1 Pro<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Luka\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: {}, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: {}, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User Remote-FTP, v0.7.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> Remote<span class="pl-k">-</span>FTP, v0.<span class="pl-ii">7</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">When I put excel into a zone and do ctrl+f, the find window appears as the same size as the zone.</p> <p dir="auto">btw, fancyzones is awesome!!! :)</p> <h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18363.836]</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run &quot;ver&quot; at a command prompt] PowerToys version: 17 PowerToy module for which you are reporting the bug (if applicable): fancyzones"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] PowerToys version: 17 PowerToy module for which you are reporting the bug (if applicable): fancyzones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">open excel, put it into a zone, and then hit ctrl+F</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">the find box should appear with a normal size.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">appears the size of the zone</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/62632530/82334088-7f2ce380-99b5-11ea-8bfc-4543e0c0ccfd.png"><img src="https://user-images.githubusercontent.com/62632530/82334088-7f2ce380-99b5-11ea-8bfc-4543e0c0ccfd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This applies to 0.14.1 and also to the current master.</p> <p dir="auto">Repro steps:</p> <ul dir="auto"> <li>have "Move newly created windows to their last known zone" ON.</li> <li>open Outlook and snap it to a zone.</li> <li>open an email message or create a new email message.</li> </ul> <p dir="auto">Result:</p> <ul dir="auto"> <li>the email message window is snapped to the zone where Outlook is snapped.</li> </ul> <p dir="auto">Expected:</p> <ul dir="auto"> <li>the email message window is opened where it was last used.</li> </ul> <p dir="auto">Moving the email message window somewhere else will "fix" the problem, subsequent email messages will be opened where they were last used and not snapped to the zone.<br> Snapping Outlook to a new zone will bring back the bug.</p>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">OS X 10.9.3</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Notification is executed when task was not changed.<br> This behaviour occurs only on ansible 1.6.2 - earlier versions are ok.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Simple play:<br> tasks:<br> - name: write /etc/ntp<br> copy: src=ntp.conf dest=/etc/ntp.conf owner=root group=root mode=0644<br> notify: restart ntp</p> <p dir="auto">handlers:<br> - name: restart ntp<br> service: name=ntp state=restarted</p> <p dir="auto">Two hosts: c01, c02. File /etc/ntp.conf is different than source on c01.</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">TASK: [write /etc/ntp] ********************************************************<br> ok: [c02]<br> changed: [c01]</p> <p dir="auto">NOTIFIED: [restart ntp] *******************************************************<br> changed: [c01]</p> <p dir="auto">PLAY RECAP ********************************************************************<br> c01 : ok=3 changed=2 unreachable=0 failed=0<br> c02 : ok=2 changed=0 unreachable=0 failed=0</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">TASK: [write /etc/ntp] ********************************************************<br> ok: [c02]<br> changed: [c01]</p> <p dir="auto">NOTIFIED: [restart ntp] *******************************************************<br> changed: [c01]<br> changed: [c02]</p> <p dir="auto">PLAY RECAP ********************************************************************<br> c01 : ok=3 changed=2 unreachable=0 failed=0<br> c02 : ok=3 changed=1 unreachable=0 failed=0</p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Running from OS X 10.9.3<br> Managing RHEL 6.5, Fedora 20</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When a change is detected in a specific host handlers run on every host, even in ones without changes</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drybjed/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drybjed">@drybjed</a> confirmed this bug and told me it is not present in 1.6.0 and it is related to this <a href="https://github.com/ansible/ansible/issues/7446" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/7446/hovercard">issue</a> and <a href="https://github.com/ansible/ansible/commit/e36a8d466e5ace049a18334f9ee4c07cc44bfb91">commit</a></p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Run a playbook like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - name: all hosts hosts: all user: root tasks: - name: foo copy: src=/tmp/foo.conf dest=/tmp/foo.conf owner=root group=root mode=0644 notify: - restart ntpd handlers: - include: &quot;../../handlers/restart_services.yml&quot;"><pre class="notranslate"><code class="notranslate"> --- - name: all hosts hosts: all user: root tasks: - name: foo copy: src=/tmp/foo.conf dest=/tmp/foo.conf owner=root group=root mode=0644 notify: - restart ntpd handlers: - include: "../../handlers/restart_services.yml" </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">handlers run only on notified hosts</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">handlers run on every host in the playbook, even in ones without changes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all hosts] ************************************************************** GATHERING FACTS *************************************************************** ok: [host1.domain] ok: [host2.domain] ok: [host3.domain] TASK: [foo] ******************************************************************* ok: [host1.domain] =&gt; {&quot;changed&quot;: false, &quot;dest&quot;: &quot;/tmp/foo.conf&quot;, &quot;gid&quot;: 0, &quot;group&quot;: &quot;root&quot;, &quot;md5sum&quot;: &quot;d41d8cd98f00b204e9800998ecf8427e&quot;, &quot;mode&quot;: &quot;0644&quot;, &quot;owner&quot;: &quot;root&quot;, &quot;path&quot;: &quot;/tmp/foo.conf&quot;, &quot;secontext&quot;: &quot;unconfined_u:object_r:admin_home_t:s0&quot;, &quot;size&quot;: 0, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 0} ok: [host2.domain] =&gt; {&quot;changed&quot;: false, &quot;dest&quot;: &quot;/tmp/foo.conf&quot;, &quot;gid&quot;: 0, &quot;group&quot;: &quot;root&quot;, &quot;md5sum&quot;: &quot;d41d8cd98f00b204e9800998ecf8427e&quot;, &quot;mode&quot;: &quot;0644&quot;, &quot;owner&quot;: &quot;root&quot;, &quot;path&quot;: &quot;/tmp/foo.conf&quot;, &quot;secontext&quot;: &quot;unconfined_u:object_r:admin_home_t:s0&quot;, &quot;size&quot;: 0, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 0} changed: [host3.domain] =&gt; {&quot;changed&quot;: true, &quot;dest&quot;: &quot;/tmp/foo.conf&quot;, &quot;gid&quot;: 0, &quot;group&quot;: &quot;root&quot;, &quot;md5sum&quot;: &quot;d41d8cd98f00b204e9800998ecf8427e&quot;, &quot;mode&quot;: &quot;0644&quot;, &quot;owner&quot;: &quot;root&quot;, &quot;secontext&quot;: &quot;unconfined_u:object_r:admin_home_t:s0&quot;, &quot;size&quot;: 0, &quot;src&quot;: &quot;/root/.ansible/tmp/ansible-tmp-1401171805.31-244401036446552/source&quot;, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 0} NOTIFIED: [restart ntpd] ****************************************************** changed: [host1.domain] =&gt; {&quot;changed&quot;: true, &quot;item&quot;: &quot;&quot;, &quot;name&quot;: &quot;ntpd&quot;, &quot;state&quot;: &quot;started&quot;} changed: [host2.domain] =&gt; {&quot;changed&quot;: true, &quot;item&quot;: &quot;&quot;, &quot;name&quot;: &quot;ntpd&quot;, &quot;state&quot;: &quot;started&quot;} changed: [host3.domain] =&gt; {&quot;changed&quot;: true, &quot;item&quot;: &quot;&quot;, &quot;name&quot;: &quot;ntpd&quot;, &quot;state&quot;: &quot;started&quot;} host2.domain : ok=3 changed=1 unreachable=0 failed=0 host1.domain : ok=3 changed=1 unreachable=0 failed=0 host3.domain : ok=3 changed=2 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY [all hosts] ************************************************************** GATHERING FACTS *************************************************************** ok: [host1.domain] ok: [host2.domain] ok: [host3.domain] TASK: [foo] ******************************************************************* ok: [host1.domain] =&gt; {"changed": false, "dest": "/tmp/foo.conf", "gid": 0, "group": "root", "md5sum": "d41d8cd98f00b204e9800998ecf8427e", "mode": "0644", "owner": "root", "path": "/tmp/foo.conf", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 0, "state": "file", "uid": 0} ok: [host2.domain] =&gt; {"changed": false, "dest": "/tmp/foo.conf", "gid": 0, "group": "root", "md5sum": "d41d8cd98f00b204e9800998ecf8427e", "mode": "0644", "owner": "root", "path": "/tmp/foo.conf", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 0, "state": "file", "uid": 0} changed: [host3.domain] =&gt; {"changed": true, "dest": "/tmp/foo.conf", "gid": 0, "group": "root", "md5sum": "d41d8cd98f00b204e9800998ecf8427e", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 0, "src": "/root/.ansible/tmp/ansible-tmp-1401171805.31-244401036446552/source", "state": "file", "uid": 0} NOTIFIED: [restart ntpd] ****************************************************** changed: [host1.domain] =&gt; {"changed": true, "item": "", "name": "ntpd", "state": "started"} changed: [host2.domain] =&gt; {"changed": true, "item": "", "name": "ntpd", "state": "started"} changed: [host3.domain] =&gt; {"changed": true, "item": "", "name": "ntpd", "state": "started"} host2.domain : ok=3 changed=1 unreachable=0 failed=0 host1.domain : ok=3 changed=1 unreachable=0 failed=0 host3.domain : ok=3 changed=2 unreachable=0 failed=0 </code></pre></div>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Currently you can only inject services into your constructor, ie.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Simple { constructor(element:ElementRef, http:Http, custom:CustomService1) { ... } }"><pre class="notranslate"><code class="notranslate">export class Simple { constructor(element:ElementRef, http:Http, custom:CustomService1) { ... } } </code></pre></div> <p dir="auto">So to extend this class i would have to get all of the dependencies again and pass them to the super. eg.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Complex extends Simple { constructor(element:ElementRef, http:Http, custom:CustomService1, custom2:CustomService2) { super(element, http, custom); this.custom2 = custom2; } }"><pre class="notranslate"><code class="notranslate">export class Complex extends Simple { constructor(element:ElementRef, http:Http, custom:CustomService1, custom2:CustomService2) { super(element, http, custom); this.custom2 = custom2; } } </code></pre></div> <p dir="auto">This get tedious when you need to add or change a dependency.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Lets use an optional Class Property Annotation so that we can leave all DI out of the constuctor if we want. eg:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Simple { @Inject() element:ElementRef; @Inject() http:Http; @Inject() custom:CustomService1; constructor() {} } export class Complex extends Simple { @Inject() custom2:CustomService; }"><pre class="notranslate"><code class="notranslate">export class Simple { @Inject() element:ElementRef; @Inject() http:Http; @Inject() custom:CustomService1; constructor() {} } export class Complex extends Simple { @Inject() custom2:CustomService; } </code></pre></div>
<p dir="auto">Currently, when classes with decorators are used in an inheritance chain, the results are undefined.</p> <p dir="auto">Consider the following two components:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({selector: 'a', inputs: ['metaFoo']) class A { @Input() fieldFoo; metaFoo; } @Component({selector: 'b', inputs: ['metaBar']} class B extends A { @Input() fieldBar; metaBar; }"><pre class="notranslate"><code class="notranslate">@Component({selector: 'a', inputs: ['metaFoo']) class A { @Input() fieldFoo; metaFoo; } @Component({selector: 'b', inputs: ['metaBar']} class B extends A { @Input() fieldBar; metaBar; } </code></pre></div> <p dir="auto">Currently, using component <code class="notranslate">B</code> in JIT mode does not cause an error, but only inputs <code class="notranslate">fieldBar</code> and <code class="notranslate">metaBar</code> will be understood by Angular. This is because the decorators result in properties being defined on the class functions, and those properties are subject to shadowing via prototypical inheritance. So <code class="notranslate">B.annotations</code> (where the <code class="notranslate">@Component</code> metadata lives) shadows <code class="notranslate">A.annotations</code>, and <code class="notranslate">B.propMetadata</code> (where the <code class="notranslate">@Input</code>s live) shadows <code class="notranslate">A.propMetadata</code>.</p> <p dir="auto">If the <code class="notranslate">@Input() fieldBar</code> from <code class="notranslate">B</code> is removed, however, then <code class="notranslate">B</code> will have no property metadata, and so the lookup for<code class="notranslate">B.propMetadata</code> will reach <code class="notranslate">A.propMetadata</code> via the prototype chain and suddenly the <code class="notranslate">fieldFoo</code> input will become visible to Angular.</p> <p dir="auto">There is no provision in the spec for inheritance of decorator metadata. However, Angular could be made to support well-defined rules of inheritance for its own decorators.</p> <p dir="auto">Here is one set of rules which I believe covers most of the cases where users attempt to inherit components:</p> <ul dir="auto"> <li>Class-level decorators (<code class="notranslate">@Component</code> and friends) have their metadata merged according to the merge rules: <ul dir="auto"> <li>Metadata objects are merged property by property.</li> <li>For properties with primitive values, a subclass value, if present, overwrites a superclass value.</li> <li>For properties with array values, the arrays are concatenated, superclass first.</li> <li>If the subclass provides no value, the superclass value, if present, is used.</li> </ul> </li> <li>Property-level decorators (<code class="notranslate">@Input</code>, etc) on superclasses are included in compilation. <ul dir="auto"> <li><code class="notranslate">@Input</code>s with the same name on the superclass and subclass should have the same behavior as two <code class="notranslate">@Input</code>s with the same name on the same class.</li> </ul> </li> </ul> <p dir="auto">Applying these rules would change the behavior of the above example, so component <code class="notranslate">B</code> would have all 4 defined inputs recognized.</p> <p dir="auto">For JIT mode, this requires two changes to Angular.</p> <p dir="auto">First, the class-level decorators would be changed to check for metadata on the superclass, and perform the merging operation if present.</p> <p dir="auto">Secondly, the runtime compiler would need to consider superclass metadata when checking for property annotations.</p> <p dir="auto">For the AOT compiler, the semantics would have to be built into the compiler itself as the decorators don't execute during AOT compilation.</p>
1
<p dir="auto">This is because stateful RNN requires batch_input_shape to be defined, however the forward RNN does not know what the batch_input_shape is when creating the Bidirectional object because it did not yet had the chance to connect to the layers below it.</p> <p dir="auto">However, the Bidirectional init attempts to create the backward RNN by duplicating the forward RNN and for that it calls the get_config method of the forward RNN.<br> The get_config of Recurrent places a value of None for batch_input_shape see<br> <a href="https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L233">https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L233</a><br> It has an input_spec but because the forward RNN is not yet connected, its shape is None.</p> <p dir="auto">I tried to solve this by manually specifying the batch_input_shape when creating the forward RNN object.<br> However, even this did not solve the problem because the way get_config is written.<br> In Recurrent get_config ignores the batch_input_shape parameter and instead re-compute it from input_spec[0].shape and then this recomputed value overwrites the value for batch_input_shape returned from the super get_config</p>
<p dir="auto">Please make sure that the boxes below are checked before you submit your issue.<br> If your issue is an <strong>implementation question</strong>, please ask your question on <a href="http://stackoverflow.com/questions/tagged/keras" rel="nofollow">StackOverflow</a> or <a href="https://keras-slack-autojoin.herokuapp.com/" rel="nofollow">on the Keras Slack channel</a> instead of opening a GitHub issue.</p> <p dir="auto">Thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br> <code class="notranslate">pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps</code></p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that your version of TensorFlow is up-to-date. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul>
0
<p dir="auto">I recently upgraded my Airflow version from 1.10.10 to 2.0.0, and noticed the scheduler are failing and exiting after upgrade. After checking the log, it's suggest the duplicated entry for records in <code class="notranslate">dag_run</code> table. It tries to insert dag runs already executed before the upgrade.<br> After some digging, I found it related to how the scheduler calculate the next execution_date: it picks the last dag_run with <code class="notranslate">run_type</code> of scheduled, however the new <code class="notranslate">DagRunType.SCHEDULED</code> is not the same as "scheduled" as previously was. as <code class="notranslate">DagRunType</code> is an enum type, <code class="notranslate">DagRunType.SCHEDULED</code> is actually converted to "DagRunType.SCHEDULED" not "scheduled".<br> It looks like not an intended design but a mistake. change of <code class="notranslate">DagRunType.SCHEDULED</code> to <code class="notranslate">DagRunType.SCHEDULED.value</code> will simply solve this issue.</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/ab5f770bfcd8c690cbe4d0825896325aca0beeca/airflow/jobs/scheduler_job.py#L1559-L1568">airflow/airflow/jobs/scheduler_job.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 1559 to 1568 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/ab5f770bfcd8c690cbe4d0825896325aca0beeca">ab5f770</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L1559" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1559"></td> <td id="LC1559" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dag</span>.<span class="pl-en">create_dagrun</span>( </td> </tr> <tr class="border-0"> <td id="L1560" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1560"></td> <td id="LC1560" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">run_type</span><span class="pl-c1">=</span><span class="pl-v">DagRunType</span>.<span class="pl-v">SCHEDULED</span>, </td> </tr> <tr class="border-0"> <td id="L1561" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1561"></td> <td id="LC1561" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">execution_date</span><span class="pl-c1">=</span><span class="pl-s1">dag_model</span>.<span class="pl-s1">next_dagrun</span>, </td> </tr> <tr class="border-0"> <td id="L1562" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1562"></td> <td id="LC1562" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-s1">timezone</span>.<span class="pl-en">utcnow</span>(), </td> </tr> <tr class="border-0"> <td id="L1563" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1563"></td> <td id="LC1563" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">state</span><span class="pl-c1">=</span><span class="pl-v">State</span>.<span class="pl-v">RUNNING</span>, </td> </tr> <tr class="border-0"> <td id="L1564" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1564"></td> <td id="LC1564" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">external_trigger</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, </td> </tr> <tr class="border-0"> <td id="L1565" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1565"></td> <td id="LC1565" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">session</span><span class="pl-c1">=</span><span class="pl-s1">session</span>, </td> </tr> <tr class="border-0"> <td id="L1566" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1566"></td> <td id="LC1566" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dag_hash</span><span class="pl-c1">=</span><span class="pl-s1">dag_hash</span>, </td> </tr> <tr class="border-0"> <td id="L1567" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1567"></td> <td id="LC1567" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">creating_job_id</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">id</span>, </td> </tr> <tr class="border-0"> <td id="L1568" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1568"></td> <td id="LC1568" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td> </tr> </tbody></table> </div> </div> <p></p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.0</p> <h3 dir="auto">What happened</h3> <p dir="auto">Worker pod template file doesn't have an option to add priorityClassName.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Airflow workers deployment however has the option to add it via the override airflow.workers.priorityClassName . We should reuse this for the worker pod template file too.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Trying to add a priorityClassName for airflow worker pod doesnt work. Unless we override the whole worker pod template with our own. But that is not preferrable as we will need to duplicate a lot of the existing template file.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Rhel8</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Official Apache Airflow Helm Chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<p dir="auto">Hello,</p> <p dir="auto">There's a bunch of packages which I'm installing that requires NumPy (for example TensorFlow), and I can't seem to be able to install and import them because of an ImportError on the numpy side.</p> <p dir="auto">This is happening with both <code class="notranslate">pip install</code> and building from source.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import tensorflow as tf"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span></pre></div> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError: numpy.core._multiarray_umath failed to import"><pre class="notranslate"><code class="notranslate">ImportError: numpy.core._multiarray_umath failed to import </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'1.16.0.dev0+cdbf35b'"><pre class="notranslate"><code class="notranslate">'1.16.0.dev0+cdbf35b' </code></pre></div>
<p dir="auto">I have unearthed a very strange problem when combining using Gauss-Hermite quadrature in a script that also does some plotting.</p> <h4 dir="auto">Minimal example</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import numpy as np plt.plot([0, 1], [0, 1], 'k--') degree = 11 np.polynomial.hermite.hermgauss(degree)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s">'k--'</span>) <span class="pl-s1">degree</span> <span class="pl-c1">=</span> <span class="pl-c1">11</span> <span class="pl-s1">np</span>.<span class="pl-s1">polynomial</span>.<span class="pl-s1">hermite</span>.<span class="pl-en">hermgauss</span>(<span class="pl-s1">degree</span>)</pre></div> <h4 dir="auto">Error message</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;..\TransfectionOXB\np_bug.py&quot;, line 5, in &lt;module&gt; np.polynomial.hermite.hermgauss(degree) File &quot;c:\depot\XXX\venv\lib\site-packages\numpy\polynomial\hermite.py&quot;, line 1586, in hermgauss x = la.eigvalsh(m) File &quot;&lt;__array_function__ internals&gt;&quot;, line 6, in eigvalsh File &quot;c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py&quot;, line 1176, in eigvalsh w = gufunc(a, signature=signature, extobj=extobj) File &quot;c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py&quot;, line 94, in _raise_linalgerror_eigenvalues_nonconvergence raise LinAlgError(&quot;Eigenvalues did not converge&quot;) numpy.linalg.LinAlgError: Eigenvalues did not converge"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "..\TransfectionOXB\np_bug.py", line 5, in &lt;module&gt; np.polynomial.hermite.hermgauss(degree) File "c:\depot\XXX\venv\lib\site-packages\numpy\polynomial\hermite.py", line 1586, in hermgauss x = la.eigvalsh(m) File "&lt;__array_function__ internals&gt;", line 6, in eigvalsh File "c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py", line 1176, in eigvalsh w = gufunc(a, signature=signature, extobj=extobj) File "c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py", line 94, in _raise_linalgerror_eigenvalues_nonconvergence raise LinAlgError("Eigenvalues did not converge") numpy.linalg.LinAlgError: Eigenvalues did not converge </code></pre></div> <h4 dir="auto">Surprising workarounds/fixes</h4> <p dir="auto">I have no idea why there is any dependency of hermgauss on matplotlib, but the following observations make this even more surprising:</p> <ul dir="auto"> <li>Using <code class="notranslate">degree</code> &lt; 10 resolves the problem</li> <li>Changing the plot format from <code class="notranslate">--</code> to <code class="notranslate">-</code> (or anything else) also resolves the problem</li> </ul> <h4 dir="auto">Version information</h4> <p dir="auto">I believe this is a problem on Windows only, as a colleague using Windows verified this bug on his system, while a mac user did not receive any error message.<br> I'm currently using:</p> <ul dir="auto"> <li>Windows 10 Enterprise, version 2004, OS build 19041.450</li> <li>python version 3.7.8</li> <li>numpy version 1.19.1</li> <li>matplotlib version 3.3.1</li> </ul> <p dir="auto">I've tried it on a few other versions of numpy and matplotlib, but there is no difference.</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): same host name</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"6+", GitVersion:"v1.6.0-alpha.0.760+4dd0320db7cd3d-dirty", GitCommit:"4dd0320db7cd3df7b21a24efb13dabf662e73d4d", GitTreeState:"dirty", BuildDate:"2016-11-22T07:29:40Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"6+", GitVersion:"v1.6.0-alpha.0.760+4dd0320db7cd3d-dirty", GitCommit:"4dd0320db7cd3df7b21a24efb13dabf662e73d4d", GitTreeState:"dirty", BuildDate:"2016-11-22T07:29:40Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li> <p dir="auto"><strong>Cloud provider or hardware configuration</strong>:</p> </li> <li> <p dir="auto"><strong>OS</strong> (e.g. from /etc/os-release):<br> NAME="Ubuntu"<br> VERSION="16.04.1 LTS (Xenial Xerus)"</p> </li> <li> <p dir="auto"><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> Linux freeworld 4.4.0-47-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35537532" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/68" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/68/hovercard" href="https://github.com/kubernetes/kubernetes/pull/68">#68</a>-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</p> </li> <li> <p dir="auto"><strong>Install tools</strong>:</p> </li> <li> <p dir="auto"><strong>Others</strong>:<br> I used my laptop as the master and node, and used a virtualbox machine installed the same OS as a the other node.</p> </li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I set the same host name(--hostname-override=k8s-node1-192.168.0.105) in kubelet startup argument on both of two nodes by mistake. Both of them successfully registered on the master. if create a rc with replicas equal 2, you will see both of nodes have duplicate ones. There are two pods on each node and the pods identical. By the way if run "kubectl get no", it will show only one node.</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> I think if there is a host name conflict, kubelet should fail to registered. It means new node cannot be added in cluster.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ol dir="auto"> <li>set same host name using hostname-override to start kubelet on two nodes.</li> <li>create a rc and schedule to those two nodes.</li> <li>run "docker ps" on those two nodes to check result.</li> </ol> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">To avoid the unregister_netdevice race due to hairpin mode (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32864464" data-permission-text="Title is private" data-url="https://github.com/moby/moby/issues/5618" data-hovercard-type="issue" data-hovercard-url="/moby/moby/issues/5618/hovercard" href="https://github.com/moby/moby/issues/5618">moby/moby#5618</a>, which is due to a kernel bug, maybe <a href="https://bugzilla.kernel.org/show_bug.cgi?id=81211" rel="nofollow">https://bugzilla.kernel.org/show_bug.cgi?id=81211</a>) we flipped the container bridge to promiscuous, but this has various side effects (performance hit, duplicate acks, martian packets etc).</p> <p dir="auto">To workaround this we discussed a packet laundering ns, eg: <a href="https://gist.github.com/bprashanth/0e3c0cf8ef7fd21fc2e857c96eb6f4d0">https://gist.github.com/bprashanth/0e3c0cf8ef7fd21fc2e857c96eb6f4d0</a></p> <p dir="auto">And adding 2 rules to the host:</p> <ol dir="auto"> <li>DNAT packets going from an endpoint to the service into the laundering netns</li> <li>Don't MASQ packets coming out of the laundering netns, just pass them back to the endpoint</li> </ol> <p dir="auto">This would probably mean that endpoints can never reach their peers thorugh the Service vip, I think that should be OK? (petset pods DNS lookup their peers through the Service, then use individual hostnames to talk to them).</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/girishkalele/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/girishkalele">@girishkalele</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.5</li> <li>Operating System version: macOs Mojave 10.14.6</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>正常启动项目后无法使用telnet的<code class="notranslate">ls</code>,<code class="notranslate">cd</code>,<code class="notranslate">invoke</code>等命令;</li> <li>自己通过debug发现,在读取<code class="notranslate">/META-INF/dubbo/internal/org.apache.dubbo.remoting.telnet.TelnetHandler</code>这个配置文件的时候,在解析第6到14这几行的时候,出现了类加载失败的情况。</li> <li>于是我便去源码中找了这几个类,发现它们的包结构和之前的版本<code class="notranslate">2.7.4.1</code>有所不同。</li> <li>这几个类由<code class="notranslate">org.apache.dubbo.rpc.protocol.dubbo.telnet</code>包移动到了<code class="notranslate">org.apache.dubbo.qos.legacy</code>这个包下面。</li> <li>我不知道我有没有找到根本原因,但这一定是其中之一,目前也有一个解决办法,并且我已经使用这个方法解决了这个问题。我把这些加载失败的Telnet类,放到了Telnet扩展中。</li> </ol> <h3 dir="auto">解决方案</h3> <p dir="auto">把临时解决方案贴上来,希望能帮助遇到同样问题的小伙伴。<br> 在项目<code class="notranslate">resources</code>目录中添加<code class="notranslate">META-INF/dubbo/org.apache.dubbo.remoting.telnet.TelnetHandler</code>文本文件,然后将加载失败的类包名修改后,配置到文件中。</p> <p dir="auto">文件内容如下:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ls=org.apache.dubbo.qos.legacy.ListTelnetHandler ps=org.apache.dubbo.qos.legacy.PortTelnetHandler cd=org.apache.dubbo.qos.legacy.ChangeTelnetHandler pwd=org.apache.dubbo.qos.legacy.CurrentTelnetHandler invoke=org.apache.dubbo.qos.legacy.InvokeTelnetHandler trace=org.apache.dubbo.qos.legacy.TraceTelnetHandler count=org.apache.dubbo.qos.legacy.CountTelnetHandler select=org.apache.dubbo.qos.legacy.SelectTelnetHandler shutdown=org.apache.dubbo.qos.legacy.ShutdownTelnetHandler clear=org.apache.dubbo.remoting.telnet.support.command.ClearTelnetHandler exit=org.apache.dubbo.remoting.telnet.support.command.ExitTelnetHandler help=org.apache.dubbo.remoting.telnet.support.command.HelpTelnetHandler status=org.apache.dubbo.remoting.telnet.support.command.StatusTelnetHandler log=org.apache.dubbo.remoting.telnet.support.command.LogTelnetHandler"><pre class="notranslate"><code class="notranslate">ls=org.apache.dubbo.qos.legacy.ListTelnetHandler ps=org.apache.dubbo.qos.legacy.PortTelnetHandler cd=org.apache.dubbo.qos.legacy.ChangeTelnetHandler pwd=org.apache.dubbo.qos.legacy.CurrentTelnetHandler invoke=org.apache.dubbo.qos.legacy.InvokeTelnetHandler trace=org.apache.dubbo.qos.legacy.TraceTelnetHandler count=org.apache.dubbo.qos.legacy.CountTelnetHandler select=org.apache.dubbo.qos.legacy.SelectTelnetHandler shutdown=org.apache.dubbo.qos.legacy.ShutdownTelnetHandler clear=org.apache.dubbo.remoting.telnet.support.command.ClearTelnetHandler exit=org.apache.dubbo.remoting.telnet.support.command.ExitTelnetHandler help=org.apache.dubbo.remoting.telnet.support.command.HelpTelnetHandler status=org.apache.dubbo.remoting.telnet.support.command.StatusTelnetHandler log=org.apache.dubbo.remoting.telnet.support.command.LogTelnetHandler </code></pre></div> <p dir="auto">在项目中添加配置项:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dubbo.protocol.telnet=clear,exit,help,status,log,ls,ps,cd,pwd,invoke,trace,count,select,shutdown"><pre class="notranslate"><code class="notranslate">dubbo.protocol.telnet=clear,exit,help,status,log,ls,ps,cd,pwd,invoke,trace,count,select,shutdown </code></pre></div> <p dir="auto">使用方法在官方文档中有说明:<a href="http://dubbo.apache.org/zh-cn/docs/dev/impls/telnet-handler.html" rel="nofollow">扩展telnet</a><br> 这个问题修改<code class="notranslate">/META-INF/dubbo/internal/org.apache.dubbo.remoting.telnet.TelnetHandler</code>的文件内容后就会解决,如有使用不当之处,还望开发者回复。</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unsupported command: ls"><pre class="notranslate"><code class="notranslate">Unsupported command: ls </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: linux centos 7</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">[INFO] --------------------------------[ jar ]---------------------------------<br> Downloading from alibaba-opensource-releases: <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.rpc/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.rpc/maven-metadata.xml</a><br> ^@[WARNING] Could not transfer metadata com.alibaba.platform.shared:dubbo.rpc/maven-metadata.xml from/to alibaba-opensource-releases (<a href="http://code.alibabatech.com/mvn/releases" rel="nofollow">http://code.alibabatech.com/mvn/releases</a>): Transfer failed for <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.rpc/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.rpc/maven-metadata.xml</a><br> Downloading from alibaba-opensource-releases: <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.remoting/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.remoting/maven-metadata.xml</a><br> ^@^@[WARNING] Could not transfer metadata com.alibaba.platform.shared:dubbo.remoting/maven-metadata.xml from/to alibaba-opensource-releases (<a href="http://code.alibabatech.com/mvn/releases" rel="nofollow">http://code.alibabatech.com/mvn/releases</a>): Transfer failed for <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.remoting/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo.remoting/maven-metadata.xml</a><br> Downloading from alibaba-opensource-releases: <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo/maven-metadata.xml</a><br> ^@^@[WARNING] Could not transfer metadata com.alibaba.platform.shared:dubbo/maven-metadata.xml from/to alibaba-opensource-releases (<a href="http://code.alibabatech.com/mvn/releases" rel="nofollow">http://code.alibabatech.com/mvn/releases</a>): Transfer failed for <a href="http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo/maven-metadata.xml" rel="nofollow">http://code.alibabatech.com/mvn/releases/com/alibaba/platform/shared/dubbo/maven-metadata.xml</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://github.com/vvanpo/minimal-repros/tree/master/vue2">https://github.com/vvanpo/minimal-repros/tree/master/vue2</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Finding the same problem as posted here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="552489376" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/11035" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/11035/hovercard" href="https://github.com/vuejs/vue/issues/11035">#11035</a></p> <p dir="auto">See the minimal repro:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Vue from 'vue/dist/vue.common.js' test('errorHandler should capture promise rejections in watchers', () =&gt; { document.body.innerHTML = '&lt;div id=&quot;#app&quot;&gt;&lt;/div&gt;' Vue.config.errorHandler = (err) =&gt; { console.log(err.toString()) } new Vue({ template: `&lt;div /&gt;`, data: () =&gt; ({ foo: false, bar: false }), mounted() { this.foo = true this.bar = true }, watch: { foo: async () =&gt; { throw new Error('foo') }, bar: () =&gt; { throw new Error('bar') }, }, }).$mount(document.body.querySelector('#app')) })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Vue</span> <span class="pl-k">from</span> <span class="pl-s">'vue/dist/vue.common.js'</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'errorHandler should capture promise rejections in watchers'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">'&lt;div id="#app"&gt;&lt;/div&gt;'</span> <span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-c1">config</span><span class="pl-kos">.</span><span class="pl-en">errorHandler</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`&lt;div /&gt;`</span><span class="pl-kos">,</span> <span class="pl-en">data</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">mounted</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">watch</span>: <span class="pl-kos">{</span> <span class="pl-en">foo</span>: <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'foo'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">bar</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'bar'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">$mount</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#app'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Results in the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(node:67048) UnhandledPromiseRejectionWarning: Error: foo (node:67048) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:67048) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. PASS ./test.js ✓ errorHandler should capture promise rejections in watchers (19 ms) console.log Error: bar at _vueCommon.default.config.errorHandler (test.js:7:13) Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 1.806 s Ran all test suites. ✨ Done in 2.71s."><pre class="notranslate"><code class="notranslate">(node:67048) UnhandledPromiseRejectionWarning: Error: foo (node:67048) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:67048) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. PASS ./test.js ✓ errorHandler should capture promise rejections in watchers (19 ms) console.log Error: bar at _vueCommon.default.config.errorHandler (test.js:7:13) Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 1.806 s Ran all test suites. ✨ Done in 2.71s. </code></pre></div> <p dir="auto">So you can see that it correctly captured the <code class="notranslate">bar</code> watcher's error, but not the promise rejection in <code class="notranslate">foo</code>.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">Errors in async watchers can be caught by <code class="notranslate">Vue.config.errorHandler</code>.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Promise rejections inside async watchers are not caught by the <code class="notranslate">errorHandler</code>.</p> <p dir="auto">I've tested it in Vue 3, and there <code class="notranslate">app.config.errorHandler</code> captures all promise rejections as expected.</p>
<p dir="auto">I am using Vue instances on multiple pages, and wanted to start using PJAX, because, well, pjax is pretty awesome. I have changed my <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="30ee11c439a5bc19d63157a093ceb614">$(document).readys to $</math-renderer>(document).on('ready pjax:end')s and it indeed instantiates the vue instance and all the modelbindings are working, but the event listeners are not set / not working. Buttons with v-on:click don't work, and @keydown.enter doesn't get triggered either.</p> <p dir="auto">The HTML:</p> <p dir="auto"><code class="notranslate">.UploadTool</code> is an element that's a bit higher in the DOM</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;row&quot; id=&quot;images&quot;&gt; &lt;div class=&quot;col-sm-3 col-xs-6 push-30 Photo&quot; v-for=&quot;file in media&quot; :id=&quot;file.id&quot;&gt; &lt;div class=&quot;bg-image&quot; style=&quot;width: 18vw; height: 18vw; max-height: 25vh; margin: 0 auto; background-image: url('@{{ file.public_url }}');&quot;&gt;&lt;/div&gt; {{--style=&quot;height: 200px; background-image: url('@{{ file.public_url }}');&quot;&gt;&lt;/div&gt;--}} &lt;h3&gt;@{{ file.name }}&lt;/h3&gt; &lt;div class=&quot;buttons push-5-t btn-group&quot;&gt; &lt;button @click=&quot;setCoverPhoto(file)&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;top&quot; title=&quot;Set as Cover Photo&quot; class=&quot;btn btn-primary btn-xs&quot;&gt;&lt;i class=&quot;fa fa-star&quot;&gt;&lt;/i&gt;&lt;/button&gt; &lt;button @click=&quot;deleteFile(file)&quot; data-toggle=&quot;tooltip&quot; data-placement=&quot;top&quot; title=&quot;Delete Photo&quot; class=&quot;btn btn-danger btn-xs&quot;&gt;&lt;i class=&quot;fa fa-remove&quot;&gt;&lt;/i&gt;&lt;/button&gt; &lt;/div&gt; &lt;label class=&quot;css-input switch switch-sm switch-primary pull-right&quot;&gt; Private &lt;input @click=&quot;togglePublic(file)&quot; type=&quot;checkbox&quot; id=&quot;login-remember-me&quot; name=&quot;remember&quot; v-model=&quot;file.custom_properties.public&quot;&gt;&lt;span&gt;&lt;/span&gt; Public &lt;/label&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>" <span class="pl-c1">id</span>="<span class="pl-s">images</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-sm-3 col-xs-6 push-30 Photo</span>" <span class="pl-c1">v-for</span>="<span class="pl-s">file in media</span>" <span class="pl-c1">:id</span>="<span class="pl-s">file.id</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">bg-image</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 18vw; height: 18vw; max-height: 25vh; margin: 0 auto; background-image: url('@{{ file.public_url }}');</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> {{--style="height: 200px; background-image: url('@{{ file.public_url }}');"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span>--}} <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span>@{{ file.name }}<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">buttons push-5-t btn-group</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">@click</span>="<span class="pl-s">setCoverPhoto(file)</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">tooltip</span>" <span class="pl-c1">data-placement</span>="<span class="pl-s">top</span>" <span class="pl-c1">title</span>="<span class="pl-s">Set as Cover Photo</span>" <span class="pl-c1">class</span>="<span class="pl-s">btn btn-primary btn-xs</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-star</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">@click</span>="<span class="pl-s">deleteFile(file)</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">tooltip</span>" <span class="pl-c1">data-placement</span>="<span class="pl-s">top</span>" <span class="pl-c1">title</span>="<span class="pl-s">Delete Photo</span>" <span class="pl-c1">class</span>="<span class="pl-s">btn btn-danger btn-xs</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-remove</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span> <span class="pl-c1">class</span>="<span class="pl-s">css-input switch switch-sm switch-primary pull-right</span>"<span class="pl-kos">&gt;</span> Private <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">@click</span>="<span class="pl-s">togglePublic(file)</span>" <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">id</span>="<span class="pl-s">login-remember-me</span>" <span class="pl-c1">name</span>="<span class="pl-s">remember</span>" <span class="pl-c1">v-model</span>="<span class="pl-s">file.custom_properties.public</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> Public <span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span>div<span class="pl-kos">&gt;</span></pre></div> <p dir="auto">The JavaScript:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$(document).on('ready pjax:end', function () { upload_vue = new Vue({ el: '.UploadTool', data: { media: [], event_id: null }, ready: function () { this.event_id = meta('event_id'); this.fetchMedia(); }, methods: { fetchMedia: function () { this.$http.get('/api/events/' + this.event_id + '/media').then(function (response) { this.media = response.data; }); }, setCoverPhoto: function (file) { this.$http.post('/events/' + this.event_id + '/media/' + file.id + '/cover').then(function () { $('#cover-photo').css('background-image', &quot;url('&quot; + file.public_url + &quot;')&quot;); swal({ title: 'Cover photo set', text: 'This image will now be used as the cover photo', type: 'success' }, function () { $('#cover-photo').css('background-image', &quot;url('&quot; + file.public_url + &quot;')&quot;); }); }); }, deleteFile: function (file) { this.$http.delete('/events/' + this.event_id + '/media/' + file.id).then(function () { this.media.$remove(file); }); }, togglePublic: function (file) { this.$http.post('/events/' + this.event_id + '/media/' + file.id + '/public/' + (!file.custom_properties.public)); }, updateOrder: function () { var ids = []; $('#images .Photo').each(function () { ids.push($(this).attr('id')); }); this.$http.post('/events/' + this.event_id + '/media/order', {ids: ids}); } } }); });"><pre class="notranslate"><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready pjax:end'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">upload_vue</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Vue</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">el</span>: <span class="pl-s">'.UploadTool'</span><span class="pl-kos">,</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">media</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">event_id</span>: <span class="pl-c1">null</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">ready</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">=</span> <span class="pl-en">meta</span><span class="pl-kos">(</span><span class="pl-s">'event_id'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">fetchMedia</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">methods</span>: <span class="pl-kos">{</span> <span class="pl-en">fetchMedia</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/api/events/'</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">+</span> <span class="pl-s">'/media'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">media</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">setCoverPhoto</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'/events/'</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">+</span> <span class="pl-s">'/media/'</span> <span class="pl-c1">+</span> <span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">id</span> <span class="pl-c1">+</span> <span class="pl-s">'/cover'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'#cover-photo'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'background-image'</span><span class="pl-kos">,</span> <span class="pl-s">"url('"</span> <span class="pl-c1">+</span> <span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">public_url</span> <span class="pl-c1">+</span> <span class="pl-s">"')"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">swal</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">title</span>: <span class="pl-s">'Cover photo set'</span><span class="pl-kos">,</span> <span class="pl-c1">text</span>: <span class="pl-s">'This image will now be used as the cover photo'</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'success'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'#cover-photo'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'background-image'</span><span class="pl-kos">,</span> <span class="pl-s">"url('"</span> <span class="pl-c1">+</span> <span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">public_url</span> <span class="pl-c1">+</span> <span class="pl-s">"')"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">deleteFile</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">'/events/'</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">+</span> <span class="pl-s">'/media/'</span> <span class="pl-c1">+</span> <span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">media</span><span class="pl-kos">.</span><span class="pl-en">$remove</span><span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">togglePublic</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'/events/'</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">+</span> <span class="pl-s">'/media/'</span> <span class="pl-c1">+</span> <span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">id</span> <span class="pl-c1">+</span> <span class="pl-s">'/public/'</span> <span class="pl-c1">+</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">file</span><span class="pl-kos">.</span><span class="pl-c1">custom_properties</span><span class="pl-kos">.</span><span class="pl-c1">public</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">updateOrder</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">ids</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'#images .Photo'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">each</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">ids</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">attr</span><span class="pl-kos">(</span><span class="pl-s">'id'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$http</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'/events/'</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">event_id</span> <span class="pl-c1">+</span> <span class="pl-s">'/media/order'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">ids</span>: <span class="pl-s1">ids</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$(document).pjax('a:not(.no-pjax)', 'main.pjax-container');"><pre class="notranslate"><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">pjax</span><span class="pl-kos">(</span><span class="pl-s">'a:not(.no-pjax)'</span><span class="pl-kos">,</span> <span class="pl-s">'main.pjax-container'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">This is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135241306" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/2375" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/2375/hovercard" href="https://github.com/vuejs/vue/issues/2375">#2375</a> because I couldn't reopen it.</p>
0
<p dir="auto">I went back to complete some of the new challenges in html/css and jquery sections that were added with the most recent update. When I complete the challenge and click to next, it takes me to a lesson I have already completed (next in line on the map) rather than the next incomplete lesson and gives me credit (items completed number in the corner) for doing it again.</p> <p dir="auto">Issue: I am getting credit for lessons I have already completed in past when I do them again.</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-import-a-google-font" rel="nofollow">http://freecodecamp.com/challenges/waypoint-import-a-google-font</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">I noticed new waypoints for HTML5/CSS sections. I completed some of the new ones, and just to refreshen up on some older waypoints I finished a while ago, I decided to redo some.</p> <p dir="auto">I noticed that I was receiving points for complete the waypoints that I have already done. These were the ones that were done before the new update in the curriculum.</p>
1
<p dir="auto">Hi,</p> <p dir="auto"><strong>TS</strong>: 1.4</p> <p dir="auto">Not sure that I agree we should have an error here:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Indexer { [x: string]: number } class Base { foo() : Indexer { return undefined; } } /*Error: Class 'Foo' incorrectly extends base class 'Base'. Types of property 'foo' are incompatible. Type '() =&gt; { id: number; }' is not assignable to type '() =&gt; Indexer'. Type '{ id: number; }' is not assignable to type 'Indexer'. Index signature is missing in type '{ id: number; }'. */ class Foo extends Base { foo() { return { id: 10 }; } }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Indexer</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">x</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-smi">Indexer</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c">/*Error: Class 'Foo' incorrectly extends base class 'Base'.</span> <span class="pl-c"> Types of property 'foo' are incompatible.</span> <span class="pl-c"> Type '() =&gt; { id: number; }' is not assignable to type '() =&gt; Indexer'.</span> <span class="pl-c"> Type '{ id: number; }' is not assignable to type 'Indexer'.</span> <span class="pl-c"> Index signature is missing in type '{ id: number; }'.</span> <span class="pl-c">*/</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">extends</span> <span class="pl-smi">Base</span> <span class="pl-kos">{</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-c1">10</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">here is my code</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" export enum SortDir { Asc, Desc, Flip } export interface ISortInfo { getvalue(x: QuerySummary): any; //change to number|string in TypeScript 1.4 order: SortDir; ordercalc?: number; } class SortByQueryId implements ISortInfo { getvalue = x =&gt; x.QueryId; order = SortDir.Flip; }"><pre class="notranslate"> <span class="pl-k">export</span> <span class="pl-k">enum</span> <span class="pl-smi">SortDir</span> <span class="pl-kos">{</span> <span class="pl-c1">Asc</span><span class="pl-kos">,</span> <span class="pl-c1">Desc</span><span class="pl-kos">,</span> <span class="pl-c1">Flip</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">ISortInfo</span> <span class="pl-kos">{</span> <span class="pl-c1">getvalue</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">QuerySummary</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c">//change to number|string in TypeScript 1.4</span> <span class="pl-c1">order</span>: <span class="pl-smi">SortDir</span><span class="pl-kos">;</span> <span class="pl-c1">ordercalc</span>?: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">SortByQueryId</span> <span class="pl-k">implements</span> <span class="pl-smi">ISortInfo</span> <span class="pl-kos">{</span> <span class="pl-c1">getvalue</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">QueryId</span><span class="pl-kos">;</span> <span class="pl-c1">order</span> <span class="pl-c1">=</span> <span class="pl-smi">SortDir</span><span class="pl-kos">.</span><span class="pl-c1">Flip</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">when I type "x." I expect to see the properties of QuerySummary but I do not. VS still thinks the type is 'any'</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Included / imported plays and group_vars loading</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/centos/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/centos/ansible-2.4.0.0/lib/ansible executable location = /home/centos/ansible-2.4.0.0/bin/ansible python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $"><pre class="notranslate"><code class="notranslate">$ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/centos/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/centos/ansible-2.4.0.0/lib/ansible executable location = /home/centos/ansible-2.4.0.0/bin/ansible python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $ </code></pre></div> <p dir="auto">This is Ansible 2.4.0 RC2.</p> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Nothing altered.</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Centos 7.2</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The behavior of group_vars loading for included plays has changed between 2.3 and 2.4. Previously the group_vars would load based on the initial playbook directory; in 2.4 the group_vars loads from the included playbook's directory. The behavior difference is a breaking change, leading to failures with existing playbooks structured in particular ways.</p> <p dir="auto">I recognize that this breaking change may have been intended at 2.4. The documentation (<a href="http://docs.ansible.com/ansible/latest/intro_inventory.html#splitting-out-host-and-group-specific-data" rel="nofollow">http://docs.ansible.com/ansible/latest/intro_inventory.html#splitting-out-host-and-group-specific-data</a>) refers only to "the playbook directory", which is unclear about whether that's the entry playbook or the included playbook.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">entry.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: all tasks: - name: From entry.yml debug: var: INSTALL_USER - include: internal/testing.yml"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">From entry.yml</span> <span class="pl-ent">debug</span>: <span class="pl-ent">var</span>: <span class="pl-s">INSTALL_USER</span> - <span class="pl-ent">include</span>: <span class="pl-s">internal/testing.yml</span></pre></div> <p dir="auto">internal/testing.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: all tasks: - name: From internal/testing.yml debug: var: INSTALL_USER"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">From internal/testing.yml</span> <span class="pl-ent">debug</span>: <span class="pl-ent">var</span>: <span class="pl-s">INSTALL_USER</span></pre></div> <p dir="auto">group_vars/all</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- INSTALL_USER: testing"><pre class="notranslate">--- <span class="pl-ent">INSTALL_USER</span>: <span class="pl-s">testing</span></pre></div> <p dir="auto">inventories/inventory.ini</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="host ansible_connection=local"><pre class="notranslate"><code class="notranslate">host ansible_connection=local </code></pre></div> <p dir="auto">Execution:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i inventories/inventory.ini entry.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -i inventories/inventory.ini entry.yml </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected the same behavior I see in 2.3, where the group_vars/all entries are present for internal.testing.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $ ansible-playbook -i inventories/inventory.ini entry.yml PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $"><pre class="notranslate"><code class="notranslate">$ ansible --version ansible 2.3.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $ ansible-playbook -i inventories/inventory.ini entry.yml PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $ </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/centos/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/centos/ansible-2.4.0.0/lib/ansible executable location = /home/centos/ansible-2.4.0.0/bin/ansible python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible-playbook -i inventories/inventory.ini entry.yml [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;VARIABLE IS NOT DEFINED!&quot; } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $"><pre class="notranslate"><code class="notranslate">$ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/centos/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/centos/ansible-2.4.0.0/lib/ansible executable location = /home/centos/ansible-2.4.0.0/bin/ansible python version = 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] $ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible-playbook -i inventories/inventory.ini entry.yml [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "VARIABLE IS NOT DEFINED!" } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $ </code></pre></div> <p dir="auto">If I create internal/testing/group_vars/all with a different INSTALL_USER value, then 2.4 uses that value while 2.3 does not:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ mkdir internal/group_vars $ echo &quot;INSTALL_USER: different&quot; &gt; internal/group_vars/all $ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible-playbook -i inventories/inventory.ini entry.yml [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;different&quot; } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $ ansible-playbook -i inventories/inventory.ini entry.yml PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { &quot;INSTALL_USER&quot;: &quot;testing&quot; } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $"><pre class="notranslate"><code class="notranslate">$ mkdir internal/group_vars $ echo "INSTALL_USER: different" &gt; internal/group_vars/all $ PYTHONPATH=~/ansible-2.4.0.0/lib ~/ansible-2.4.0.0/bin/ansible-playbook -i inventories/inventory.ini entry.yml [DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "different" } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $ ansible-playbook -i inventories/inventory.ini entry.yml PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From entry.yml] ************************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY [all] ************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************* ok: [host] TASK [From internal/testing.yml] *************************************************************************************************************** ok: [host] =&gt; { "INSTALL_USER": "testing" } PLAY RECAP ************************************************************************************************************************************* host : ok=4 changed=0 unreachable=0 failed=0 $ </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Core / import_playbook</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] log_path = ./logs/ansible.log roles_path = /etc/ansible/roles/:roles/ jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n host_key_checking = no retry_files_enabled = no"><pre class="notranslate"><code class="notranslate">[defaults] log_path = ./logs/ansible.log roles_path = /etc/ansible/roles/:roles/ jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n host_key_checking = no retry_files_enabled = no </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Distributor ID: Ubuntu<br> Description: Ubuntu 16.04.3 LTS<br> Release: 16.04<br> Codename: xenial</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Vars scope is broken for a playbook imported with import_playbook and when this playbook is located in a sub directory.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- - name: Test VARS hosts: all connection: local gather_facts: no tasks: - name: debug 1 debug: var=backup - import_playbook: test/pb__test_import.yml"><pre class="notranslate"><code class="notranslate">--- - name: Test VARS hosts: all connection: local gather_facts: no tasks: - name: debug 1 debug: var=backup - import_playbook: test/pb__test_import.yml </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- - name: Test VARS hosts: all connection: local gather_facts: no tasks: - name: debug 2 debug: var=backup"><pre class="notranslate"><code class="notranslate">--- - name: Test VARS hosts: all connection: local gather_facts: no tasks: - name: debug 2 debug: var=backup </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.4.0 config file = /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] Using /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg as config file Vault password: setting up inventory plugins Set default localhost to localhost Parsed /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/inventories/int5 inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: pb__test.yml **************************************************************************************************************************************************************************************************************** 2 plays in pb__test.yml PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; and vault_id=default Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; and vault_id=default TASK [debug 1] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_vars.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { &quot;backup&quot;: { &quot;diff&quot;: { &quot;parts&quot;: &quot;tmp/gitDiff/&quot;, &quot;report&quot;: &quot;tmp/git.diff&quot; }, &quot;git&quot;: { &quot;repository&quot;: &quot;https://git.corp.cloudwatt.com/noc/backup-int5.git&quot; }, &quot;location&quot;: &quot;../backups/int5&quot;, &quot;log&quot;: { &quot;down&quot;: &quot;logs/down.log&quot; } } } META: ran handlers META: ran handlers PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers TASK [debug 2] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_import.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { &quot;backup&quot;: { &quot;diff&quot;: { &quot;parts&quot;: &quot;tmp/gitDiff/&quot;, &quot;report&quot;: &quot;tmp/git.diff&quot; }, &quot;git&quot;: { &quot;repository&quot;: &quot;https://git.corp.cloudwatt.com/noc/backup-int5.git&quot; }, &quot;location&quot;: &quot;../backups/int5&quot;, &quot;log&quot;: { &quot;down&quot;: &quot;logs/down.log&quot; } } } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************************************************************************************************** asa-aub-i-fwloob-0000 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.4.0 config file = /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] Using /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg as config file Vault password: setting up inventory plugins Set default localhost to localhost Parsed /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/inventories/int5 inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: pb__test.yml **************************************************************************************************************************************************************************************************************** 2 plays in pb__test.yml PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; and vault_id=default Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7fadaafbc290&gt; and vault_id=default TASK [debug 1] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_vars.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { "backup": { "diff": { "parts": "tmp/gitDiff/", "report": "tmp/git.diff" }, "git": { "repository": "https://git.corp.cloudwatt.com/noc/backup-int5.git" }, "location": "../backups/int5", "log": { "down": "logs/down.log" } } } META: ran handlers META: ran handlers PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers TASK [debug 2] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_import.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { "backup": { "diff": { "parts": "tmp/gitDiff/", "report": "tmp/git.diff" }, "git": { "repository": "https://git.corp.cloudwatt.com/noc/backup-int5.git" }, "location": "../backups/int5", "log": { "down": "logs/down.log" } } } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************************************************************************************************** asa-aub-i-fwloob-0000 : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.4.0 config file = /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] Using /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg as config file Vault password: setting up inventory plugins Set default localhost to localhost Parsed /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/inventories/int5 inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: pb__test.yml **************************************************************************************************************************************************************************************************************** 2 plays in pb__test.yml PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; and vault_id=default Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; and vault_id=default TASK [debug 1] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_vars.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { &quot;backup&quot;: { &quot;diff&quot;: { &quot;parts&quot;: &quot;tmp/gitDiff/&quot;, &quot;report&quot;: &quot;tmp/git.diff&quot; }, &quot;git&quot;: { &quot;repository&quot;: &quot;https://git.corp.cloudwatt.com/noc/backup-int5.git&quot; }, &quot;location&quot;: &quot;../backups/int5&quot;, &quot;log&quot;: { &quot;down&quot;: &quot;logs/down.log&quot; } } } META: ran handlers META: ran handlers PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers TASK [debug 2] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/test/pb__test_import.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { &quot;backup&quot;: &quot;VARIABLE IS NOT DEFINED!&quot; } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************************************************************************************************** asa-aub-i-fwloob-0000 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.4.0 config file = /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg configured module search path = [u'/home/renji/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] Using /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/ansible.cfg as config file Vault password: setting up inventory plugins Set default localhost to localhost Parsed /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/inventories/int5 inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: pb__test.yml **************************************************************************************************************************************************************************************************************** 2 plays in pb__test.yml PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/all.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; and vault_id=default Found a vault_id (default) in the vaulttext We have a secret associated with vault id (default), will try to use to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying to use vault secret=(&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt;) id=default to decrypt /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/group_vars/int5.yaml Trying secret &lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; for vault_id=default decrypt succesful with secret=&lt;ansible.parsing.vault.PromptVaultSecret object at 0x7f3d160de290&gt; and vault_id=default TASK [debug 1] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/pb__test_vars.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { "backup": { "diff": { "parts": "tmp/gitDiff/", "report": "tmp/git.diff" }, "git": { "repository": "https://git.corp.cloudwatt.com/noc/backup-int5.git" }, "location": "../backups/int5", "log": { "down": "logs/down.log" } } } META: ran handlers META: ran handlers PLAY [Test VARS] ********************************************************************************************************************************************************************************************************************** META: ran handlers TASK [debug 2] ************************************************************************************************************************************************************************************************************************ task path: /home/renji/scripts/cloudwatt/network/ansible/ansible-backup/test/pb__test_import.yml:7 ok: [asa-aub-i-fwloob-0000] =&gt; { "backup": "VARIABLE IS NOT DEFINED!" } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************************************************************************************************** asa-aub-i-fwloob-0000 : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div>
1
<p dir="auto">After update 0.10.10 the code highlight for javascript seems to be different, keywords like <code class="notranslate">function</code> <code class="notranslate">var</code> etc, are not highlighted. Also, when coding, after line break the cursor get back to the start of the line.</p>
<p dir="auto">0.10.10 (Feburary build) has a regression is that the following JavaScript keywords are no longer highlighted in the Dark Visual Studio &amp; Light Visual Studio themes:<br> <code class="notranslate">var</code> <code class="notranslate">let</code> <code class="notranslate">const</code> <code class="notranslate">function</code> <code class="notranslate">get</code> <code class="notranslate">set</code> <code class="notranslate">class</code> <code class="notranslate">interface</code> <code class="notranslate">module</code> <code class="notranslate">namespace</code></p> <p dir="auto">This only affects JavaScript (not TypeScript).<br> The workaround if to switch to the Dark+ Default and Light+ theme.</p> <p dir="auto">Note that there are other colorizing issues open, not caused by this regression: e.g. 'import' and 'from'. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125145725" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-TmLanguage/issues/37" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-TmLanguage/issues/37/hovercard" href="https://github.com/microsoft/TypeScript-TmLanguage/issues/37">microsoft/TypeScript-TmLanguage#37</a></p>
1
<p dir="auto">Files copied to '/static' using CopyWebpackPlugin are successfully created, but then are deleted right after the console messages 'Building page ...'.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Files copied by CopyWebpackPlugin to '/static' don't subsequently get removed by the build process.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Files copied by CopyWebpackPlugin to '/static' get copied, then deleted by the build process.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Run <code class="notranslate">npm run dev</code> with the following next.config.js (note that I'm copying a file from the <code class="notranslate">workbox-sw</code> npm package, but it can be any file):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path') const CopyWebpackPlugin = require('copy-webpack-plugin') module.exports = { webpack: (config, { dev }) =&gt; { config.plugins.push( new CopyWebpackPlugin([ { from: path.join(__dirname, 'node_modules/workbox-sw/build/importScripts/workbox-sw.dev.v2.1.2.js'), to: path.join(__dirname, 'static/scripts/workbox.js') } ])) return config } }"><pre class="notranslate"><code class="notranslate">const path = require('path') const CopyWebpackPlugin = require('copy-webpack-plugin') module.exports = { webpack: (config, { dev }) =&gt; { config.plugins.push( new CopyWebpackPlugin([ { from: path.join(__dirname, 'node_modules/workbox-sw/build/importScripts/workbox-sw.dev.v2.1.2.js'), to: path.join(__dirname, 'static/scripts/workbox.js') } ])) return config } } </code></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">Can't copy files at build time.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4.1.4</td> </tr> <tr> <td>node</td> <td>9.2.0</td> </tr> <tr> <td>OS</td> <td>OS X 10.11.6</td> </tr> <tr> <td>browser</td> <td>Chrome 62</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Using the new <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-css">next-css</a> module in dev mode, I'd like to globally import a css stylesheet and figured out the correct place could be <code class="notranslate">_document.js</code>.</p> <p dir="auto"><code class="notranslate">import '../css/style.css';</code></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It looks like importing css works only in components or in pages.<br> Production is unaffected by this problem as we're using a different strategy: <a href="https://github.com/zeit/next-plugins/tree/master/packages/next-css#production-usage">https://github.com/zeit/next-plugins/tree/master/packages/next-css#production-usage</a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0</td> </tr> <tr> <td>node</td> <td>9.5</td> </tr> <tr> <td>OS</td> <td>MacOS</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">For even numbered periods the centered moving average is calculated incorrectly. Suppose the period length is 5. Then the center of 5 periods is 3. However if the period length is 4 then the center of the period is 2.5. The value at index 3 should be the average of the values at 2.5 and 3.5. Pandas is showing the 2.5 value at 3 which is incorrect.</p> <p dir="auto">EXAMPLE:<br> a=pd.Series(range(1,6), index=range(1,6))<br> a.rolling(4, center=True).mean()</p> <p dir="auto">1 NaN<br> 2 NaN<br> 3 2.5<br> 4 3.5<br> 5 NaN</p>
<p dir="auto">Seems like there is a bug in the centered mooving window functions, although the examples <a href="http://pandas.pydata.org/pandas-docs/stable/computation.html#moving-rolling-statistics-moments" rel="nofollow">here</a> don't show it.<br> Also <code class="notranslate">np.convolve</code> used like in <a href="http://stackoverflow.com/a/11352216/1301710" rel="nofollow">this post</a> on Stackoverflow shows different results for the first values:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [109]: ser = pd.Series(randn(20), index=pd.date_range('1/1/2000', periods=20)) In [110]: df = pd.DataFrame(ser) In [111]: df['rc'] = pd.rolling_count(ser, 10, center=True) In [112]: df['rm'] = pd.rolling_mean(ser, 10, center=True) In [113]: df['rm_min_1'] = pd.rolling_mean(ser, 10, center=True, min_periods=1) In [114]: def movingaverage(interval, window_size): .....: window = numpy.ones(int(window_size))/float(window_size) .....: return numpy.convolve(interval, window, 'same') .....: In [116]: df['ma'] = movingaverage(ser, 10) In [117]: df Out[117]: 0 rc rm rm_min_1 ma 2000-01-01 1.177692 5 NaN 0.048306 0.024153 2000-01-02 -0.068567 6 NaN -0.094287 -0.056572 2000-01-03 0.194942 7 NaN -0.225103 -0.157572 2000-01-04 -0.179778 8 NaN -0.160040 -0.128032 2000-01-05 -0.882760 9 NaN -0.262176 -0.235959 2000-01-06 -0.807252 10 -0.250828 -0.250828 -0.250828 2000-01-07 -1.009999 10 -0.365703 -0.365703 -0.365703 2000-01-08 0.295402 10 -0.431110 -0.431110 -0.431110 2000-01-09 -1.079267 10 -0.408968 -0.408968 -0.408968 2000-01-10 -0.148689 10 -0.456946 -0.456946 -0.456946 2000-01-11 0.028935 10 -0.290453 -0.290453 -0.290453 2000-01-12 -0.722632 10 -0.204166 -0.204166 -0.204166 2000-01-13 0.416364 10 -0.175837 -0.175837 -0.175837 2000-01-14 -0.659560 10 -0.266773 -0.266773 -0.266773 2000-01-15 0.782165 10 -0.184003 -0.184003 -0.184003 2000-01-16 0.055617 10 -0.338359 -0.338359 -0.338359 2000-01-17 -0.726706 0 NaN NaN -0.341252 2000-01-18 -0.613954 0 NaN NaN -0.268989 2000-01-19 -0.251574 0 NaN NaN -0.310625 2000-01-20 -1.692243 0 NaN NaN -0.244669"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">109</span>]: <span class="pl-s1">ser</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-en">randn</span>(<span class="pl-c1">20</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">'1/1/2000'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">20</span>)) <span class="pl-v">In</span> [<span class="pl-c1">110</span>]: <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">ser</span>) <span class="pl-v">In</span> [<span class="pl-c1">111</span>]: <span class="pl-s1">df</span>[<span class="pl-s">'rc'</span>] <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">rolling_count</span>(<span class="pl-s1">ser</span>, <span class="pl-c1">10</span>, <span class="pl-s1">center</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">In</span> [<span class="pl-c1">112</span>]: <span class="pl-s1">df</span>[<span class="pl-s">'rm'</span>] <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">rolling_mean</span>(<span class="pl-s1">ser</span>, <span class="pl-c1">10</span>, <span class="pl-s1">center</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">In</span> [<span class="pl-c1">113</span>]: <span class="pl-s1">df</span>[<span class="pl-s">'rm_min_1'</span>] <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">rolling_mean</span>(<span class="pl-s1">ser</span>, <span class="pl-c1">10</span>, <span class="pl-s1">center</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">min_periods</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-v">In</span> [<span class="pl-c1">114</span>]: <span class="pl-s1">def</span> <span class="pl-en">movingaverage</span>(<span class="pl-s1">interval</span>, <span class="pl-s1">window_size</span>): .....: <span class="pl-s1">window</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">ones</span>(<span class="pl-en">int</span>(<span class="pl-s1">window_size</span>))<span class="pl-c1">/</span><span class="pl-en">float</span>(<span class="pl-s1">window_size</span>) .....: <span class="pl-k">return</span> <span class="pl-s1">numpy</span>.<span class="pl-en">convolve</span>(<span class="pl-s1">interval</span>, <span class="pl-s1">window</span>, <span class="pl-s">'same'</span>) .....: <span class="pl-v">In</span> [<span class="pl-c1">116</span>]: <span class="pl-s1">df</span>[<span class="pl-s">'ma'</span>] <span class="pl-c1">=</span> <span class="pl-en">movingaverage</span>(<span class="pl-s1">ser</span>, <span class="pl-c1">10</span>) <span class="pl-v">In</span> [<span class="pl-c1">117</span>]: <span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">117</span>]: <span class="pl-c1">0</span> <span class="pl-s1">rc</span> <span class="pl-s1">rm</span> <span class="pl-s1">rm_min_1</span> <span class="pl-s1">ma</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">1.177692</span> <span class="pl-c1">5</span> <span class="pl-v">NaN</span> <span class="pl-c1">0.048306</span> <span class="pl-c1">0.024153</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-c1">-</span><span class="pl-c1">0.068567</span> <span class="pl-c1">6</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.094287</span> <span class="pl-c1">-</span><span class="pl-c1">0.056572</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-c1">0.194942</span> <span class="pl-c1">7</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.225103</span> <span class="pl-c1">-</span><span class="pl-c1">0.157572</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">04</span> <span class="pl-c1">-</span><span class="pl-c1">0.179778</span> <span class="pl-c1">8</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.160040</span> <span class="pl-c1">-</span><span class="pl-c1">0.128032</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">05</span> <span class="pl-c1">-</span><span class="pl-c1">0.882760</span> <span class="pl-c1">9</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.262176</span> <span class="pl-c1">-</span><span class="pl-c1">0.235959</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">06</span> <span class="pl-c1">-</span><span class="pl-c1">0.807252</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.250828</span> <span class="pl-c1">-</span><span class="pl-c1">0.250828</span> <span class="pl-c1">-</span><span class="pl-c1">0.250828</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">-</span><span class="pl-c1">1.009999</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.365703</span> <span class="pl-c1">-</span><span class="pl-c1">0.365703</span> <span class="pl-c1">-</span><span class="pl-c1">0.365703</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">08</span> <span class="pl-c1">0.295402</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.431110</span> <span class="pl-c1">-</span><span class="pl-c1">0.431110</span> <span class="pl-c1">-</span><span class="pl-c1">0.431110</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">09</span> <span class="pl-c1">-</span><span class="pl-c1">1.079267</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.408968</span> <span class="pl-c1">-</span><span class="pl-c1">0.408968</span> <span class="pl-c1">-</span><span class="pl-c1">0.408968</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.148689</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.456946</span> <span class="pl-c1">-</span><span class="pl-c1">0.456946</span> <span class="pl-c1">-</span><span class="pl-c1">0.456946</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">11</span> <span class="pl-c1">0.028935</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.290453</span> <span class="pl-c1">-</span><span class="pl-c1">0.290453</span> <span class="pl-c1">-</span><span class="pl-c1">0.290453</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">12</span> <span class="pl-c1">-</span><span class="pl-c1">0.722632</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.204166</span> <span class="pl-c1">-</span><span class="pl-c1">0.204166</span> <span class="pl-c1">-</span><span class="pl-c1">0.204166</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">13</span> <span class="pl-c1">0.416364</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.175837</span> <span class="pl-c1">-</span><span class="pl-c1">0.175837</span> <span class="pl-c1">-</span><span class="pl-c1">0.175837</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">14</span> <span class="pl-c1">-</span><span class="pl-c1">0.659560</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.266773</span> <span class="pl-c1">-</span><span class="pl-c1">0.266773</span> <span class="pl-c1">-</span><span class="pl-c1">0.266773</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">15</span> <span class="pl-c1">0.782165</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.184003</span> <span class="pl-c1">-</span><span class="pl-c1">0.184003</span> <span class="pl-c1">-</span><span class="pl-c1">0.184003</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">16</span> <span class="pl-c1">0.055617</span> <span class="pl-c1">10</span> <span class="pl-c1">-</span><span class="pl-c1">0.338359</span> <span class="pl-c1">-</span><span class="pl-c1">0.338359</span> <span class="pl-c1">-</span><span class="pl-c1">0.338359</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">17</span> <span class="pl-c1">-</span><span class="pl-c1">0.726706</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.341252</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">18</span> <span class="pl-c1">-</span><span class="pl-c1">0.613954</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.268989</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">19</span> <span class="pl-c1">-</span><span class="pl-c1">0.251574</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.310625</span> <span class="pl-c1">2000</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">20</span> <span class="pl-c1">-</span><span class="pl-c1">1.692243</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">-</span><span class="pl-c1">0.244669</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [5]: import numpy In [6]: In [20]: ser = pd.Series(range(10)) ...: ...: df = pd.DataFrame(ser) ...: ...: N=3 ...: ...: df['rc'] = ser.rolling(N, center=True).count() ...: ...: df['rm'] = ser.rolling(N, center=True).mean() ...: ...: df['rm_min_1'] = ser.rolling(N, center=True, min_periods=1).mean() ...: ...: def movingaverage(interval, window_size): ...: ...: window = numpy.ones(int(window_size))/float(window_size) ...: ...: return numpy.convolve(interval, window, 'same') ...: ...: ...: ...: df['ma'] = movingaverage(ser, N) In [7]: df Out[7]: 0 rc rm rm_min_1 ma 0 0 2.0 NaN 0.5 0.333333 1 1 3.0 1.0 1.0 1.000000 2 2 3.0 2.0 2.0 2.000000 3 3 3.0 3.0 3.0 3.000000 4 4 3.0 4.0 4.0 4.000000 5 5 3.0 5.0 5.0 5.000000 6 6 3.0 6.0 6.0 6.000000 7 7 3.0 7.0 7.0 7.000000 8 8 3.0 8.0 8.0 8.000000 9 9 2.0 NaN 8.5 5.666667"><pre class="notranslate"><code class="notranslate">In [5]: import numpy In [6]: In [20]: ser = pd.Series(range(10)) ...: ...: df = pd.DataFrame(ser) ...: ...: N=3 ...: ...: df['rc'] = ser.rolling(N, center=True).count() ...: ...: df['rm'] = ser.rolling(N, center=True).mean() ...: ...: df['rm_min_1'] = ser.rolling(N, center=True, min_periods=1).mean() ...: ...: def movingaverage(interval, window_size): ...: ...: window = numpy.ones(int(window_size))/float(window_size) ...: ...: return numpy.convolve(interval, window, 'same') ...: ...: ...: ...: df['ma'] = movingaverage(ser, N) In [7]: df Out[7]: 0 rc rm rm_min_1 ma 0 0 2.0 NaN 0.5 0.333333 1 1 3.0 1.0 1.0 1.000000 2 2 3.0 2.0 2.0 2.000000 3 3 3.0 3.0 3.0 3.000000 4 4 3.0 4.0 4.0 4.000000 5 5 3.0 5.0 5.0 5.000000 6 6 3.0 6.0 6.0 6.000000 7 7 3.0 7.0 7.0 7.000000 8 8 3.0 8.0 8.0 8.000000 9 9 2.0 NaN 8.5 5.666667 </code></pre></div>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.6.10</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/x725dcbu/2/" rel="nofollow">https://jsfiddle.net/x725dcbu/2/</a></p> <h3 dir="auto">Steps to reproduce</h3> <h3 dir="auto">What is expected?</h3> <p dir="auto">html &amp; template have the same behavior</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">normal markup:<br> <code class="notranslate">&lt;input value="&amp;#102;&amp;#111;&amp;#111;"&gt;</code> gives <code class="notranslate">foo</code></p> <p dir="auto">vue template<br> <code class="notranslate">&lt;input value="&amp;#102;&amp;#111;&amp;#111;"&gt;</code> gives <code class="notranslate">&amp;#102;&amp;#111;&amp;#111;</code></p> <h3 dir="auto">additional note</h3> <p dir="auto">in a SSR context, the generated HTML is correct, ie. <code class="notranslate">&lt;input value="&amp;#102;&amp;#111;&amp;#111;"&gt;</code></p>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">I have a few VueJS components to show a dashboard.<br> I would like to reuse the components to send an email with the latest view of the dashboard.<br> My server-part is using SpringBoot.<br> For the moment, I'm forced to duplicate the VueJS components into Thymeleaf templates.<br> So I have to maintain both components and templates.<br> Would it be possible to achieve that?</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">I would like to ask a Vue tool to render one or more components by giving them data as parameters.<br> Either a command-line tool or, better, something that can be compiled in a Java tool or other languages and libraries...</p>
0
<p dir="auto">Hi,<br> What's the best way to load a neural network that uses cudnn?</p> <p dir="auto">I heard 'load_lua' doesn't work for cudnn (<a href="https://discuss.pytorch.org/t/convert-import-torch-model-to-pytorch/37/12" rel="nofollow">https://discuss.pytorch.org/t/convert-import-torch-model-to-pytorch/37/12</a>).</p>
<p dir="auto">Probably most checkpoints have cudnn, should be able to load these.</p>
1
<p dir="auto">Why do i get this error<br> <code class="notranslate">App threw an error when running [TypeError: Cannot read property 'start' of undefined]</code></p> <p dir="auto">trying to run: <code class="notranslate">npm start</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron'); const app = electron.app; // Module to control application life. const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. app.on('ready', function() { // Create the browser window. mainWindow = new BrowserWindow({width: 800, height: 600}); // and load the index.html of the app. mainWindow.loadURL('file://' + __dirname + '/index.html'); })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">app</span><span class="pl-kos">;</span> <span class="pl-c">// Module to control application life.</span> <span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">BrowserWindow</span><span class="pl-kos">;</span> <span class="pl-c">// Module to create native browser window.</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Create the browser window.</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// and load the index.html of the app.</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'file://'</span> <span class="pl-c1">+</span> <span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/index.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">but if use</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron'); const app = require('app'); const BrowserWindow = require('browser-window')"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'app'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'browser-window'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">it works nice</p> <p dir="auto">Tested in:<br> OSX El Capitan<br> node: v4.0.0 ^ npm: 2.14.2 ^ "electron-prebuilt": "^0.35.4"<br> node: v5.1.1 ^ npm: 3.3.12 ^ "electron-prebuilt": "^0.35.4"</p>
<p dir="auto">Recently I wanted to test how well electron works on fedora 23. It turns out the prebuilt version doesn't seem to work very well. I am getting this error on the <code class="notranslate">electron-quick-start</code> repo:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ electron-quick-start git:(master) npm start &gt; [email protected] start /home/tom/Programming/electron-quick-start &gt; electron main.js App threw an error when running [TypeError: Cannot read property 'start' of undefined] A JavaScript error occurred in the main process Uncaught Exception: TypeError: Cannot read property 'start' of undefined at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/main.js:7:23) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/node_modules/electron-prebuilt/dist/resources/default_app/main.js:252:23) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) "><pre class="notranslate"><code class="notranslate">➜ electron-quick-start git:(master) npm start &gt; [email protected] start /home/tom/Programming/electron-quick-start &gt; electron main.js App threw an error when running [TypeError: Cannot read property 'start' of undefined] A JavaScript error occurred in the main process Uncaught Exception: TypeError: Cannot read property 'start' of undefined at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/main.js:7:23) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/node_modules/electron-prebuilt/dist/resources/default_app/main.js:252:23) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) </code></pre></div> <p dir="auto">I haven't tried to build electron manually on fedora 23 yet, but just wanted to let you know that the prebuit fails on my side. (x86-64, fedora 23, npm 3.3.12, node 5.1.1, electron 0.35 (as specified in the package.json))</p>
1
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/3071/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/3071/</a></p> <p dir="auto">Failed: Up {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kops configuration failed: error running kops config: exit status 1"><pre class="notranslate"><code class="notranslate">kops configuration failed: error running kops config: exit status 1 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178786165" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33357" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33357/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33357">#33357</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178925015" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33377" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33377/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33377">#33377</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180814107" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33993" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33993/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33993">#33993</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180962358" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34033" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34033/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34033">#34033</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182969158" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34796" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34796/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34796">#34796</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/</a></p> <p dir="auto">Failed: Up {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error running up: exit status 1"><pre class="notranslate"><code class="notranslate">error running up: exit status 1 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178786165" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33357" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33357/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33357">#33357</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178925015" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33377" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33377/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33377">#33377</a></p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lineinfile</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.6.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/jsteel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.14 (default, Jan 5 2018, 10:41:29) [GCC 7.2.1 20171224]"><pre class="notranslate"><code class="notranslate">ansible 2.6.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/jsteel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.14 (default, Jan 5 2018, 10:41:29) [GCC 7.2.1 20171224] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Recent change <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253305474" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/28721" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/28721/hovercard" href="https://github.com/ansible/ansible/issues/28721">#28721</a> breaks my config where I use both regexp AND insertafter; the regexp doesn't seem to match any more, so on every subsequent run it inserts duplicate lines.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: my.cnf options lineinfile: dest: &quot;{{ mariadb_config }}&quot; regexp: &quot;^{{ item.option }}=&quot; line: &quot;{{ item.option }}={{ item.value }}&quot; insertafter: '^\[{{ item.section }}\]' with_items: - { section: mysqld, option: innodb_log_file_size, value: &quot;{{ innodb_log_file_size }}&quot; } - { section: mysqld, option: default-storage-engine, value: innodb } - { section: mysqld, option: max_allowed_packet, value: 128M }"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">my.cnf options</span> <span class="pl-ent">lineinfile</span>: <span class="pl-ent">dest</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ mariadb_config }}<span class="pl-pds">"</span></span> <span class="pl-ent">regexp</span>: <span class="pl-s"><span class="pl-pds">"</span>^{{ item.option }}=<span class="pl-pds">"</span></span> <span class="pl-ent">line</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item.option }}={{ item.value }}<span class="pl-pds">"</span></span> <span class="pl-ent">insertafter</span>: <span class="pl-s"><span class="pl-pds">'</span>^\[{{ item.section }}\]<span class="pl-pds">'</span></span> <span class="pl-ent">with_items</span>: - <span class="pl-s">{ section: mysqld, option: innodb_log_file_size, value: "{{ innodb_log_file_size }}" }</span> - <span class="pl-s">{ section: mysqld, option: default-storage-engine, value: innodb }</span> - <span class="pl-s">{ section: mysqld, option: max_allowed_packet, value: 128M }</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">On subsequent runs, nothing should change.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">A duplicate line is inserted for each item, for eg:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- before: /etc/my.cnf (content) +++ after: /etc/my.cnf (content) @@ -1,4 +1,5 @@ [mysqld] +default-storage-engine=innodb skip-name-resolve max_allowed_packet=128M default-storage-engine=innodb"><pre class="notranslate"><code class="notranslate">--- before: /etc/my.cnf (content) +++ after: /etc/my.cnf (content) @@ -1,4 +1,5 @@ [mysqld] +default-storage-engine=innodb skip-name-resolve max_allowed_packet=128M default-storage-engine=innodb </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/halberom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/halberom">@halberom</a> on 2015-09-21T143421Z</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ec2_group module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">_<br> 1.9.3<br> devel<br> _</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/halberom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/halberom">@halberom</a> on 2015-09-21T14:34:21Z<br> <em>Description</em></p> <p dir="auto">Currently running ec2_group with a rule like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - proto: tcp from_port: 9200 to_port: 9200 cidr_ip: - 10.220.130.0/27 - 172.16.60.0/24"><pre class="notranslate"><code class="notranslate"> - proto: tcp from_port: 9200 to_port: 9200 cidr_ip: - 10.220.130.0/27 - 172.16.60.0/24 </code></pre></div> <p dir="auto">Works fine on the first run, but fails on the second with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidPermission.Duplicate&lt;/Code&gt;&lt;Message&gt;the specified rule &quot;peer: 10.220.130.0/27, TCP, from port: 9200, to port: 9200, ALLOW&quot; already exists&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt;&lt;RequestID&gt;1fdf97c8-e078-4d0d-89da-cf65e498b710&lt;/RequestID&gt;&lt;/Response&gt;"><pre class="notranslate"><code class="notranslate">&lt;Response&gt;&lt;Errors&gt;&lt;Error&gt;&lt;Code&gt;InvalidPermission.Duplicate&lt;/Code&gt;&lt;Message&gt;the specified rule "peer: 10.220.130.0/27, TCP, from port: 9200, to port: 9200, ALLOW" already exists&lt;/Message&gt;&lt;/Error&gt;&lt;/Errors&gt;&lt;RequestID&gt;1fdf97c8-e078-4d0d-89da-cf65e498b710&lt;/RequestID&gt;&lt;/Response&gt; </code></pre></div> <p dir="auto">It has been discussed <a href="https://groups.google.com/forum/#!msg/ansible-project/Int4x36MDmc/mZoXM9bOxIIJ" rel="nofollow">here</a>.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">run an ec2_group task that creates the above rule, then re-run it</p> <h5 dir="auto">Expected result</h5> <p dir="auto">it creates the rules the first time, and then doens't make any changes or error the second time</p> <h5 dir="auto">Actual result</h5> <p dir="auto">it creates the rules the first time, and then errors</p> <h5 dir="auto">Desired</h5> <p dir="auto">Given that it works on the first run, and correctly creates the group and rules, it would be nice for it to work on subsequent runs. Either that or write a fail statement and stop it working on the first run.</p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107526111" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2120" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2120/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2120">ansible/ansible-modules-core#2120</a></p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107526111" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/2120" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/2120/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/2120">ansible/ansible-modules-core#2120</a></p>
0
<p dir="auto">When you have a prepended or appended like this below on a form-inline it brokes.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;input-prepend&quot;&gt; &lt;span class=&quot;add-on&quot;&gt;@&lt;/span&gt; &lt;input class=&quot;span2&quot; id=&quot;prependedInput&quot; size=&quot;16&quot; type=&quot;text&quot;&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="input-prepend"&gt; &lt;span class="add-on"&gt;@&lt;/span&gt; &lt;input class="span2" id="prependedInput" size="16" type="text"&gt; &lt;/div&gt; </code></pre></div>
<p dir="auto">If use "input-append" then "help-inline" not center vertical</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;form method=&quot;post&quot; class=&quot;form-horizontal&quot;&gt; &lt;fieldset&gt; &lt;div class=&quot;control-group&quot;&gt; &lt;label class=&quot;control-label&quot; for=&quot;appendedInput&quot;&gt;Appended text&lt;/label&gt; &lt;div class=&quot;controls&quot;&gt; &lt;div class=&quot;input-append&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;medium&quot; id=&quot;appendedInput&quot; name=&quot;appendedInput&quot; size=&quot;16&quot;&gt; &lt;span class=&quot;add-on&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;help-inline&quot;&gt;not center&lt;/span&gt; &lt;/div&gt; &lt;span class=&quot;help-block&quot;&gt;Here's some help text&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;/form&gt;"><pre class="notranslate"><code class="notranslate">&lt;form method="post" class="form-horizontal"&gt; &lt;fieldset&gt; &lt;div class="control-group"&gt; &lt;label class="control-label" for="appendedInput"&gt;Appended text&lt;/label&gt; &lt;div class="controls"&gt; &lt;div class="input-append"&gt; &lt;input type="text" class="medium" id="appendedInput" name="appendedInput" size="16"&gt; &lt;span class="add-on"&gt;%&lt;/span&gt;&lt;span class="help-inline"&gt;not center&lt;/span&gt; &lt;/div&gt; &lt;span class="help-block"&gt;Here's some help text&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;/form&gt; </code></pre></div> <p dir="auto">Opera</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Import matplotlib.pyplot fails on MacOSX</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/Apollo/PycharmProjects/CT_registration/main.py&quot;, line 114, in &lt;module&gt; moving_npa=fixed(sitk.GetArrayViewFromImage(movingImage))) File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/ipywidgets/widgets/interaction.py&quot;, line 531, in __call__ show_inline_matplotlib_plots() File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/ipywidgets/widgets/interaction.py&quot;, line 52, in show_inline_matplotlib_plots from ipykernel.pylab.backend_inline import flush_figures File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/ipykernel/pylab/backend_inline.py&quot;, line 9, in &lt;module&gt; from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg # analysis: ignore File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py&quot;, line 32, in &lt;module&gt; from matplotlib.backend_bases import ( File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/backend_bases.py&quot;, line 53, in &lt;module&gt; from matplotlib import ( File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/textpath.py&quot;, line 17, in &lt;module&gt; import matplotlib.font_manager as font_manager File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1469, in &lt;module&gt; _rebuild() File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1450, in _rebuild fontManager = FontManager() File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1086, in __init__ self.ttflist = createFontList(self.ttffiles) File &quot;/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 587, in createFontList font = ft2font.FT2Font(fpath) TypeError: First argument must be a path or file object reading bytes Process finished with exit code 1"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/Users/Apollo/PycharmProjects/CT_registration/main.py", line 114, in &lt;module&gt; moving_npa=fixed(sitk.GetArrayViewFromImage(movingImage))) File "/Users/Apollo/venv/lib/python2.7/site-packages/ipywidgets/widgets/interaction.py", line 531, in __call__ show_inline_matplotlib_plots() File "/Users/Apollo/venv/lib/python2.7/site-packages/ipywidgets/widgets/interaction.py", line 52, in show_inline_matplotlib_plots from ipykernel.pylab.backend_inline import flush_figures File "/Users/Apollo/venv/lib/python2.7/site-packages/ipykernel/pylab/backend_inline.py", line 9, in &lt;module&gt; from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg # analysis: ignore File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 32, in &lt;module&gt; from matplotlib.backend_bases import ( File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 53, in &lt;module&gt; from matplotlib import ( File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/textpath.py", line 17, in &lt;module&gt; import matplotlib.font_manager as font_manager File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1469, in &lt;module&gt; _rebuild() File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1450, in _rebuild fontManager = FontManager() File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1086, in __init__ self.ttflist = createFontList(self.ttffiles) File "/Users/Apollo/venv/lib/python2.7/site-packages/matplotlib/font_manager.py", line 587, in createFontList font = ft2font.FT2Font(fpath) TypeError: First argument must be a path or file object reading bytes Process finished with exit code 1 </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Mac OS X Lion 10.7.5</li> <li>Matplotlib version: 2.2.2</li> <li>Matplotlib backend: MacOSX</li> <li>Python version: 2.7.1</li> <li>Jupyter version: jupyter-client==5.2.3 jupyter-core==4.4.0</li> <li>Other libraries: SimpleITK, ipywidgets</li> </ul> <p dir="auto">I installed matplotlib from source. I am on a virtual environment.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto">As originally reported in <a href="http://gnats.netbsd.org/53425" rel="nofollow">http://gnats.netbsd.org/53425</a> , with matplotlib version 2.2.2, attempting to <code class="notranslate">import matplotlib.pyplot</code> on a NetBSD system fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/pyplot.py&quot;, line 31, in &lt;module&gt; import matplotlib.colorbar File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/colorbar.py&quot;, line 36, in &lt;module&gt; import matplotlib.contour as contour File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/contour.py&quot;, line 20, in &lt;module&gt; import matplotlib.font_manager as font_manager File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1469, in &lt;module&gt; _rebuild() File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1450, in _rebuild fontManager = FontManager() File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 1086, in __init__ self.ttflist = createFontList(self.ttffiles) File &quot;/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py&quot;, line 587, in createFontList font = ft2font.FT2Font(fpath) TypeError: First argument must be a path or file object reading bytes"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "/usr/pkg/lib/python2.7/site-packages/matplotlib/pyplot.py", line 31, in &lt;module&gt; import matplotlib.colorbar File "/usr/pkg/lib/python2.7/site-packages/matplotlib/colorbar.py", line 36, in &lt;module&gt; import matplotlib.contour as contour File "/usr/pkg/lib/python2.7/site-packages/matplotlib/contour.py", line 20, in &lt;module&gt; import matplotlib.font_manager as font_manager File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1469, in &lt;module&gt; _rebuild() File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1450, in _rebuild fontManager = FontManager() File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 1086, in __init__ self.ttflist = createFontList(self.ttffiles) File "/usr/pkg/lib/python2.7/site-packages/matplotlib/font_manager.py", line 587, in createFontList font = ft2font.FT2Font(fpath) TypeError: First argument must be a path or file object reading bytes </code></pre></div> <p dir="auto">I tracked down the cause of this to <code class="notranslate">mpl_PyFile_Dup()</code> attempting to call the "flush" method of a file object that is open only for reading. Python implements this by calling <code class="notranslate">fflush()</code>, and calling <code class="notranslate">fflush()</code> on a file descriptor not open for writing is treated as an error on BSD systems (but silently ignored on Linux). The <code class="notranslate">fflush()</code> call returns -1 with errno=EBADF, and this ultimately gets translated into the rather unhelpful error message "TypeError: First argument must be a path or file object reading bytes" show above.</p> <p dir="auto">The call chain leading to the error is PyFT2Font_init() -&gt; convert_open_args() -&gt; mpl_PyFile_Dup().</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">On a BSD system, run</p> <p dir="auto">python2.7 -c 'import matplotlib.pyplot'</p> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">The stack trace shown above is printed.</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The command silently exits with a success status.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: NetBSD 7.1_STABLE</li> <li>Matplotlib version: 2.2.2</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): GTKAgg</li> <li>Python version: 2.7.15</li> <li>Jupyter version (if applicable): N/A</li> <li>Other libraries: N/A</li> </ul> <p dir="auto">matplotlib was installed via pkgsrc.</p> <p dir="auto">I have a patch which I will attempt to submit as a pull request.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Starting in matplotlib 3.1.1, the outer cells of the <code class="notranslate">mathshow</code> (and <code class="notranslate">imshow</code>) functions cut cells off by half.</p> <p dir="auto">Before (matplotlib &lt;= 3.1.0):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5618407/69210413-53bd5f00-0b20-11ea-9a53-aa34d13e7b6c.png"><img src="https://user-images.githubusercontent.com/5618407/69210413-53bd5f00-0b20-11ea-9a53-aa34d13e7b6c.png" alt="Screen Shot 2019-11-19 at 10 59 53 PM" style="max-width: 100%;"></a></p> <p dir="auto">After (matplotlib == 3.1.1:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5618407/69210659-17d6c980-0b21-11ea-8ed6-3be67a2c134e.png"><img src="https://user-images.githubusercontent.com/5618407/69210659-17d6c980-0b21-11ea-8ed6-3be67a2c134e.png" alt="Screen Shot 2019-11-19 at 11 05 28 PM" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np import matplotlib.pyplot as plt #from mlxtend.plotting import heatmap df = pd.read_csv('https://raw.githubusercontent.com/rasbt/' 'python-machine-learning-book-2nd-edition' '/master/code/ch10/housing.data.txt', header=None, sep='\s+') df.columns = ['CRIM', 'ZN', 'INDUS', 'CHAS', 'NOX', 'RM', 'AGE', 'DIS', 'RAD', 'TAX', 'PTRATIO', 'B', 'LSTAT', 'MEDV'] cols = ['LSTAT', 'INDUS', 'NOX', 'RM', 'MEDV'] import matplotlib.pyplot as plt import numpy as np def heatmap(matrix, hide_spines=False, hide_ticks=False, figsize=None, cmap=None, colorbar=True, row_names=None, column_names=None, column_name_rotation=45, cell_fmt='.2f', cell_font_size=None): &quot;&quot;&quot;Plot a heatmap via matplotlib. Parameters ----------- conf_mat : array-like, shape = [n_rows, n_columns] And arbitrary 2D array. hide_spines : bool (default: False) Hides axis spines if True. hide_ticks : bool (default: False) Hides axis ticks if True figsize : tuple (default: (2.5, 2.5)) Height and width of the figure cmap : matplotlib colormap (default: `None`) Uses matplotlib.pyplot.cm.viridis if `None` colorbar : bool (default: True) Shows a colorbar if True row_names : array-like, shape = [n_rows] (default: None) List of row names to be used as y-axis tick labels. column_names : array-like, shape = [n_columns] (default: None) List of column names to be used as x-axis tick labels. column_name_rotation : int (default: 45) Number of degrees for rotating column x-tick labels. cell_fmt : string (default: '.2f') Format specification for cell values. cell_font_size : int (default: None) Font size for cell values Returns ----------- fig, ax : matplotlib.pyplot subplot objects Figure and axis elements of the subplot. Examples ----------- For usage examples, please see http://rasbt.github.io/mlxtend/user_guide/plotting/heatmap/ &quot;&quot;&quot; if row_names is not None and len(row_names) != matrix.shape[0]: raise AssertionError(f'len(row_names) (got {len(row_names)})' ' should be equal to number of' ' rows in the input ' f' array (expect {matrix.shape[0]}).') if column_names is not None and len(column_names) != matrix.shape[1]: raise AssertionError(f'len(column_names)' ' (got {len(column_names)})' ' should be equal to number of' ' columns in the' f' input array (expect {matrix.shape[1]}).') fig, ax = plt.subplots(figsize=figsize) ax.grid(False) if cmap is None: cmap = plt.cm.viridis if figsize is None: figsize = (len(matrix)*1.25, len(matrix)*1.25) matshow = ax.matshow(matrix, cmap=cmap) if colorbar: fig.colorbar(matshow) normed_matrix = matrix.astype('float') / matrix.max() for i in range(matrix.shape[0]): for j in range(matrix.shape[1]): cell_text = format(matrix[i, j], cell_fmt) ax.text(x=j, y=i, size=cell_font_size, s=cell_text, va='center', ha='center', color=&quot;white&quot; if normed_matrix[i, j] &lt; 0.5 else &quot;black&quot;) if row_names is not None: tick_marks = np.arange(len(row_names)) plt.yticks(tick_marks, row_names) if column_names is not None: tick_marks = np.arange(len(column_names)) plt.xticks(tick_marks, column_names, rotation=column_name_rotation) if hide_spines: ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) ax.spines['left'].set_visible(False) ax.spines['bottom'].set_visible(False) ax.yaxis.set_ticks_position('left') ax.xaxis.set_ticks_position('bottom') if hide_ticks: ax.axes.get_yaxis().set_ticks([]) ax.axes.get_xaxis().set_ticks([]) return fig, ax cm = np.corrcoef(df[cols].values.T) hm = heatmap(cm, row_names=cols, column_names=cols) plt.tight_layout() plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-c">#from mlxtend.plotting import heatmap</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'https://raw.githubusercontent.com/rasbt/'</span> <span class="pl-s">'python-machine-learning-book-2nd-edition'</span> <span class="pl-s">'/master/code/ch10/housing.data.txt'</span>, <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">sep</span><span class="pl-c1">=</span><span class="pl-s">'\s+'</span>) <span class="pl-s1">df</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'CRIM'</span>, <span class="pl-s">'ZN'</span>, <span class="pl-s">'INDUS'</span>, <span class="pl-s">'CHAS'</span>, <span class="pl-s">'NOX'</span>, <span class="pl-s">'RM'</span>, <span class="pl-s">'AGE'</span>, <span class="pl-s">'DIS'</span>, <span class="pl-s">'RAD'</span>, <span class="pl-s">'TAX'</span>, <span class="pl-s">'PTRATIO'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'LSTAT'</span>, <span class="pl-s">'MEDV'</span>] <span class="pl-s1">cols</span> <span class="pl-c1">=</span> [<span class="pl-s">'LSTAT'</span>, <span class="pl-s">'INDUS'</span>, <span class="pl-s">'NOX'</span>, <span class="pl-s">'RM'</span>, <span class="pl-s">'MEDV'</span>] <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">def</span> <span class="pl-en">heatmap</span>(<span class="pl-s1">matrix</span>, <span class="pl-s1">hide_spines</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">hide_ticks</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">colorbar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">row_names</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">column_names</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">column_name_rotation</span><span class="pl-c1">=</span><span class="pl-c1">45</span>, <span class="pl-s1">cell_fmt</span><span class="pl-c1">=</span><span class="pl-s">'.2f'</span>, <span class="pl-s1">cell_font_size</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s">"""Plot a heatmap via matplotlib.</span> <span class="pl-s"></span> <span class="pl-s"> Parameters</span> <span class="pl-s"> -----------</span> <span class="pl-s"> conf_mat : array-like, shape = [n_rows, n_columns]</span> <span class="pl-s"> And arbitrary 2D array.</span> <span class="pl-s"></span> <span class="pl-s"> hide_spines : bool (default: False)</span> <span class="pl-s"> Hides axis spines if True.</span> <span class="pl-s"></span> <span class="pl-s"> hide_ticks : bool (default: False)</span> <span class="pl-s"> Hides axis ticks if True</span> <span class="pl-s"></span> <span class="pl-s"> figsize : tuple (default: (2.5, 2.5))</span> <span class="pl-s"> Height and width of the figure</span> <span class="pl-s"></span> <span class="pl-s"> cmap : matplotlib colormap (default: `None`)</span> <span class="pl-s"> Uses matplotlib.pyplot.cm.viridis if `None`</span> <span class="pl-s"></span> <span class="pl-s"> colorbar : bool (default: True)</span> <span class="pl-s"> Shows a colorbar if True</span> <span class="pl-s"></span> <span class="pl-s"> row_names : array-like, shape = [n_rows] (default: None)</span> <span class="pl-s"> List of row names to be used as y-axis tick labels.</span> <span class="pl-s"></span> <span class="pl-s"> column_names : array-like, shape = [n_columns] (default: None)</span> <span class="pl-s"> List of column names to be used as x-axis tick labels.</span> <span class="pl-s"></span> <span class="pl-s"> column_name_rotation : int (default: 45)</span> <span class="pl-s"> Number of degrees for rotating column x-tick labels.</span> <span class="pl-s"></span> <span class="pl-s"> cell_fmt : string (default: '.2f')</span> <span class="pl-s"> Format specification for cell values.</span> <span class="pl-s"></span> <span class="pl-s"> cell_font_size : int (default: None)</span> <span class="pl-s"> Font size for cell values</span> <span class="pl-s"></span> <span class="pl-s"> Returns</span> <span class="pl-s"> -----------</span> <span class="pl-s"> fig, ax : matplotlib.pyplot subplot objects</span> <span class="pl-s"> Figure and axis elements of the subplot.</span> <span class="pl-s"></span> <span class="pl-s"> Examples</span> <span class="pl-s"> -----------</span> <span class="pl-s"> For usage examples, please see</span> <span class="pl-s"> http://rasbt.github.io/mlxtend/user_guide/plotting/heatmap/</span> <span class="pl-s"></span> <span class="pl-s"> """</span> <span class="pl-k">if</span> <span class="pl-s1">row_names</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span> <span class="pl-c1">and</span> <span class="pl-en">len</span>(<span class="pl-s1">row_names</span>) <span class="pl-c1">!=</span> <span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]: <span class="pl-k">raise</span> <span class="pl-v">AssertionError</span>(<span class="pl-s">f'len(row_names) (got <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-en">len</span>(<span class="pl-s1">row_names</span>)<span class="pl-kos">}</span></span>)'</span> <span class="pl-s">' should be equal to number of'</span> <span class="pl-s">' rows in the input '</span> <span class="pl-s">f' array (expect <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]<span class="pl-kos">}</span></span>).'</span>) <span class="pl-k">if</span> <span class="pl-s1">column_names</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span> <span class="pl-c1">and</span> <span class="pl-en">len</span>(<span class="pl-s1">column_names</span>) <span class="pl-c1">!=</span> <span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]: <span class="pl-k">raise</span> <span class="pl-v">AssertionError</span>(<span class="pl-s">f'len(column_names)'</span> <span class="pl-s">' (got {len(column_names)})'</span> <span class="pl-s">' should be equal to number of'</span> <span class="pl-s">' columns in the'</span> <span class="pl-s">f' input array (expect <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]<span class="pl-kos">}</span></span>).'</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span><span class="pl-s1">figsize</span>) <span class="pl-s1">ax</span>.<span class="pl-en">grid</span>(<span class="pl-c1">False</span>) <span class="pl-k">if</span> <span class="pl-s1">cmap</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-s1">viridis</span> <span class="pl-k">if</span> <span class="pl-s1">figsize</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: <span class="pl-s1">figsize</span> <span class="pl-c1">=</span> (<span class="pl-en">len</span>(<span class="pl-s1">matrix</span>)<span class="pl-c1">*</span><span class="pl-c1">1.25</span>, <span class="pl-en">len</span>(<span class="pl-s1">matrix</span>)<span class="pl-c1">*</span><span class="pl-c1">1.25</span>) <span class="pl-s1">matshow</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">matshow</span>(<span class="pl-s1">matrix</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">cmap</span>) <span class="pl-k">if</span> <span class="pl-s1">colorbar</span>: <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">matshow</span>) <span class="pl-s1">normed_matrix</span> <span class="pl-c1">=</span> <span class="pl-s1">matrix</span>.<span class="pl-en">astype</span>(<span class="pl-s">'float'</span>) <span class="pl-c1">/</span> <span class="pl-s1">matrix</span>.<span class="pl-en">max</span>() <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]): <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">matrix</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]): <span class="pl-s1">cell_text</span> <span class="pl-c1">=</span> <span class="pl-en">format</span>(<span class="pl-s1">matrix</span>[<span class="pl-s1">i</span>, <span class="pl-s1">j</span>], <span class="pl-s1">cell_fmt</span>) <span class="pl-s1">ax</span>.<span class="pl-en">text</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s1">j</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s1">i</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s1">cell_font_size</span>, <span class="pl-s1">s</span><span class="pl-c1">=</span><span class="pl-s1">cell_text</span>, <span class="pl-s1">va</span><span class="pl-c1">=</span><span class="pl-s">'center'</span>, <span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">'center'</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"white"</span> <span class="pl-k">if</span> <span class="pl-s1">normed_matrix</span>[<span class="pl-s1">i</span>, <span class="pl-s1">j</span>] <span class="pl-c1">&lt;</span> <span class="pl-c1">0.5</span> <span class="pl-k">else</span> <span class="pl-s">"black"</span>) <span class="pl-k">if</span> <span class="pl-s1">row_names</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">tick_marks</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">row_names</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">yticks</span>(<span class="pl-s1">tick_marks</span>, <span class="pl-s1">row_names</span>) <span class="pl-k">if</span> <span class="pl-s1">column_names</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">tick_marks</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">column_names</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-s1">tick_marks</span>, <span class="pl-s1">column_names</span>, <span class="pl-s1">rotation</span><span class="pl-c1">=</span><span class="pl-s1">column_name_rotation</span>) <span class="pl-k">if</span> <span class="pl-s1">hide_spines</span>: <span class="pl-s1">ax</span>.<span class="pl-s1">spines</span>[<span class="pl-s">'right'</span>].<span class="pl-en">set_visible</span>(<span class="pl-c1">False</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">spines</span>[<span class="pl-s">'top'</span>].<span class="pl-en">set_visible</span>(<span class="pl-c1">False</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">spines</span>[<span class="pl-s">'left'</span>].<span class="pl-en">set_visible</span>(<span class="pl-c1">False</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">spines</span>[<span class="pl-s">'bottom'</span>].<span class="pl-en">set_visible</span>(<span class="pl-c1">False</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">yaxis</span>.<span class="pl-en">set_ticks_position</span>(<span class="pl-s">'left'</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">set_ticks_position</span>(<span class="pl-s">'bottom'</span>) <span class="pl-k">if</span> <span class="pl-s1">hide_ticks</span>: <span class="pl-s1">ax</span>.<span class="pl-s1">axes</span>.<span class="pl-en">get_yaxis</span>().<span class="pl-en">set_ticks</span>([]) <span class="pl-s1">ax</span>.<span class="pl-s1">axes</span>.<span class="pl-en">get_xaxis</span>().<span class="pl-en">set_ticks</span>([]) <span class="pl-k">return</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-s1">cm</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">corrcoef</span>(<span class="pl-s1">df</span>[<span class="pl-s1">cols</span>].<span class="pl-s1">values</span>.<span class="pl-v">T</span>) <span class="pl-s1">hm</span> <span class="pl-c1">=</span> <span class="pl-en">heatmap</span>(<span class="pl-s1">cm</span>, <span class="pl-s1">row_names</span><span class="pl-c1">=</span><span class="pl-s1">cols</span>, <span class="pl-s1">column_names</span><span class="pl-c1">=</span><span class="pl-s1">cols</span>) <span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</span>() <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5618407/69210659-17d6c980-0b21-11ea-8ed6-3be67a2c134e.png"><img src="https://user-images.githubusercontent.com/5618407/69210659-17d6c980-0b21-11ea-8ed6-3be67a2c134e.png" alt="Screen Shot 2019-11-19 at 11 05 28 PM" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5618407/69210461-6fc10080-0b20-11ea-96cf-9db0e75a117c.png"><img src="https://user-images.githubusercontent.com/5618407/69210461-6fc10080-0b20-11ea-96cf-9db0e75a117c.png" alt="Screen Shot 2019-11-19 at 10 59 53 PM" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: macOS 10.15.1</li> <li>Matplotlib version: 3.1.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.7</li> <li>Jupyter version (if applicable): 1.1.4</li> <li>Other libraries:</li> </ul> <p dir="auto">Installed matplotlib via <code class="notranslate">conda install matplotlib</code></p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The very top and bottom of the heatmaps are getting truncated to 1/2 height in version <code class="notranslate">3.1.1</code>. This does not happen for version <code class="notranslate">3.0.3</code>.</p> <p dir="auto">This is the code from a Jupyter Notebook</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib import pandas as pd import numpy as np import seaborn as sb %pylab inline print(matplotlib.__version__) print(sb.__version__) grid = pd.DataFrame(np.arange(9).reshape((3,3))/10) fig, ax = subplots(1, 1, figsize=(5, 5)) sb.heatmap(grid, annot=True, fmt=&quot;.0f&quot;, ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sb</span> <span class="pl-c1">%</span><span class="pl-s1">pylab</span> <span class="pl-s1">inline</span> <span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>) <span class="pl-en">print</span>(<span class="pl-s1">sb</span>.<span class="pl-s1">__version__</span>) <span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">9</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">3</span>,<span class="pl-c1">3</span>))<span class="pl-c1">/</span><span class="pl-c1">10</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>)) <span class="pl-s1">sb</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">grid</span>, <span class="pl-s1">annot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">".0f"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'RdBu'</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">cbar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>);</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Populating the interactive namespace from numpy and matplotlib 3.1.1 0.9.0"><pre class="notranslate"><code class="notranslate">Populating the interactive namespace from numpy and matplotlib 3.1.1 0.9.0 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png"><img src="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png" alt="download" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu Linux</li> <li>Matplotlib version: 3.1.1</li> <li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.6</li> <li>Jupyter version (if applicable): 4.4.0</li> <li>Other libraries:</li> </ul>
1
<p dir="auto">I just think it is better if PowerToys Run can also search over internet. For example: we type github and we will be suggested to open github.com.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I want to be able to start a web search from the launcher.<br> Ideally, I'd type <code class="notranslate">bing power toys</code> and it would navigate to <code class="notranslate">https://www.bing.com/search?q=power+toys</code> in my default browser.<br> <code class="notranslate">google power toys</code> would go to the equivalent.</p> <p dir="auto">The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.</p> <p dir="auto"><em>This would be similar to functionality that used to be available in Enso launcher.</em></p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.<br> This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.</p> <p dir="auto"><strong>crutkas:</strong> possible solution to this issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851600669" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/10619" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/10619/hovercard" href="https://github.com/microsoft/PowerToys/issues/10619">#10619</a>. It defers to default browser + user's search engine. Lets PT Run be generic</p>
1
<p dir="auto">I was not able to find in the current documentation but was wondering if there are plans to have Vue supporting the es6 class syntax like below??:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class MyComp extends Vue { ... }"><pre class="notranslate"><code class="notranslate">class MyComp extends Vue { ... } </code></pre></div> <p dir="auto">I know this exists but its for .vue files and its not part of vuejs</p> <p dir="auto"><a href="https://github.com/vuejs/vue-class-component">https://github.com/vuejs/vue-class-component</a></p>
<p dir="auto">Hi there,</p> <p dir="auto">I've searched around and haven't find it so far so I hope it's no duplicate.</p> <p dir="auto">Playing around with the watcher of VueJs I've found a small "ergonomic" issue.</p> <p dir="auto">When I want to watch a property of a object a way to logically do this could be this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var App = new Vue({ data: { object: { key: 'value' } }, watch: { object: { key: function() { console.log('watched'); } } } });"><pre class="notranslate"><code class="notranslate">var App = new Vue({ data: { object: { key: 'value' } }, watch: { object: { key: function() { console.log('watched'); } } } }); </code></pre></div> <p dir="auto">But that does not work, instead I have to do it like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var App = new Vue({ data: { object: { key: 'value' } }, watch: { 'object.key': function() { console.log('watched'); } } });"><pre class="notranslate"><code class="notranslate">var App = new Vue({ data: { object: { key: 'value' } }, watch: { 'object.key': function() { console.log('watched'); } } }); </code></pre></div> <p dir="auto">Is this something to consider? I personally like the way I showed in the first example better.</p> <p dir="auto">Thank you.</p>
0
<p dir="auto">Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle.</p> <p dir="auto">As an example, note that with matplotlib 1.4.0, the connector arrow extends inside the round box, while it is clipped for the square boxstyle. With earlier versions, both have the same clipping behavior.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import matplotlib def main(): fig, ax = plt.subplots() ax.set(title='Matplotlib {}'.format(matplotlib.__version__)) annotate(ax, 'Round') annotate(ax, 'Square') plt.show() def annotate(ax, text): bbox = dict(fc='none') x, y = 0.1, 0.1 if text == 'Round': bbox['boxstyle'] = 'round' y = 0.5 ax.annotate(text, xy=(x, y), xytext=(50, 50), size=20, xycoords='data', textcoords='offset points', bbox=bbox, arrowprops=dict(arrowstyle='-&gt;')) main()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt import matplotlib def main(): fig, ax = plt.subplots() ax.set(title='Matplotlib {}'.format(matplotlib.__version__)) annotate(ax, 'Round') annotate(ax, 'Square') plt.show() def annotate(ax, text): bbox = dict(fc='none') x, y = 0.1, 0.1 if text == 'Round': bbox['boxstyle'] = 'round' y = 0.5 ax.annotate(text, xy=(x, y), xytext=(50, 50), size=20, xycoords='data', textcoords='offset points', bbox=bbox, arrowprops=dict(arrowstyle='-&gt;')) main() </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/906803/6315056/18b7660a-b9bb-11e4-9f99-3736628f8f02.png"><img src="https://cloud.githubusercontent.com/assets/906803/6315056/18b7660a-b9bb-11e4-9f99-3736628f8f02.png" alt="clip_mpl1 3" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/906803/6315057/211d3d06-b9bb-11e4-9265-fd14e15f11e9.png"><img src="https://cloud.githubusercontent.com/assets/906803/6315057/211d3d06-b9bb-11e4-9265-fd14e15f11e9.png" alt="clip_mpl1 4 0" style="max-width: 100%;"></a></p> <p dir="auto">The problem persists up to and including the current HEAD, but newer versions also have the issue described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58465861" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/4139" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/4139/hovercard" href="https://github.com/matplotlib/matplotlib/issues/4139">#4139</a> The two issues don't appear to be directly related.</p>
<p dir="auto"><del>Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of <a href="https://github.com/obspy/obspy">ObsPy</a>. Then run <code class="notranslate">obspy3-runtests -d obspy.station.tests.test_station.StationTest.test_response_plot</code>.</del> Test case is below.</p> <p dir="auto">With mpl 1.3.1, the plot is as so:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/302469/5798822/65e23d88-9f99-11e4-9a24-874f3eee5285.png"><img src="https://cloud.githubusercontent.com/assets/302469/5798822/65e23d88-9f99-11e4-9a24-874f3eee5285.png" alt="station_response" style="max-width: 100%;"></a></p> <p dir="auto">With mpl 1.4.2 (and master), the plot is as so:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/302469/5798827/77bac822-9f99-11e4-9848-b359a5693c6e.png"><img src="https://cloud.githubusercontent.com/assets/302469/5798827/77bac822-9f99-11e4-9848-b359a5693c6e.png" alt="station_response" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/302469/5798832/7feab8fe-9f99-11e4-9aa1-8b5a01ee8727.png"><img src="https://cloud.githubusercontent.com/assets/302469/5798832/7feab8fe-9f99-11e4-9aa1-8b5a01ee8727.png" alt="station_response-failed-diff" style="max-width: 100%;"></a></p> <p dir="auto">You can see that the arrows are thinner and shifted a bit.</p> <p dir="auto">I believe the relevant bit of code is the following, but I will try to simplify it later:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" trans_above = blended_transform_factory(ax1.transData, ax1.transAxes) trans_right = blended_transform_factory(ax1.transAxes, ax1.transData) arrowprops = dict( arrowstyle=&quot;wedge,tail_width=1.4,shrink_factor=0.8&quot;, fc=color) bbox = dict(boxstyle=&quot;round&quot;, fc=&quot;w&quot;) ax1.annotate(&quot;%.1g&quot; % self.instrument_sensitivity.frequency, (self.instrument_sensitivity.frequency, 1.0), xytext=(self.instrument_sensitivity.frequency, 1.1), xycoords=trans_above, textcoords=trans_above, ha=&quot;center&quot;, va=&quot;bottom&quot;, arrowprops=arrowprops, bbox=bbox) ax1.annotate(&quot;%.1e&quot; % self.instrument_sensitivity.value, (1.0, self.instrument_sensitivity.value), xytext=(1.05, self.instrument_sensitivity.value), xycoords=trans_right, textcoords=trans_right, ha=&quot;left&quot;, va=&quot;center&quot;, arrowprops=arrowprops, bbox=bbox)"><pre class="notranslate"><code class="notranslate"> trans_above = blended_transform_factory(ax1.transData, ax1.transAxes) trans_right = blended_transform_factory(ax1.transAxes, ax1.transData) arrowprops = dict( arrowstyle="wedge,tail_width=1.4,shrink_factor=0.8", fc=color) bbox = dict(boxstyle="round", fc="w") ax1.annotate("%.1g" % self.instrument_sensitivity.frequency, (self.instrument_sensitivity.frequency, 1.0), xytext=(self.instrument_sensitivity.frequency, 1.1), xycoords=trans_above, textcoords=trans_above, ha="center", va="bottom", arrowprops=arrowprops, bbox=bbox) ax1.annotate("%.1e" % self.instrument_sensitivity.value, (1.0, self.instrument_sensitivity.value), xytext=(1.05, self.instrument_sensitivity.value), xycoords=trans_right, textcoords=trans_right, ha="left", va="center", arrowprops=arrowprops, bbox=bbox) </code></pre></div> <p dir="auto">I did a bisect and the bad commit was:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3363b125715724ad89d4b33cbddb23e31e7277d5 is the first bad commit commit 3363b125715724ad89d4b33cbddb23e31e7277d5 Author: Thomas A Caswell &lt;[email protected]&gt; Date: Tue Aug 27 17:07:58 2013 -0500 re factored `_AnnoationBase` to push keeping track of there the secondary object is to the sub-classes. Added properties to maintain back-compatibility added properties to replace xytext and textcoords (xyann, anncoords) properly deprecated `textcoord` and `xytext` in favor of `anncoords` and `xyann`. :040000 040000 f17d8e1a70232471435f96b1faa8550bc697ec32 567d4a0a86bb3d1fb7ec55dc0fa98e86c1dec71a M doc :040000 040000 34339e9d0d9f49477908fc3c3227b1b7b55735b4 4dc225e1358d422aa86f9361672c36e127955bee M lib"><pre class="notranslate"><code class="notranslate">3363b125715724ad89d4b33cbddb23e31e7277d5 is the first bad commit commit 3363b125715724ad89d4b33cbddb23e31e7277d5 Author: Thomas A Caswell &lt;[email protected]&gt; Date: Tue Aug 27 17:07:58 2013 -0500 re factored `_AnnoationBase` to push keeping track of there the secondary object is to the sub-classes. Added properties to maintain back-compatibility added properties to replace xytext and textcoords (xyann, anncoords) properly deprecated `textcoord` and `xytext` in favor of `anncoords` and `xyann`. :040000 040000 f17d8e1a70232471435f96b1faa8550bc697ec32 567d4a0a86bb3d1fb7ec55dc0fa98e86c1dec71a M doc :040000 040000 34339e9d0d9f49477908fc3c3227b1b7b55735b4 4dc225e1358d422aa86f9361672c36e127955bee M lib </code></pre></div>
1
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>:</li> </ul> <ul dir="auto"> <li>multiple affected versions</li> </ul> <ul dir="auto"> <li>Operating System (Platform and Version):</li> </ul> <ul dir="auto"> <li>multiple affected systems</li> </ul> <ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable):</li> </ul> <ul dir="auto"> <li>unknown</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Running an electron app does not freezes the app / pc.</p> <p dir="auto"><strong>Actual behavior</strong><br> Freezes of app / pc happens on some systems.</p> <p dir="auto"><strong>To Reproduce</strong><br> See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329091863" data-permission-text="Title is private" data-url="https://github.com/signalapp/Signal-Desktop/issues/2442" data-hovercard-type="issue" data-hovercard-url="/signalapp/Signal-Desktop/issues/2442/hovercard" href="https://github.com/signalapp/Signal-Desktop/issues/2442">signalapp/Signal-Desktop#2442</a> for a list of affected systems.</p> <h2 dir="auto"><strong>Screenshots</strong></h2> <p dir="auto"><strong>Additional Information</strong><br> This maybe unrelated to electron but I spend some days searching for this issue and electron seems to be the common factor for me, so I'm opening this issue for others having the same / similar problems.</p> <p dir="auto">The GPU acceleration of chromium seems to trigger the problem, but it maybe related to the driver / hardware.</p> <p dir="auto">Related GitHub Issues:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329091863" data-permission-text="Title is private" data-url="https://github.com/signalapp/Signal-Desktop/issues/2442" data-hovercard-type="issue" data-hovercard-url="/signalapp/Signal-Desktop/issues/2442/hovercard" href="https://github.com/signalapp/Signal-Desktop/issues/2442">signalapp/Signal-Desktop#2442</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="353524088" data-permission-text="Title is private" data-url="https://github.com/swaywm/sway/issues/2508" data-hovercard-type="issue" data-hovercard-url="/swaywm/sway/issues/2508/hovercard" href="https://github.com/swaywm/sway/issues/2508">swaywm/sway#2508</a></li> </ul>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.0.7</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 10 version</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">use webview to load a same url, then throw the error info: Error invoking remote method 'GUEST_VIEW_MANAGER_CALL': Error: ERR_FAILED (-2)</p> <h3 dir="auto">Actual Behavior</h3> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;webview id=&quot;printPage&quot; class=&quot;webview print&quot; :src=&quot;printUrl&quot;&gt;&lt;/webview&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">id</span>="<span class="pl-s">printPage</span>" <span class="pl-c1">class</span>="<span class="pl-s">webview print</span>" <span class="pl-c1">:src</span>="<span class="pl-s">printUrl</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script&gt; export default { setup() { useOnBroadcast('print', (datas = {}) =&gt; { const { url = '', data = {} } = datas; const printPage = document.querySelector('#printPage'); printUrl.value = `${origin}print/${url}?info=${JSON.stringify(data)}&amp;t=${new Date().getTime()}`; nextTick(() =&gt; { printPage.addEventListener('did-finish-load', async () =&gt; { console.log(printPage); }); }); }); } } &lt;/script&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span> export default <span class="pl-kos">{</span> <span class="pl-en">setup</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-en">useOnBroadcast</span><span class="pl-kos">(</span><span class="pl-s">'print'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">datas</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> url <span class="pl-c1">=</span> <span class="pl-s">''</span><span class="pl-kos">,</span> data <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">datas</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">printPage</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#printPage'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">printUrl</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">origin</span><span class="pl-kos">}</span></span>print/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">url</span><span class="pl-kos">}</span></span>?info=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>&amp;t=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-k">new</span> <span class="pl-v">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getTime</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span> <span class="pl-en">nextTick</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">printPage</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'did-finish-load'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">printPage</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">if the printUrl.value has the same url , then throw error info: Error invoking remote method 'GUEST_VIEW_MANAGER_CALL': Error: ERR_FAILED (-2)</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional Information</h3> <p dir="auto"><em>No response</em></p>
0
<h3 dir="auto">First check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> After submitting this, I commit to: <ul dir="auto"> <li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li> <li>Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li> <li>Implement a Pull Request for a confirmed bug.</li> </ul> </li> </ul> <h3 dir="auto">Description</h3> <ul dir="auto"> <li>FastAPI's docs, while very good, do not have a reference view to the internal API. What are the arguments that a Response object takes? What are the arguments that a Query object takes? etc. A standard, autogenerated reference doc is needed! Now that I have a basic understanding of the things this framework can do, 90% of my questions can be answered by an online reference.</li> </ul> <h3 dir="auto">The solution you would like</h3> <p dir="auto">Autogenerate reference docs and publish them with the rest of the docs, linked from the docs page.</p> <p dir="auto">One of this project's primary focuses is document generation for framework users. Seems like it should put that philosophy into practice for itself.</p> <h3 dir="auto">Describe alternatives you've considered</h3> <ul dir="auto"> <li>Build my own documentation for this framework?</li> <li>Search the source code? (what I've resorted to doing most of the time)</li> </ul>
<p dir="auto">Of the <strong>open 345 issues</strong> (at the time of writing) <strong>219 are questions</strong>.</p> <p dir="auto">Since Github doesn't have a feature to moderate questions (upvote, downvote, close a question, etc) it can be hard to regulate quality in the repo. We could use Github Discussion (example usage by <a href="https://github.com/vercel/vercel/discussions/">vercel</a> and <a href="https://github.com/edgedb/edgedb/discussions/">edgedb</a>) but for a large community like FastAPI it would be better if questions are redirected to Stack Overflow where questions quality can be regulated.</p>
0
<p dir="auto">If I remove the 'navbar-brand' section from a responsive navbar, 'nav-collapse' gains a margin-top of 50px. Is this intended? Because it doesn't a lot of sense.</p>
<p dir="auto">The issue here is related to the fix done for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17325271" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8749" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/8749/hovercard" href="https://github.com/twbs/bootstrap/issues/8749">#8749</a>. Margin-top was added to the navbar when there was no brand to give it that margin, but this was only needed while the navbar was collapsed.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;navbar&quot;&gt; &lt;div class=&quot;container&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.nav-collapse-scrollable&quot;&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;/button&gt; &lt;!-- &lt;a class=&quot;navbar-brand&quot; href=&quot;{insecure_base_href}&quot;&gt;Your Company Here&lt;/a&gt; --&gt; &lt;!-- navbar here --&gt; &lt;/div&gt;&lt;!-- /.container --&gt; &lt;/div&gt; &lt;!-- /.navbar --&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">button</span>" <span class="pl-c1">class</span>="<span class="pl-s">navbar-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">collapse</span>" <span class="pl-c1">data-target</span>="<span class="pl-s">.nav-collapse-scrollable</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- &lt;a class="navbar-brand" href="{insecure_base_href}"&gt;Your Company Here&lt;/a&gt; --&gt;</span> <span class="pl-c">&lt;!-- navbar here --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span><span class="pl-c">&lt;!-- /.container --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- /.navbar --&gt;</span></pre></div> <p dir="auto">Will cause the navbar to have 50px of margin-top at all times against 3.0.0-wip HEAD.</p> <p dir="auto">This is the fix, I'm sorry I don't have time right now to commit it, I will if it's not been done before I get around to it:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@media screen and (min-width: @grid-float-breakpoint) { .nav-collapse { .navbar-toggle + &amp; { margin-top: 0; } } }"><pre class="notranslate"><span class="pl-k">@media</span> screen <span class="pl-c1">and</span> (min-width<span class="pl-kos">:</span> <span class="pl-k">@grid-float-breakpoint</span>) { .<span class="pl-c1">nav-collapse</span> { .<span class="pl-c1">navbar-toggle</span> <span class="pl-c1">+</span> <span class="pl-ent">&amp;</span> { <span class="pl-c1">margin-top</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>; } } }</pre></div>
1
<p dir="auto">I just updated to 0.94.0 and I get the attached popup error stating that the command is disabled.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/89930/2974976/8c865010-db8f-11e3-809f-9e66e1b07cc6.png"><img src="https://cloud.githubusercontent.com/assets/89930/2974976/8c865010-db8f-11e3-809f-9e66e1b07cc6.png" alt="screen shot 2014-05-14 at 1 44 43 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Just noticed a crash when deleting 2 selected files at the same time. on windows 7. Haven't tried duplicating it or anything, but if you need a log or something let me know.</p>
0
<p dir="auto">I'm in Arch Linux x86_64</p> <p dir="auto">This is the repository and branch where the bug in question happened: <a href="https://github.com/Denommus/xpath-rs/tree/rust-bug">https://github.com/Denommus/xpath-rs/tree/rust-bug</a></p> <p dir="auto">After some study, I found out the smallest code that causes the issue:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::kinds::marker::ContravariantLifetime; struct Foo&lt;'a&gt; { foo: *const int, lf: ContravariantLifetime&lt;'a&gt; } impl&lt;'a&gt; Drop for Foo&lt;'a&gt; { fn drop(&amp;mut self) { } }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>kinds<span class="pl-kos">::</span>marker<span class="pl-kos">::</span><span class="pl-v">ContravariantLifetime</span><span class="pl-kos">;</span> <span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span><span class="pl-kos">:</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-c1">lf</span><span class="pl-kos">:</span> <span class="pl-smi">ContravariantLifetime</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Drop</span> <span class="pl-k">for</span> <span class="pl-smi">Foo</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">drop</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">When trying to <code class="notranslate">cargo build</code> or <code class="notranslate">cargo test</code> it, I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Compiling xpath v0.1.0 (file:/home/yuri/Projetos/PistonDevelopers/xpath-rs) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 0 but the index is 0', /build/rust-git/src/rust/src/librustc/middle/subst.rs:405 stack backtrace: 1: 0x7fd280653440 - rt::backtrace::imp::write::hd9494d95b8843aac9Mp 2: 0x7fd280656ca0 - &lt;unknown&gt; 3: 0x7fd280e11660 - unwind::begin_unwind_inner::h86c91288dccdf7edcZd 4: 0x7fd280e112b0 - unwind::begin_unwind_fmt::h1cb579d85bd16aefFWd 5: 0x7fd280e11270 - rust_begin_unwind 6: 0x7fd280e4cde0 - failure::begin_unwind::h4bcdf2c748255fc2srj 7: 0x7fd280e50670 - failure::fail_bounds_check::hdab871e57fe12ae2Epj 8: 0x7fd281564060 - &lt;unknown&gt; 9: 0x7fd281564020 - &lt;unknown&gt; 10: 0x7fd281562b30 - &lt;unknown&gt; 11: 0x7fd281562960 - &lt;unknown&gt; 12: 0x7fd28150af40 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_ty::h13798902dd9366ecRMU 13: 0x7fd28150ae50 - &lt;unknown&gt; 14: 0x7fd281685fd0 - middle::ty::lookup_field_type::h45aac711c7fa1076qeS 15: 0x7fd281547e60 - middle::ty::struct_fields::hb5d9b2dc874148eeHmS 16: 0x7fd2816b10e0 - &lt;unknown&gt; 17: 0x7fd28164e5d0 - middle::ty::type_contents::hc7f87097be3796b7AsP 18: 0x7fd2819fa0d0 - &lt;unknown&gt; 19: 0x7fd2819fcfc0 - middle::kind::check_crate::h567230afc53cc6d1sxQ 20: 0x7fd281d2da50 - driver::driver::phase_3_run_analysis_passes::h6dd6f772dd74de516Eq 21: 0x7fd281d28eb0 - driver::driver::compile_input::h74d2c1dd617400e9Mrq 22: 0x7fd281ddf670 - &lt;unknown&gt; 23: 0x7fd281ddf580 - &lt;unknown&gt; 24: 0x7fd281df2dd0 - &lt;unknown&gt; 25: 0x7fd281df2b60 - &lt;unknown&gt; 26: 0x7fd283e0ff80 - &lt;unknown&gt; 27: 0x7fd280e60dc0 - rust_try 28: 0x7fd280e0e6e0 - unwind::try::h62bccd25ee1c5a2dBNd 29: 0x7fd280e0e440 - task::Task::run::h899cbe26c861f39cXYc 30: 0x7fd283e0fd70 - &lt;unknown&gt; 31: 0x7fd280e106c0 - &lt;unknown&gt; 32: 0x7fd2800da060 - start_thread 33: 0x7fd280ad9489 - __clone 34: 0x0 - &lt;unknown&gt; Could not execute process `rustc src/lib.rs --crate-name xpath --crate-type lib -g --test --out-dir /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test -L /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test -L /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test/deps` (status=101)"><pre class="notranslate"><code class="notranslate"> Compiling xpath v0.1.0 (file:/home/yuri/Projetos/PistonDevelopers/xpath-rs) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 0 but the index is 0', /build/rust-git/src/rust/src/librustc/middle/subst.rs:405 stack backtrace: 1: 0x7fd280653440 - rt::backtrace::imp::write::hd9494d95b8843aac9Mp 2: 0x7fd280656ca0 - &lt;unknown&gt; 3: 0x7fd280e11660 - unwind::begin_unwind_inner::h86c91288dccdf7edcZd 4: 0x7fd280e112b0 - unwind::begin_unwind_fmt::h1cb579d85bd16aefFWd 5: 0x7fd280e11270 - rust_begin_unwind 6: 0x7fd280e4cde0 - failure::begin_unwind::h4bcdf2c748255fc2srj 7: 0x7fd280e50670 - failure::fail_bounds_check::hdab871e57fe12ae2Epj 8: 0x7fd281564060 - &lt;unknown&gt; 9: 0x7fd281564020 - &lt;unknown&gt; 10: 0x7fd281562b30 - &lt;unknown&gt; 11: 0x7fd281562960 - &lt;unknown&gt; 12: 0x7fd28150af40 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_ty::h13798902dd9366ecRMU 13: 0x7fd28150ae50 - &lt;unknown&gt; 14: 0x7fd281685fd0 - middle::ty::lookup_field_type::h45aac711c7fa1076qeS 15: 0x7fd281547e60 - middle::ty::struct_fields::hb5d9b2dc874148eeHmS 16: 0x7fd2816b10e0 - &lt;unknown&gt; 17: 0x7fd28164e5d0 - middle::ty::type_contents::hc7f87097be3796b7AsP 18: 0x7fd2819fa0d0 - &lt;unknown&gt; 19: 0x7fd2819fcfc0 - middle::kind::check_crate::h567230afc53cc6d1sxQ 20: 0x7fd281d2da50 - driver::driver::phase_3_run_analysis_passes::h6dd6f772dd74de516Eq 21: 0x7fd281d28eb0 - driver::driver::compile_input::h74d2c1dd617400e9Mrq 22: 0x7fd281ddf670 - &lt;unknown&gt; 23: 0x7fd281ddf580 - &lt;unknown&gt; 24: 0x7fd281df2dd0 - &lt;unknown&gt; 25: 0x7fd281df2b60 - &lt;unknown&gt; 26: 0x7fd283e0ff80 - &lt;unknown&gt; 27: 0x7fd280e60dc0 - rust_try 28: 0x7fd280e0e6e0 - unwind::try::h62bccd25ee1c5a2dBNd 29: 0x7fd280e0e440 - task::Task::run::h899cbe26c861f39cXYc 30: 0x7fd283e0fd70 - &lt;unknown&gt; 31: 0x7fd280e106c0 - &lt;unknown&gt; 32: 0x7fd2800da060 - start_thread 33: 0x7fd280ad9489 - __clone 34: 0x0 - &lt;unknown&gt; Could not execute process `rustc src/lib.rs --crate-name xpath --crate-type lib -g --test --out-dir /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test -L /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test -L /home/yuri/Projetos/PistonDevelopers/xpath-rs/target/test/deps` (status=101) </code></pre></div>
<p dir="auto">Compiling <a href="https://gist.github.com/bgamari/d3e3a7a6b83c1bfaa00e/a6833426eb941d47232d305a86571b0962ce554c">this program</a> results in the following error with rustc <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/00cdd639a93ec1dcad85cebc52214eeba0441c93/hovercard" href="https://github.com/rust-lang/rust/commit/00cdd639a93ec1dcad85cebc52214eeba0441c93"><tt>00cdd63</tt></a>,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_LOG=rustc::middle::kind,rustc::middle::typeck::astconv RUST_BACKTRACE=1 /opt/exp/rust/x86_64-unknown-linux-gnu/stage1/bin/rustc crash.rs InterDEBUG:rustc::middle::typeck::astconv: ast_region_to_region(lifetime='a id=8) yields ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: opt_ast_region_to_region(opt_lifetime=Some('a)) yields ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: ty_rptr r=ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: mk_pointer(ptr_ty=RPtr(ReEarlyBound(12u32, TypeSpace, 0u, syntax::ast::Name(58u32)))) DEBUG:rustc::middle::typeck::astconv: ast_region_to_region(lifetime='a id=18) yields ReEarlyBound(14, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: ty_of_method_or_bare_fn DEBUG:rustc::middle::typeck::astconv: opt_ast_region_to_region(opt_lifetime=None) yields ReLateBound(19, BrAnon(0)) DEBUG:rustc::middle::typeck::astconv: ty_of_method_or_bare_fn DEBUG:rustc::middle::kind: checking impl with self type ty_struct(DefId { krate: 0, node: 5 }, Substs { types: VecPerParamSpace {TypeSpace: [], SelfSpace: [], FnSpace: [], }, regions: NonerasedRegions(VecPerParamSpace {TypeSpace: [ReEarlyBound(14, TypeSpace, 0, Name(58))], SelfSpace: [], FnSpace: [], }) }) crash.rs:1:1: 1:1 error: internal compiler error: Type parameter out of range when substituting in region 'a (root type='au32) crash.rs:1 use std::ty::Unsafe; task 'rustc' failed at 'Box&lt;Any&gt;', /opt/exp/rust/src/libsyntax/diagnostic.rs:107 stack backtrace: 1: 0x7fc9e8922840 - rt::backtrace::imp::write::h0a20b0836877d9ac0Mp::v0.11.0 2: 0x7fc9e89260a0 - failure::on_fail::h9368950ceb08d6a5f8p::v0.11.0 3: 0x7fc9e90f7eb0 - unwind::begin_unwind_inner::h1ea00938b93c7417cZd::v0.11.0 4: 0x7fc9e75bf9a0 - unwind::begin_unwind::h12621653176727986714::v0.11.0 5: 0x7fc9e75bf8d0 - diagnostic::SpanHandler::span_bug::h4bae981243ffc58eMac::v0.11.0 6: 0x7fc9e990c470 - driver::session::Session::span_bug::hc179e601dc679fecYos::v0.11.0 7: 0x7fc9e991d800 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_region::he5ebd51cee9a84b33rV::v0.11.0 8: 0x7fc9e98c4270 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_ty::h59e6cfaf115bff0ahuV::v0.11.0 9: 0x7fc9e98c4180 - middle::subst::T.Subst::subst_spanned::h16361762956049246516::v0.11.0 10: 0x7fc9e9a45830 - middle::ty::lookup_field_type::h3e7b27996e88cd1bHMS::v0.11.0 11: 0x7fc9e9901c90 - middle::ty::struct_fields::h729f0dbbcf21bf37YUS::v0.11.0 12: 0x7fc9e9a71fd0 - middle::ty::type_contents::tc_ty::h7d685e11e712e8a6V1P::v0.11.0 13: 0x7fc9e9a0a250 - middle::ty::type_contents::h8e510766cec98181R0P::v0.11.0 14: 0x7fc9e9dbefd0 - middle::kind::check_item::hfa5461b803c6c40dwpR::v0.11.0 15: 0x7fc9e9dc1ed0 - middle::kind::check_crate::h70941b58fca9fc5bVfR::v0.11.0 16: 0x7fc9ea0edfd0 - driver::driver::phase_3_run_analysis_passes::hd94ede6fcda9089cznr::v0.11.0 17: 0x7fc9ea0e9750 - driver::driver::compile_input::h22443fcf4e1357eafar::v0.11.0 18: 0x7fc9ea1a0140 - driver::run_compiler::hd0a576aeaeea68b3W0t::v0.11.0 19: 0x7fc9ea1a0050 - driver::main_args::closure.127086 20: 0x7fc9ea1b4560 - task::TaskBuilder&lt;S&gt;::try_future::closure.128230 21: 0x7fc9ea1b4230 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.128207 22: 0x7fc9ec193d00 - task::spawn_opts::closure.7759 23: 0x7fc9e9252e60 - rust_try 24: 0x7fc9e90f4490 - unwind::try::hb071379e55686597BNd::v0.11.0 25: 0x7fc9e90f4190 - task::Task::run::ha6ba4f51b8a2758dXYc::v0.11.0 26: 0x7fc9ec193ac0 - task::spawn_opts::closure.7705 27: 0x7fc9e90f6ce0 - thread::thread_start::hc20479a5894ce695vld::v0.11.0 28: 0x7fc9e83a40c0 - start_thread 29: 0x7fc9e8dbb2d9 - __clone 30: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">$ RUST_LOG=rustc::middle::kind,rustc::middle::typeck::astconv RUST_BACKTRACE=1 /opt/exp/rust/x86_64-unknown-linux-gnu/stage1/bin/rustc crash.rs InterDEBUG:rustc::middle::typeck::astconv: ast_region_to_region(lifetime='a id=8) yields ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: opt_ast_region_to_region(opt_lifetime=Some('a)) yields ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: ty_rptr r=ReEarlyBound(12, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: mk_pointer(ptr_ty=RPtr(ReEarlyBound(12u32, TypeSpace, 0u, syntax::ast::Name(58u32)))) DEBUG:rustc::middle::typeck::astconv: ast_region_to_region(lifetime='a id=18) yields ReEarlyBound(14, TypeSpace, 0, 'a) DEBUG:rustc::middle::typeck::astconv: ty_of_method_or_bare_fn DEBUG:rustc::middle::typeck::astconv: opt_ast_region_to_region(opt_lifetime=None) yields ReLateBound(19, BrAnon(0)) DEBUG:rustc::middle::typeck::astconv: ty_of_method_or_bare_fn DEBUG:rustc::middle::kind: checking impl with self type ty_struct(DefId { krate: 0, node: 5 }, Substs { types: VecPerParamSpace {TypeSpace: [], SelfSpace: [], FnSpace: [], }, regions: NonerasedRegions(VecPerParamSpace {TypeSpace: [ReEarlyBound(14, TypeSpace, 0, Name(58))], SelfSpace: [], FnSpace: [], }) }) crash.rs:1:1: 1:1 error: internal compiler error: Type parameter out of range when substituting in region 'a (root type='au32) crash.rs:1 use std::ty::Unsafe; task 'rustc' failed at 'Box&lt;Any&gt;', /opt/exp/rust/src/libsyntax/diagnostic.rs:107 stack backtrace: 1: 0x7fc9e8922840 - rt::backtrace::imp::write::h0a20b0836877d9ac0Mp::v0.11.0 2: 0x7fc9e89260a0 - failure::on_fail::h9368950ceb08d6a5f8p::v0.11.0 3: 0x7fc9e90f7eb0 - unwind::begin_unwind_inner::h1ea00938b93c7417cZd::v0.11.0 4: 0x7fc9e75bf9a0 - unwind::begin_unwind::h12621653176727986714::v0.11.0 5: 0x7fc9e75bf8d0 - diagnostic::SpanHandler::span_bug::h4bae981243ffc58eMac::v0.11.0 6: 0x7fc9e990c470 - driver::session::Session::span_bug::hc179e601dc679fecYos::v0.11.0 7: 0x7fc9e991d800 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_region::he5ebd51cee9a84b33rV::v0.11.0 8: 0x7fc9e98c4270 - middle::subst::SubstFolder&lt;'a&gt;.TypeFolder::fold_ty::h59e6cfaf115bff0ahuV::v0.11.0 9: 0x7fc9e98c4180 - middle::subst::T.Subst::subst_spanned::h16361762956049246516::v0.11.0 10: 0x7fc9e9a45830 - middle::ty::lookup_field_type::h3e7b27996e88cd1bHMS::v0.11.0 11: 0x7fc9e9901c90 - middle::ty::struct_fields::h729f0dbbcf21bf37YUS::v0.11.0 12: 0x7fc9e9a71fd0 - middle::ty::type_contents::tc_ty::h7d685e11e712e8a6V1P::v0.11.0 13: 0x7fc9e9a0a250 - middle::ty::type_contents::h8e510766cec98181R0P::v0.11.0 14: 0x7fc9e9dbefd0 - middle::kind::check_item::hfa5461b803c6c40dwpR::v0.11.0 15: 0x7fc9e9dc1ed0 - middle::kind::check_crate::h70941b58fca9fc5bVfR::v0.11.0 16: 0x7fc9ea0edfd0 - driver::driver::phase_3_run_analysis_passes::hd94ede6fcda9089cznr::v0.11.0 17: 0x7fc9ea0e9750 - driver::driver::compile_input::h22443fcf4e1357eafar::v0.11.0 18: 0x7fc9ea1a0140 - driver::run_compiler::hd0a576aeaeea68b3W0t::v0.11.0 19: 0x7fc9ea1a0050 - driver::main_args::closure.127086 20: 0x7fc9ea1b4560 - task::TaskBuilder&lt;S&gt;::try_future::closure.128230 21: 0x7fc9ea1b4230 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.128207 22: 0x7fc9ec193d00 - task::spawn_opts::closure.7759 23: 0x7fc9e9252e60 - rust_try 24: 0x7fc9e90f4490 - unwind::try::hb071379e55686597BNd::v0.11.0 25: 0x7fc9e90f4190 - task::Task::run::ha6ba4f51b8a2758dXYc::v0.11.0 26: 0x7fc9ec193ac0 - task::spawn_opts::closure.7705 27: 0x7fc9e90f6ce0 - thread::thread_start::hc20479a5894ce695vld::v0.11.0 28: 0x7fc9e83a40c0 - start_thread 29: 0x7fc9e8dbb2d9 - __clone 30: 0x0 - &lt;unknown&gt; </code></pre></div>
1
<p dir="auto"><strong>version</strong><br> THREE.JS V0.122.0</p> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">TextureLoader load method onProgress does not trigger</p> <p dir="auto"><em><strong>Code</strong></em></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let loader = new TextureLoader(); loader.load( 'https://res.lgdsunday.club/renting_panorama_4.jpg', // onLoad (texture) =&gt; { // ... }, // onProgress (event) =&gt; { console.log('----------------------------'); } );"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">loader</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">TextureLoader</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span> <span class="pl-s">'https://res.lgdsunday.club/renting_panorama_4.jpg'</span><span class="pl-kos">,</span> <span class="pl-c">// onLoad</span> <span class="pl-kos">(</span><span class="pl-s1">texture</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">// onProgress</span> <span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'----------------------------'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">onProgress should be triggered</p>
<p dir="auto">The initial idea was to gain support for progress events in <code class="notranslate">ImageLoader</code> but the side effects have been so far:</p> <ol dir="auto"> <li>Security issues. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181277518" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/9826" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/9826/hovercard" href="https://github.com/mrdoob/three.js/issues/9826">#9826</a></li> <li>data: urls no longer working. <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mrdoob/three.js/commit/0576c7c80c472beb67c855031975aa7708175370/hovercard" href="https://github.com/mrdoob/three.js/commit/0576c7c80c472beb67c855031975aa7708175370"><tt>0576c7c</tt></a></li> <li>Some people (A-Frame) relied on image.src being a file path for their tests.</li> <li>CrossOrigin not working. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190486340" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/10168" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/10168/hovercard" href="https://github.com/mrdoob/three.js/pull/10168">#10168</a></li> <li>SVG no longer loading. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="195761756" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/10363" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/10363/hovercard" href="https://github.com/mrdoob/three.js/pull/10363">#10363</a></li> </ol> <p dir="auto">So, for the time being, I think it'll be better to revert and, instead, try to convince W3C people to provide load progress events for <code class="notranslate">Image</code>.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Failed compiling of the current master branch</h2> <p dir="auto">So, which gloo should we use? The one in caffe2 seems being incomplete while there's another one in thridparty folder.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>Build from source</li> <li>Current master branch</li> <li>CUDA 10</li> <li>Ubuntu 16.04</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">[ 76%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/contrib/gloo/allreduce_ops_gpu.cc.o</p> <h2 dir="auto">Additional context</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="header file not found pytorch/caffe2/contrib/gloo/allreduce_ops_gpu.cc:6:39: fatal error: gloo/cuda_allreduce_bcube.h"><pre class="notranslate"><code class="notranslate">header file not found pytorch/caffe2/contrib/gloo/allreduce_ops_gpu.cc:6:39: fatal error: gloo/cuda_allreduce_bcube.h </code></pre></div>
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2> <p dir="auto">Reinforcement learning on multiprocessing Queue.<br> If I use cpu ,NO ERROR.<br> If I use gpu:<br> RuntimeError: Cowardly refusing to serialize non-leaf tensor which requires_grad, since autograd does not support crossing process boundaries. If you just want to transfer the data, call detach() on the tensor before serializing (e.g., putting it on the queue).<br> anyone can help me. Thank you very much.<br> linux<br> python 3.6<br> cuda 9.2<br> pytorch 1.4</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a></p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: v0.20.1</li> <li>PowerToy Utility: PowerRename</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: 18636.1016</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Use PowerRename to rename my file frome "Marvel.Agents.Of.SHIELD.S01E01.Pilot.1080p.WEB-DL.DD5.1.H.264-ECI.ChsEngA" to "Marvel.Agents.Of.SHIELD.S01E01".</li> <li>Check "Use Reg" and "Match All Occurrences".</li> <li>Search for "(?&lt;=E\d\d).+" and replace with nothing.</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">It should match ".Pilot.1080p.WEB-DL.DD5.1.H.264-ECI.ChsEngA" and replace it.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">Nothing match.</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45873933/90324680-50b6a880-dfa4-11ea-8651-6f63ec43551e.png"><img src="https://user-images.githubusercontent.com/45873933/90324680-50b6a880-dfa4-11ea-8651-6f63ec43551e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This would be a nice feature to have, as my workflow typically involves mirror-image zones on two monitors, basically to keep the important windows at the center.</p>
0
<p dir="auto">It seems that if you have many goroutines that do lookups, they are tied to one routine that does the actual DNS resolve. If it succeeds, the answer is provided to everyone and all is happy.</p> <p dir="auto">When it times out, rather than releasing everyone, all the goroutines must also wait their time out too. It would make more sense to also release the other routines with the errTimeout immediately.</p>
<pre class="notranslate">see <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/5er6Ud_V0-U</pre>
0
<p dir="auto">Hi</p> <p dir="auto">I'm trying to generate nodes using the following code:</p> <p dir="auto"><code class="notranslate">unwind range(1,700000) as id create (:t700k{id:id})</code></p> <ol dir="auto"> <li></li> </ol> <p dir="auto">Generating 100K-600K nodes finishes successfully but the execution time seems to be exponential which is obviously an issue with scalability.<br> Is this an expected behavior?</p> <blockquote> <p dir="auto">Added 100000 labels, created 100000 nodes, set 100000 properties, statement executed in 1694 ms.<br> Added 200000 labels, created 200000 nodes, set 200000 properties,<br> statement executed in 3478 ms.<br> Added 300000 labels, created 300000 nodes, set 300000 properties, statement executed in 4622 ms.<br> Added 400000 labels, created 400000 nodes, set 400000 properties, statement executed in 7240 ms.<br> Added 500000 labels, created 500000 nodes, set 500000 properties, statement executed in 19388 ms.<br> Added 600000 labels, created 600000 nodes, set 600000 properties, statement executed in 56200 ms.</p> </blockquote> <ol start="2" dir="auto"> <li></li> </ol> <p dir="auto">Generating 700K nodes fails with the following error -<br> "Error: undefined - undefined"</p> <p dir="auto">There are also no [ERROR] records in C:\Users\dmarkovitz\Documents\Neo4j\default.graphdb\logs\debug.log<br> <a href="https://github.com/neo4j/neo4j/files/344935/debug.log.txt">debug.log.txt</a></p> <h3 dir="auto">version</h3> <p dir="auto">I'm working from the web browser</p> <p dir="auto">neo4j-community_windows-x64_3_0_3.exe<br> Neo4j Browser version 1.1.6<br> COMMUNITY EDITION 3.0.3</p> <h3 dir="auto">systeminfo</h3> <p dir="auto">OS Name: Microsoft Windows 7 Enterprise<br> OS Version: 6.1.7601 Service Pack 1 Build 7601<br> OS Manufacturer: Microsoft Corporation<br> OS Configuration: Member Workstation<br> OS Build Type: Multiprocessor Free<br> System Manufacturer: Dell Inc.<br> System Model: OptiPlex 9020<br> System Type: x64-based PC<br> Processor(s): 1 Processor(s) Installed.<br> [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3401 Mhz<br> BIOS Version: Dell Inc. A05, 12/5/2013<br> Total Physical Memory: 8,134 MB<br> Available Physical Memory: 864 MB<br> Virtual Memory: Max Size: 16,267 MB<br> Virtual Memory: Available: 6,599 MB<br> Virtual Memory: In Use: 9,668 MB</p> <p dir="auto">Thanks</p> <p dir="auto">Dudu</p>
<p dir="auto">Hi</p> <p dir="auto">I'm trying to generate nodes using the following code:</p> <p dir="auto"><code class="notranslate">unwind range(1,700000) as id create (:t700k{id:id})</code></p> <ol dir="auto"> <li></li> </ol> <p dir="auto">Generating 100K-600K nodes finishes successfully but the execution time seems to be exponential which is obviously an issue with scalability.<br> Is this an expected behavior?</p> <blockquote> <p dir="auto">Added 100000 labels, created 100000 nodes, set 100000 properties, statement executed in 1694 ms.<br> Added 200000 labels, created 200000 nodes, set 200000 properties,<br> statement executed in 3478 ms.<br> Added 300000 labels, created 300000 nodes, set 300000 properties, statement executed in 4622 ms.<br> Added 400000 labels, created 400000 nodes, set 400000 properties, statement executed in 7240 ms.<br> Added 500000 labels, created 500000 nodes, set 500000 properties, statement executed in 19388 ms.<br> Added 600000 labels, created 600000 nodes, set 600000 properties, statement executed in 56200 ms.</p> </blockquote> <ol start="2" dir="auto"> <li></li> </ol> <p dir="auto">Generating 700K nodes fails with the following error -<br> "Error: undefined - undefined"</p> <p dir="auto">There are also no [ERROR] records in C:\Users\dmarkovitz\Documents\Neo4j\default.graphdb\logs\debug.log<br> <a href="https://github.com/neo4j/neo4j/files/344935/debug.log.txt">debug.log.txt</a></p> <h3 dir="auto">version</h3> <p dir="auto">I'm working from the web browser</p> <p dir="auto">neo4j-community_windows-x64_3_0_3.exe<br> Neo4j Browser version 1.1.6<br> COMMUNITY EDITION 3.0.3</p> <h3 dir="auto">systeminfo</h3> <p dir="auto">OS Name: Microsoft Windows 7 Enterprise<br> OS Version: 6.1.7601 Service Pack 1 Build 7601<br> OS Manufacturer: Microsoft Corporation<br> OS Configuration: Member Workstation<br> OS Build Type: Multiprocessor Free<br> System Manufacturer: Dell Inc.<br> System Model: OptiPlex 9020<br> System Type: x64-based PC<br> Processor(s): 1 Processor(s) Installed.<br> [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3401 Mhz<br> BIOS Version: Dell Inc. A05, 12/5/2013<br> Total Physical Memory: 8,134 MB<br> Available Physical Memory: 864 MB<br> Virtual Memory: Max Size: 16,267 MB<br> Virtual Memory: Available: 6,599 MB<br> Virtual Memory: In Use: 9,668 MB</p> <p dir="auto">Thanks</p> <p dir="auto">Dudu</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Thanks for your great lib</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When i upgrade material-ui to 1.0.0-beta.12, my fullscreen dialog can't scroll, so i try to degrade them 1 version at once and repeat it, until 1.0.0-beta.8 they work normally</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.12</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>Chrome Version 60.0.3112.11</td> </tr> </tbody> </table>
<p dir="auto">2-nd lvl menu closes unexpectedly if null passed instead MenuItem. (0.20.0 - broken, 0.19.4 - works).</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">2-nd lvl menu is not automatically closed</p> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div&gt; &lt;Paper&gt; &lt;Menu desktop width={320}&gt; {null} &lt;MenuItem primaryText=&quot;Single&quot; insetChildren /&gt; &lt;MenuItem primaryText=&quot;1.15&quot; insetChildren /&gt; &lt;MenuItem primaryText=&quot;Double&quot; insetChildren /&gt; &lt;MenuItem primaryText=&quot;Custom: 1.2&quot; checked rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;MenuItem primaryText=&quot;Show&quot; rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;MenuItem primaryText=&quot;Show Level 2&quot; /&gt;, &lt;MenuItem primaryText=&quot;Grid lines&quot; checked /&gt;, &lt;MenuItem primaryText=&quot;Page breaks&quot; insetChildren /&gt;, &lt;MenuItem primaryText=&quot;Rules&quot; checked /&gt; ]} /&gt;, &lt;MenuItem primaryText=&quot;Grid lines&quot; checked /&gt;, &lt;MenuItem primaryText=&quot;Page breaks&quot; insetChildren /&gt;, &lt;MenuItem primaryText=&quot;Rules&quot; checked /&gt; ]} /&gt; &lt;Divider /&gt; &lt;MenuItem primaryText=&quot;Add space before paragraph&quot; /&gt; &lt;MenuItem primaryText=&quot;Add space after paragraph&quot; /&gt; &lt;Divider /&gt; &lt;MenuItem primaryText=&quot;Custom spacing...&quot; /&gt; &lt;/Menu&gt; &lt;/Paper&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div&gt; &lt;Paper&gt; &lt;Menu desktop width={320}&gt; {null} &lt;MenuItem primaryText="Single" insetChildren /&gt; &lt;MenuItem primaryText="1.15" insetChildren /&gt; &lt;MenuItem primaryText="Double" insetChildren /&gt; &lt;MenuItem primaryText="Custom: 1.2" checked rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;MenuItem primaryText="Show" rightIcon={&lt;ArrowDropRight /&gt;} menuItems={[ &lt;MenuItem primaryText="Show Level 2" /&gt;, &lt;MenuItem primaryText="Grid lines" checked /&gt;, &lt;MenuItem primaryText="Page breaks" insetChildren /&gt;, &lt;MenuItem primaryText="Rules" checked /&gt; ]} /&gt;, &lt;MenuItem primaryText="Grid lines" checked /&gt;, &lt;MenuItem primaryText="Page breaks" insetChildren /&gt;, &lt;MenuItem primaryText="Rules" checked /&gt; ]} /&gt; &lt;Divider /&gt; &lt;MenuItem primaryText="Add space before paragraph" /&gt; &lt;MenuItem primaryText="Add space after paragraph" /&gt; &lt;Divider /&gt; &lt;MenuItem primaryText="Custom spacing..." /&gt; &lt;/Menu&gt; &lt;/Paper&gt; &lt;/div&gt; </code></pre></div> <ol dir="auto"> <li>Click "Custom 1.2"</li> <li>Click "Show"</li> <li>Expected - 2nd lvl menu is still open, but it's not.</li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.20.0</td> </tr> <tr> <td>React</td> <td>16.2</td> </tr> <tr> <td>browser</td> <td>Safari / Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto"><code class="notranslate">findWidget.ts</code> , comment some code inside a closure.</p> <p dir="auto">The light theme contains a rule for meta that overwrites the rule for comment.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/12195470/b3d4c3c4-b5f7-11e5-8b3d-6b14ab6b5d08.png"><img src="https://cloud.githubusercontent.com/assets/5047891/12195470/b3d4c3c4-b5f7-11e5-8b3d-6b14ab6b5d08.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1926584/12194233/b2b0ed32-b5ee-11e5-9393-35e2d2bf24e5.png"><img src="https://cloud.githubusercontent.com/assets/1926584/12194233/b2b0ed32-b5ee-11e5-9393-35e2d2bf24e5.png" alt="screen shot 2016-01-08 at 10 00 29" style="max-width: 100%;"></a></p> <p dir="auto">I see this for all languages and all themes in VSCode <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/27db7e99c6bf9832b77448636c75cd8fbbf62599/hovercard" href="https://github.com/microsoft/vscode/commit/27db7e99c6bf9832b77448636c75cd8fbbf62599"><tt>27db7e9</tt></a></p>
1
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Build pandas python3 -m pip install -t build --no-binary pandas pandas==0.22.0 # Measure size du -sh build/pandas # Strip binaries find build/pandas -name &quot;*.so&quot;|xargs strip # Measure -drastically reduced- size du -sh build/pandas"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Build pandas</span> python3 -m pip install -t build --no-binary pandas pandas==0.22.0 <span class="pl-c"><span class="pl-c">#</span> Measure size</span> du -sh build/pandas <span class="pl-c"><span class="pl-c">#</span> Strip binaries</span> find build/pandas -name <span class="pl-s"><span class="pl-pds">"</span>*.so<span class="pl-pds">"</span></span><span class="pl-k">|</span>xargs strip <span class="pl-c"><span class="pl-c">#</span> Measure -drastically reduced- size</span> du -sh build/pandas</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">When building pandas from source and running the command strip, the resulting folder is 54% lighter than when using the manylinux wheel (via pip).</p> <blockquote> <p dir="auto">[...] the strip program removes inessential information from executable binary programs and object files, thus potentially resulting in better performance and sometimes significantly less disk space usage<br> <a href="https://en.wikipedia.org/wiki/Strip_(Unix)" rel="nofollow">https://en.wikipedia.org/wiki/Strip_(Unix)</a></p> </blockquote> <p dir="auto">This is probably harmless on most systems, yet it is quite important in size-constrained systems (such as AWS Lambda).</p> <p dir="auto">Some developers have resorted to distributing their own stripped binaries (e.g. lambda packages for the serverless framework zappa), but it seems like a makeshift solution.</p> <p dir="auto">I think the problem should be solved upstream, as each library should be responsible for packaging their own optimized binaries.</p> <blockquote> <p dir="auto">An <a href="https://github.com/numpy/numpy/issues/10920" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/10920/hovercard">issue</a> has also been opened regarding <code class="notranslate">numpy</code>, as it is a dependency of <code class="notranslate">pandas</code> and they both end up using a lot of unneccesary disk space.</p> </blockquote> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.2.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.9.87-linuxkit-aufs<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.22.0<br> pytest: None<br> pip: 9.0.1<br> setuptools: 36.2.7<br> Cython: None<br> numpy: 1.14.2<br> scipy: None<br> pyarrow: None<br> xarray: None<br> IPython: None<br> sphinx: None<br> patsy: None<br> dateutil: 2.7.2<br> pytz: 2018.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: None<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details> <h4 dir="auto">How to replicate</h4> <h5 dir="auto">System specifications</h5> <p dir="auto">Every command below has been executed using the <code class="notranslate">amazonlinux</code> docker image.<br> <a href="https://hub.docker.com/_/amazonlinux/" rel="nofollow">https://hub.docker.com/_/amazonlinux/</a></p> <p dir="auto">Pandas version: <code class="notranslate">0.22.0</code><br> Python version: <code class="notranslate">3.6.2</code></p> <h5 dir="auto">Prepare docker image</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run -it amazonlinux bash yum update -y yum install -y findutils binutils python36-devel gcc gcc-c++"><pre class="notranslate"><code class="notranslate">docker run -it amazonlinux bash yum update -y yum install -y findutils binutils python36-devel gcc gcc-c++ </code></pre></div> <h5 dir="auto">Install wheel &amp; measure package size</h5> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python3 -m pip install -t wheel pandas==0.22.0 du -sh wheel/pandas"><pre class="notranslate">python3 -m pip install -t wheel pandas==0.22.0 du -sh wheel/pandas</pre></div> <p dir="auto">--&gt; <strong>111 MB</strong></p> <p dir="auto">Try <a href="https://en.wikipedia.org/wiki/Strip_(Unix)" rel="nofollow">strip</a>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="find wheel/pandas -name &quot;*.so&quot;|xargs strip du -sh wheel/pandas"><pre class="notranslate">find wheel/pandas -name <span class="pl-s"><span class="pl-pds">"</span>*.so<span class="pl-pds">"</span></span><span class="pl-k">|</span>xargs strip du -sh wheel/pandas</pre></div> <p dir="auto">--&gt; 52 MB</p> <p dir="auto">Almost 50% of the binary size can be stripped.</p> <h5 dir="auto">Build from source &amp; measure package size</h5> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python3 -m pip install -t build --no-binary pandas pandas==0.22.0 du -sh build/pandas"><pre class="notranslate">python3 -m pip install -t build --no-binary pandas pandas==0.22.0 du -sh build/pandas</pre></div> <p dir="auto">--&gt; 107 MB</p> <p dir="auto">Try <a href="https://en.wikipedia.org/wiki/Strip_(Unix)" rel="nofollow">strip</a>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="find build/pandas -name &quot;*.so&quot;|xargs strip du -sh build/pandas"><pre class="notranslate">find build/pandas -name <span class="pl-s"><span class="pl-pds">"</span>*.so<span class="pl-pds">"</span></span><span class="pl-k">|</span>xargs strip du -sh build/pandas</pre></div> <p dir="auto">--&gt; <strong>51 MB</strong></p>
<p dir="auto">On the next release, please update the multibuild submodule to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matthew-brett/multibuild/commit/b2748e5d4d2ae6e45b130bdf8e24361083341e9a/hovercard" href="https://github.com/matthew-brett/multibuild/commit/b2748e5d4d2ae6e45b130bdf8e24361083341e9a">matthew-brett/multibuild@<tt>b2748e5</tt></a> or newer. This should reduce the size of the Pandas wheels from 27M to 11M by excluding unnecessary debug symbols.</p> <p dir="auto">ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294190687" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/19531" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/19531/hovercard" href="https://github.com/pandas-dev/pandas/issues/19531">pandas-dev/pandas#19531</a></p>
1
<p dir="auto">Hi all,</p> <p dir="auto">Im unable to import keras or tensorflow in jupyter:</p> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 Pro</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: HP Omen, i7 7700HQ, 16GB RAM</li> <li><strong>TensorFlow installed from (source or binary)</strong>: pip install tensorflow-gpu</li> <li><strong>TensorFlow version (use command below)</strong>: 1.13.1</li> <li><strong>Python version</strong>: 3.7.3</li> <li><strong>CUDA/cuDNN version</strong>: 10.1</li> <li><strong>GPU model and memory</strong>: GTX 1060 laptop</li> <li><strong>Exact command to reproduce</strong>: import tensorflow as tf</li> </ul> <p dir="auto">---TRACE---</p> <hr> <p dir="auto">ImportError Traceback (most recent call last)<br> ~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <br> 57<br> ---&gt; 58 from tensorflow.python.pywrap_tensorflow_internal import *<br> 59 from tensorflow.python.pywrap_tensorflow_internal import <strong>version</strong></p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <br> 27 return _mod<br> ---&gt; 28 _pywrap_tensorflow_internal = swig_import_helper()<br> 29 del swig_import_helper</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()<br> 23 try:<br> ---&gt; 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> 25 finally:</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\imp.py in load_module(name, file, filename, details)<br> 241 else:<br> --&gt; 242 return load_dynamic(name, filename, file)<br> 243 elif type_ == PKG_DIRECTORY:</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\imp.py in load_dynamic(name, path, file)<br> 341 name=name, loader=loader, origin=path)<br> --&gt; 342 return _load(spec)<br> 343</p> <p dir="auto">ImportError: DLL load failed: No se puede encontrar el módulo especificado.</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">ImportError Traceback (most recent call last)<br> in <br> ----&gt; 1 import tensorflow<br> 2 print(tensorflow.<strong>version</strong>)<br> 3 # Puedes añadir todos los imports adicionales que necesites aquí<br> 4 import keras<br> 5 from keras.datasets import fashion_mnist</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py in <br> 22<br> 23 # pylint: disable=g-bad-import-order<br> ---&gt; 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> 25<br> 26 from tensorflow._api.v1 import app</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py in <br> 47 import numpy as np<br> 48<br> ---&gt; 49 from tensorflow.python import pywrap_tensorflow<br> 50<br> 51 # Protocol buffers</p> <p dir="auto">~\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <br> 72 for some common reasons and solutions. Include the entire stack trace<br> 73 above this error message when asking for help.""" % traceback.format_exc()<br> ---&gt; 74 raise ImportError(msg)<br> 75<br> 76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long</p> <p dir="auto">ImportError: Traceback (most recent call last):<br> File "C:\Users\dizquierdo\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "C:\Users\dizquierdo\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "C:\Users\dizquierdo\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "C:\Users\dizquierdo\AppData\Local\Continuum\anaconda3\lib\imp.py", line 242, in load_module<br> return load_dynamic(name, filename, file)<br> File "C:\Users\dizquierdo\AppData\Local\Continuum\anaconda3\lib\imp.py", line 342, in load_dynamic<br> return _load(spec)<br> ImportError: DLL load failed: No se puede encontrar el módulo especificado.</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p> <p dir="auto">for some common reasons and solutions. Include the entire stack trace<br> above this error message when asking for help.</p> <p dir="auto">Regards</p>
<p dir="auto">Several users are still using Python32 bits and they cannot install TensorFlow. For them, <code class="notranslate">pip install tensorflow</code> fails as no wheel matches the tags expected by their environment (to debug, <code class="notranslate">pip debug --verbose</code> shows only tags that don't math the filenames of our wheels).</p> <p dir="auto">There is some requests to support 32 bits, see for example <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="478207036" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/31431" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/31431/hovercard" href="https://github.com/tensorflow/tensorflow/issues/31431">#31431</a></p> <p dir="auto">This is not going to be easy as we need to also compile the C++ codebase in 32 bits mode and that would cause issues with code written assuming types have a certain bit width.</p> <p dir="auto">There is no change in the user visible API, just a new set of wheels to support more users.</p> <p dir="auto">Opening this to reference in all similar issues.</p>
0
<h1 dir="auto">A keyboard shortcut to change the current fancyzones template to a next template in a list</h1> <p dir="auto">Let's say I mostly use a two column configuration on my main desktop but I would like sometimes to have three columns or divide the desktop on four areas so I have three templates that I would like to use in the same desktop but in order to switch between them I have to go to the app settings and set the template.</p> <p dir="auto">I would like to:<br> 1- Add the templates I create or use the default templates to a list that is assigned to the desktop<br> 2- When I press the keyboard shortcut key to change to the next template in the list the zones are displayed on top of the current windows and they are selected when I release the keys from the keyboard.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/PowerToys/commit/85c0eaa5980cabab16089fea3a2c6f148242a368/hovercard" href="https://github.com/microsoft/PowerToys/commit/85c0eaa5980cabab16089fea3a2c6f148242a368"><tt>85c0eaa</tt></a>)</li> <li>PowerToy Utility: Settings/PT Run</li> <li>Running PowerToys as Admin: No</li> <li>Windows build number: [run "winver"] 2004</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Enable PT Run and disable it.</li> <li>Check the general settings.json file</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto"><em>What is the expected result of the above steps?</em><br> File gets updated immediately with "PowerToys Run":false.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto"><em>What is the actual result of the above steps?</em><br> File takes a few seconds to get updated.</p> <p dir="auto">This bug seems to only occur for PT Run, and enabling works fine, its only disabling which has this delay. It seems like this happens because at the same time PowerLauncher.exe is loading, and it might be waiting for the load to complete for some reason. We should ideally ensure this update happens independently and isn't blocked by the update on PowerLauncher.<br> The end-user effect is that if a user disable PT Run and closes PT within 5 seconds the setting will not persist and PT Run will still be enabled on re-launching PT.</p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">When using <strong>@babel/plugin-proposal-decorators</strong> alongside <strong>@babel/preset-typescript</strong> <a href="https://www.typescriptlang.org/docs/handbook/functions.html#overloads" rel="nofollow">function overloading</a> does not work.</p> <p dir="auto"><code class="notranslate">TypeError: Duplicated element (nameOfOverloadedClassMethod)</code></p> <p dir="auto">This is the transpiled output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ kind: &quot;field&quot;, key: &quot;nameOfOverloadedClassMethod&quot;, value: void 0 }, { kind: &quot;field&quot;, key: &quot;nameOfOverloadedClassMethod&quot;, value: void 0 }, { kind: &quot;method&quot;, key: &quot;nameOfOverloadedClassMethod&quot;, value: function value(_bar) { // actual body of method } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">kind</span>: <span class="pl-s">"field"</span><span class="pl-kos">,</span> <span class="pl-c1">key</span>: <span class="pl-s">"nameOfOverloadedClassMethod"</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-k">void</span> <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">kind</span>: <span class="pl-s">"field"</span><span class="pl-kos">,</span> <span class="pl-c1">key</span>: <span class="pl-s">"nameOfOverloadedClassMethod"</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-k">void</span> <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">kind</span>: <span class="pl-s">"method"</span><span class="pl-kos">,</span> <span class="pl-c1">key</span>: <span class="pl-s">"nameOfOverloadedClassMethod"</span><span class="pl-kos">,</span> <span class="pl-en">value</span>: <span class="pl-k">function</span> <span class="pl-en">value</span><span class="pl-kos">(</span><span class="pl-s1">_bar</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// actual body of method</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Input Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { nameOfOverloadedClassMethod(bar: string); nameOfOverloadedClassMethod(bar: number); nameOfOverloadedClassMethod(bar) { // some implementation } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">nameOfOverloadedClassMethod</span><span class="pl-kos">(</span><span class="pl-s1">bar</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c1">nameOfOverloadedClassMethod</span><span class="pl-kos">(</span><span class="pl-s1">bar</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">nameOfOverloadedClassMethod</span><span class="pl-kos">(</span><span class="pl-s1">bar</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// some implementation</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong></p> <p dir="auto">The overloaded methods are removed when transpiling before decorators mangle the class.</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ loader: 'babel-loader', options: { presets: [ [ '@babel/preset-env', { modules: false, useBuiltIns: 'usage' } ], '@babel/typescript' ], plugins: [ ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }], '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-transform-runtime', 'angularjs-annotate' ] } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">loader</span>: <span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span> <span class="pl-c1">options</span>: <span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span> <span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">useBuiltIns</span>: <span class="pl-s">'usage'</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/typescript'</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">'@babel/plugin-proposal-decorators'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">decoratorsBeforeExport</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-proposal-class-properties'</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-proposal-object-rest-spread'</span><span class="pl-kos">,</span> <span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">,</span> <span class="pl-s">'angularjs-annotate'</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v7.2.0</li> <li>Node/npm version: Node 9.11.2</li> <li>OS: OSX 10.14.1</li> <li>Monorepo: no</li> <li>How you are using Babel: <code class="notranslate">loader</code></li> </ul>
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li> </ul> <h3 dir="auto">How are you using Babel?</h3> <p dir="auto">Programmatic API (<code class="notranslate">babel.transform</code>, <code class="notranslate">babel.parse</code>)</p> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export type Foo = { args: [ [ object: number ] ]; };"><pre class="notranslate"><span class="pl-s1">export</span> <span class="pl-s1">type</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">args</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span> <span class="pl-s1">object</span>: <span class="pl-s1">number</span> <span class="pl-kos">]</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Configuration file name</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Configuration</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Current and expected behavior</h3> <p dir="auto">Current:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/repl.ts: Tuple members must be labeled with a simple identifier. (3:2) 1 | export type Foo = { 2 | args: [ [ &gt; 3 | object: number | ^ 4 | ] ]; 5 | };"><pre class="notranslate"><code class="notranslate">/repl.ts: Tuple members must be labeled with a simple identifier. (3:2) 1 | export type Foo = { 2 | args: [ [ &gt; 3 | object: number | ^ 4 | ] ]; 5 | }; </code></pre></div> <p dir="auto">Expected:</p> <p dir="auto">No errors.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Binaries: <ul dir="auto"> <li>Node: 19.4.0 - /usr/local/bin/node</li> <li>Yarn: 1.22.18 - ~/.yarn/bin/yarn</li> <li>npm: 8.5.5 - /usr/local/bin/npm</li> </ul> </li> <li>Monorepos: <ul dir="auto"> <li>Yarn Workspaces: 1.22.18</li> </ul> </li> <li>npmPackages: <ul dir="auto"> <li>babel-standalone: ^6.26.0 =&gt; 6.26.0</li> <li>eslint: ^7.19.0 =&gt; 7.32.0</li> <li>webpack: ^5.58.1 =&gt; 5.75.0</li> </ul> </li> </ul> <h3 dir="auto">Possible solution</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><a href="https://babeljs.io/repl#?browsers=defaults&amp;build=&amp;builtIns=false&amp;corejs=3.6&amp;spec=false&amp;loose=false&amp;code_lz=KYDwDg9gTgLgBDAnmYcBiEJwLxwN4BQAkAIZQDmAzgFxwDa9xREARgFbADGMtAdgK4BbFsCjEAunHEBuAgF9pQA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=true&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env%2Cstage-2%2Ctypescript&amp;prettier=false&amp;targets=Node-14&amp;version=7.20.15&amp;externalPlugins=&amp;assumptions=%7B%7D" rel="nofollow">https://babeljs.io/repl#?browsers=defaults&amp;build=&amp;builtIns=false&amp;corejs=3.6&amp;spec=false&amp;loose=false&amp;code_lz=KYDwDg9gTgLgBDAnmYcBiEJwLxwN4BQAkAIZQDmAzgFxwDa9xREARgFbADGMtAdgK4BbFsCjEAunHEBuAgF9pQA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=true&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=true&amp;presets=env%2Cstage-2%2Ctypescript&amp;prettier=false&amp;targets=Node-14&amp;version=7.20.15&amp;externalPlugins=&amp;assumptions=%7B%7D</a></p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">include_role</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY / STEPS TO REPRODUCE</h5> <p dir="auto">When I include a role from another role, the include statement of the included role is not able to find the file. For example:</p> <p dir="auto">Role A includes role B</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Include other role include_role: name: roleB"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Include other role</span> <span class="pl-ent">include_role</span>: <span class="pl-ent">name</span>: <span class="pl-s">roleB</span></pre></div> <p dir="auto">and role B is split into multiple task files:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Install include: install.yml - name: Configure include: configure.yml"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Install</span> <span class="pl-ent">include</span>: <span class="pl-s">install.yml</span> - <span class="pl-ent">name</span>: <span class="pl-s">Configure</span> <span class="pl-ent">include</span>: <span class="pl-s">configure.yml</span></pre></div> <p dir="auto">When role B is directly used from a play everything works fine, but using it from task A failed with '<em>file not found errors</em>'.</p> <p dir="auto">I have been able to 'fix' this issue by using the <code class="notranslate">role_path</code> variable:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Install include: &quot;{{ role_path }}/tasks/install.yml&quot; - name: Configure include: &quot;{{ role_path }}/tasks/configure.yml&quot;"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Install</span> <span class="pl-ent">include</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ role_path }}/tasks/install.yml<span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Configure</span> <span class="pl-ent">include</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ role_path }}/tasks/configure.yml<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">I was making an ansible-galaxy role today and when placing the lookup_folder plugin at the same level as the rest of the folders and then using it it returns that it can't find the plugin. Do we have anyway to use lookup_plugins at a role level without forcing uses to manually add it to there playbook?</p> <p dir="auto">Here is the repo in question. Master is how i got it to work for testing that the lookup_plugins folder only works when at the same level as the playbook <a href="https://github.com/nowait-tools/ansible-rabbitmq">https://github.com/nowait-tools/ansible-rabbitmq</a> the branch galaxy test is the one that fails.</p>
0
<ul dir="auto"> <li>Electron Version: v3.0.0-beta.5</li> <li>Operating System (Platform and Version): Mac 10.12.6 (16G1510)</li> <li>Last known working Electron version: v2</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Window controls should be visible.</p> <p dir="auto"><strong>Actual behavior</strong><br> They are invisible. HOWEVER, they are clickable, if you click in the right spot.</p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" mainWindow = new BrowserWindow({ acceptFirstMouse: true, backgroundColor: '#333333', width: Math.min(width, 2480), height: Math.min(height, 1350), title: path.basename(filename), minWidth: 1024, minHeight: 640, show: false, resizable: true, titleBarStyle: 'hiddenInset', webPreferences: { webgl: true, experimentalFeatures: true, experimentalCanvasFeatures: true, devTools: true, plugins: true } }) "><pre class="notranslate"><code class="notranslate"> mainWindow = new BrowserWindow({ acceptFirstMouse: true, backgroundColor: '#333333', width: Math.min(width, 2480), height: Math.min(height, 1350), title: path.basename(filename), minWidth: 1024, minHeight: 640, show: false, resizable: true, titleBarStyle: 'hiddenInset', webPreferences: { webgl: true, experimentalFeatures: true, experimentalCanvasFeatures: true, devTools: true, plugins: true } }) </code></pre></div>
<p dir="auto">Electron version: 2.0.0-beta.8<br> Operating system: MacOS 10.12.6</p> <hr> <p dir="auto">Create a window with <code class="notranslate">vibrancy</code> of <code class="notranslate">"light"</code>/<code class="notranslate">"dark"</code> and a <code class="notranslate">titleBarStyle</code> of <code class="notranslate">"hiddenInset"</code> and the app crashes on quit. Other combinations may also cause a crash but I haven't tested them.</p> <p dir="auto">This is a regression, it works with <code class="notranslate">v1.8.4</code>.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new BrowserWindow({ width: 800, height: 600, titleBarStyle: &quot;hiddenInset&quot;, vibrancy: &quot;light&quot; })"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-c1">titleBarStyle</span>: <span class="pl-s">"hiddenInset"</span><span class="pl-kos">,</span> <span class="pl-c1">vibrancy</span>: <span class="pl-s">"light"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Here is a repro: <a href="https://github.com/davej/electron-quick-start">https://github.com/davej/electron-quick-start</a></p>
1
<p dir="auto">Requires back port from master</p> <p dir="auto">diff --git a/deps/pcre.mk b/deps/pcre.mk<br> index bdc784d..cb4a45d 100644<br> --- a/deps/pcre.mk<br> +++ b/deps/pcre.mk<br> @@ -5,7 +5,7 @@ PCRE_CFLAGS := -O3<br> PCRE_LDFLAGS := $(RPATH_ESCAPED_ORIGIN)</p> <p dir="auto"><math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="c95e1464c46820359395eb8ed4100d5d">$(SRCDIR)/srccache/pcre2-$</math-renderer>(PCRE_VER).tar.bz2: | $(SRCDIR)/srccache</p> <ul dir="auto"> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $(JLDOWNLOAD) $@ https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$(PCRE_VER).tar.bz2"><pre class="notranslate"><code class="notranslate"> $(JLDOWNLOAD) $@ https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$(PCRE_VER).tar.bz2 </code></pre></div> </li> </ul> <ul dir="auto"> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $(JLDOWNLOAD) $@ https://ftp.pcre.org/pub/pcre/pcre2-$(PCRE_VER).tar.bz2"><pre class="notranslate"><code class="notranslate"> $(JLDOWNLOAD) $@ https://ftp.pcre.org/pub/pcre/pcre2-$(PCRE_VER).tar.bz2 </code></pre></div> </li> </ul> <p dir="auto"><math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="c95e1464c46820359395eb8ed4100d5d">$(SRCDIR)/srccache/pcre2-$</math-renderer>(PCRE_VER)/source-extracted: <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="c95e1464c46820359395eb8ed4100d5d">$(SRCDIR)/srccache/pcre2-$</math-renderer>(PCRE_VER).tar.bz2</p>
<p dir="auto">Currently, the v0.6.2 release of Julia will not build successfully, since the build process attempts to download the dependency PCRE from a dead link.</p> <p dir="auto">This issue was already fixed in latest/unstable in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="312667760" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/26757" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/26757/hovercard" href="https://github.com/JuliaLang/julia/pull/26757">#26757</a> and backported in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="315639975" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/26848" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/26848/hovercard" href="https://github.com/JuliaLang/julia/pull/26848">#26848</a>, but this fix is not reflected in the latest release, here: <a href="https://github.com/JuliaLang/julia/releases">https://github.com/JuliaLang/julia/releases</a>.</p>
1
<p dir="auto">The majority of search frontends usually display the highlighted chunks below the hit title. The problem is that on non highlighting queries, such as a numerical range, no highlighting chunk will be brought back in the search. If you don't want your display to look bad, you usually display an excerpt of the beginning of the file, or of the first contiguous paragraph, etc... The easy way to do that is to always ask for the full field content in your ES query, but this is a very costly solution in any case (unnecessary memory and bandwidth).</p> <p dir="auto">I would like to suggest an enhancement to ElasticSearch to add the possibility to get back a excerpt of the highlighted field in case the query doesn't highlight. The syntax would be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;highlight&quot; : { &quot;fields&quot; : { &quot;content&quot; : { &quot;fragment_size&quot; : 150, &quot;number_of_fragments&quot; : 3, &quot;fallback&quot; : &quot;excerpt_basic&quot; // or &quot;excerpt_firstparagraph&quot; or any other more advanced impl to come } } }"><pre class="notranslate"><code class="notranslate">"highlight" : { "fields" : { "content" : { "fragment_size" : 150, "number_of_fragments" : 3, "fallback" : "excerpt_basic" // or "excerpt_firstparagraph" or any other more advanced impl to come } } } </code></pre></div> <p dir="auto">Jérémie</p>
<p dir="auto">Highlighting is great as providing an <em>highlighted excerpt</em>, but if you run no query against one field, you will have no output at all.<br> Highlighting could provide a non highlighted excerpt (some number of characters from the beginning of the value) as a fallback.<br> This would be yield shorted answers than always asking for the whole field content (that may be quite long).</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;highlight&quot; : { &quot;fields&quot; : { &quot;text&quot; : { &quot;number_of_fragments&quot; : 3, &quot;size_of_fragments&quot; : 150, &quot;no_results&quot; : VALUE } } } }"><pre class="notranslate">{ <span class="pl-ent">"highlight"</span> : { <span class="pl-ent">"fields"</span> : { <span class="pl-ent">"text"</span> : { <span class="pl-ent">"number_of_fragments"</span> : <span class="pl-c1">3</span>, <span class="pl-ent">"size_of_fragments"</span> : <span class="pl-c1">150</span>, <span class="pl-ent">"no_results"</span> : <span class="pl-ii">VALUE</span> } } } }</pre></div> <p dir="auto">Where <em>VALUE</em> could take: <code class="notranslate">hide</code> (default), <code class="notranslate">show</code>, or a character count.<br> Where <code class="notranslate">show</code> would be equivalent to setting the character count to <code class="notranslate">number_of_fragments * size_of_fragments</code>.</p>
1
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/react</code> (version 16.9.19) package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc (version 3.7.5). <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbenezech/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbenezech">@bbenezech</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pzavolinsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pzavolinsky">@pzavolinsky</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/digiguru/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/digiguru">@digiguru</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericanderson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericanderson">@ericanderson</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DovydasNavickas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DovydasNavickas">@DovydasNavickas</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/theruther4d/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/theruther4d">@theruther4d</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guilhermehubner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guilhermehubner">@guilhermehubner</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ferdaber/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ferdaber">@ferdaber</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jrakotoharisoa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jrakotoharisoa">@jrakotoharisoa</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pascaloliv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pascaloliv">@pascaloliv</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hotell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hotell">@Hotell</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/franklixuefei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/franklixuefei">@franklixuefei</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Jessidhia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Jessidhia">@Jessidhia</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/saranshkataria/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/saranshkataria">@saranshkataria</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukyth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukyth">@lukyth</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eps1lon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eps1lon">@eps1lon</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zieka/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zieka">@zieka</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dancerphil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dancerphil">@dancerphil</a></li> </ul> </li> </ul> <hr> <p dir="auto">Simple example code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ExampleComponent: FC&lt;{}&gt; = () =&gt; { // some data example const data = [{ name: '123' }, { name: '321' }]; // return React Elements array return data.map(t =&gt; &lt;div key={t.name}&gt;{t.name}&lt;/div&gt;); };"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">ExampleComponent</span>: <span class="pl-c1">FC</span><span class="pl-c1">&lt;</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// some data example</span> <span class="pl-k">const</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'123'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'321'</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// return React Elements array</span> <span class="pl-k">return</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">t</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Throws an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TS2322: Type '() =&gt; JSX.Element[]' is not assignable to type 'FC&lt;{}&gt;'.   Type 'Element[]' is not assignable to type 'ReactElement&lt;any, string | ((props: any) =&gt; ReactElement&lt;any, string | ... | (new (props: any) =&gt; Component&lt;any, any, any&gt;)&gt; | null) | (new (props: any) =&gt; Component&lt;any, any, any&gt;)&gt;'."><pre class="notranslate"><code class="notranslate">TS2322: Type '() =&gt; JSX.Element[]' is not assignable to type 'FC&lt;{}&gt;'.   Type 'Element[]' is not assignable to type 'ReactElement&lt;any, string | ((props: any) =&gt; ReactElement&lt;any, string | ... | (new (props: any) =&gt; Component&lt;any, any, any&gt;)&gt; | null) | (new (props: any) =&gt; Component&lt;any, any, any&gt;)&gt;'. </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/react</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbenezech/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbenezech">@bbenezech</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pzavolinsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pzavolinsky">@pzavolinsky</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/digiguru/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/digiguru">@digiguru</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericanderson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericanderson">@ericanderson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/morcerf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/morcerf">@morcerf</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkrotoff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkrotoff">@tkrotoff</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DovydasNavickas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DovydasNavickas">@DovydasNavickas</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/onigoetz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/onigoetz">@onigoetz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/richseviora/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/richseviora">@richseviora</a></li> </ul> </li> </ul> <p dir="auto">React 16 components can have multiple root elements.</p> <p dir="auto"><code class="notranslate">const Items = ({ items }: MyProps) =&gt; items.map(item =&gt; &lt;div key={item.id}&gt;{item.name}&lt;/div&gt;)</code></p> <p dir="auto">However, TypeScript will break with:<br> <code class="notranslate">error TS2605: JSX element type 'Element[]' is not a constructor function for JSX elements. Property 'render' is missing in type 'Element[]'.</code></p>
1
<p dir="auto">The <a href="http://doc.rust-lang.org/reference.html" rel="nofollow">reference</a> states pretty clearly that the memory layout of <code class="notranslate">struct</code>s is undefined by default, and presumably the same thing can be said of complex enum variants.</p> <p dir="auto">However, for C-like enums (simple enums which correspond to some integer type), it doesn't seem to be clear whether implicit discriminators are well defined. <a href="https://gist.github.com/brson/9dec4195a88066fa42e6#enumerations">One resource</a> (no longer in the actual docs, it seems) says that they <em>are</em> well defined (starts with 0, increases by 1 for each variant). But I couldn't find any other docs that comment on this (the reference <em>does</em> state that an enum with <code class="notranslate">#[repr(C)]</code> will have the default C ABI enum size - but also that enum representation in C is undefined? Is that referring to the implicit discriminators?).</p> <p dir="auto">In essence, can we assume that implicit discriminators start with 0 and increase by 1 per variant, or is this never an assumption we can make?</p>
<p dir="auto">The current Rust alpha allows one to attach two lifetimes with the same name to two distinct loop blocks.</p> <p dir="auto">This is a backwards compatibility risk for hypothesized future versions of Rust where the lifetime labels can be used in e.g. type annotations (rather than solely used for labelled break/continue statements).</p> <p dir="auto">Example:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let d = 3; 'a: for i in (0..d).rev() { println!(&quot;i: {}&quot;, i); } 'a: for i in (d..d*2).rev() { println!(&quot;i: {}&quot;, i); } }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> d = <span class="pl-c1">3</span><span class="pl-kos">;</span> <span class="pl-c1">'</span>a<span class="pl-kos">:</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-kos">(</span><span class="pl-c1">0</span>..d<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">rev</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"i: {}"</span>, i<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c1">'</span>a<span class="pl-kos">:</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-kos">(</span>d..d<span class="pl-c1">*</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">rev</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"i: {}"</span>, i<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
0
<p dir="auto"><strong>Migrated issue, originally created by paj (<a href="https://github.com/paj">@paj</a>)</strong></p> <p dir="auto">MSSQL does not natively support LIMIT with an OFFSET, but it may be possible to emulate the behavior. One option is to use MSSQL 2005's ROW_NUMBER() function; another is just to seek the cursor by the offset.</p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">It could be very useful (at least for me) if SQLAlchemy can support manually add Oracle hints (<a href="http://www.adp-gmbh.ch/ora/sql/hints/index.html" rel="nofollow">http://www.adp-gmbh.ch/ora/sql/hints/index.html</a>).</p> <p dir="auto">This can be useful because sometimes Oracle (in version 10, the 11 should be better), isn't able to optimize the request the right way, and a little hint like /<em>+ INDEX(TABLE)</em>/ manually added can drastically improve the performance.</p> <p dir="auto">I tried to add this feature in SQLAlchemy 0.5.3, but the architecture is a bit complicated for me to understand.</p> <p dir="auto">I can try again to modify the source code and propose a patch, but I need a little help on how to "cleanly" integrate this functionnality into SQLAlchemy.</p> <p dir="auto">You can contact me at canarix (at) gmail</p> <p dir="auto">Thanks in advance,</p> <p dir="auto">CanariX</p>
0
<p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomwanzek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomwanzek">@tomwanzek</a>,</p> <p dir="auto">I'm trying to reproduce the following d3 example (<a href="http://bl.ocks.org/cjrd/6863459" rel="nofollow">http://bl.ocks.org/cjrd/6863459</a>) in my Angular2 app with d3-drag and d3-select capabilities but I found the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'button' of null at SVGGElement.defaultFilter (drag.js:10) at SVGGElement.mousedowned (drag.js:41) at SVGGElement.&lt;anonymous&gt; (d3.js:811) at ZoneDelegate.invokeTask (zone.js:275) at Object.onInvokeTask (ng_zone.js:262) at ZoneDelegate.invokeTask (zone.js:274) at Zone.runTask (zone.js:151) at SVGGElement.ZoneTask.invoke (zone.js:345)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'button' of null at SVGGElement.defaultFilter (drag.js:10) at SVGGElement.mousedowned (drag.js:41) at SVGGElement.&lt;anonymous&gt; (d3.js:811) at ZoneDelegate.invokeTask (zone.js:275) at Object.onInvokeTask (ng_zone.js:262) at ZoneDelegate.invokeTask (zone.js:274) at Zone.runTask (zone.js:151) at SVGGElement.ZoneTask.invoke (zone.js:345) </code></pre></div> <p dir="auto">My Typescript file has the following imports:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as d3 from 'd3'; import * as d3Drag from 'd3-drag'; import * as d3Selection from 'd3-selection';"><pre class="notranslate"><code class="notranslate">import * as d3 from 'd3'; import * as d3Drag from 'd3-drag'; import * as d3Selection from 'd3-selection'; </code></pre></div> <p dir="auto">Finally, I'm using d3 v4.4.4 (with <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/types/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/types">@types</a> from npm repository) and Angular2. Using only d3-select, the example works but without drag&amp;drop capabilities.</p> <p dir="auto">I'm not sure wether it is a bug or coding error but any tip would be appreciated.</p> <p dir="auto">Thanks,</p>
<p dir="auto"><strong>d3-geo</strong> has seen a minor version update to 1.5 adding a new method.</p> <p dir="auto">The definitions should be updated to reflect <code class="notranslate">path.measure(...)</code> and any other relevant changes since the last version against which <strong>d3-geo</strong> was validated.</p> <p dir="auto">The minor version of <strong>d3</strong> definitions should also be bumped to 4.6. Could be done in the same PR.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ledragon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ledragon">@Ledragon</a><br> cc @gustavderdrrache</p>
0
<p dir="auto">See this code example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; t = [[1]] &gt;&gt;&gt; p = [[0]] &gt;&gt;&gt; metrics.ndcg_score(t, p) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/utils/validation.py&quot;, line 63, in inner_f return f(*args, **kwargs) File &quot;/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/metrics/_ranking.py&quot;, line 1567, in ndcg_score _check_dcg_target_type(y_true) File &quot;/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/metrics/_ranking.py&quot;, line 1307, in _check_dcg_target_type raise ValueError( ValueError: Only ('multilabel-indicator', 'continuous-multioutput', 'multiclass-multioutput') formats are supported. Got binary instead"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; t = [[1]] &gt;&gt;&gt; p = [[0]] &gt;&gt;&gt; metrics.ndcg_score(t, p) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/utils/validation.py", line 63, in inner_f return f(*args, **kwargs) File "/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/metrics/_ranking.py", line 1567, in ndcg_score _check_dcg_target_type(y_true) File "/Users/cbournhonesque/.pyenv/versions/bento/lib/python3.8/site-packages/sklearn/metrics/_ranking.py", line 1307, in _check_dcg_target_type raise ValueError( ValueError: Only ('multilabel-indicator', 'continuous-multioutput', 'multiclass-multioutput') formats are supported. Got binary instead </code></pre></div> <p dir="auto">It works correctly when the number of elements is bigger than 1: <a href="https://stackoverflow.com/questions/64303839/how-to-calculate-ndcg-with-binary-relevances-using-sklearn" rel="nofollow">https://stackoverflow.com/questions/64303839/how-to-calculate-ndcg-with-binary-relevances-using-sklearn</a></p>
<p dir="auto">I'm trying to calculate the NDCG score for binary relevance:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn import metrics # test 1 y_true = [[3]] y_score = [[5]] metrics.ndcg_score(y_true, y_score)"><pre class="notranslate"><code class="notranslate">from sklearn import metrics # test 1 y_true = [[3]] y_score = [[5]] metrics.ndcg_score(y_true, y_score) </code></pre></div> <p dir="auto">And getting error</p> <p dir="auto"><code class="notranslate">ValueError: Only ('multilabel-indicator', 'continuous-multioutput', 'multiclass-multioutput') formats are supported. Got binary instead </code></p> <p dir="auto">Below code snippet is working which has more than 1 item. Please suggest why single item array is not working.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn import metrics # test 1 y_true = [[6 ,5, 4, 3, 2, 1]] y_score = [[120, -2, -6, -3, 2, 12]] metrics.ndcg_score(y_true, y_score)"><pre class="notranslate"><code class="notranslate">from sklearn import metrics # test 1 y_true = [[6 ,5, 4, 3, 2, 1]] y_score = [[120, -2, -6, -3, 2, 12]] metrics.ndcg_score(y_true, y_score) </code></pre></div>
1
<p dir="auto">This showed up in the dask.dataframe test suite when testing against the 0.19 release candidate. I'm unsure if this was an intended change or not:</p> <h3 dir="auto">Pandas 0.18</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import pandas as pd In [2]: a = pd.Series([1, 2], index=[1, 1]) In [3]: b = pd.Series([10, 10], index=[1, 2]) In [4]: a Out[4]: 1 1 1 2 dtype: int64 In [5]: b Out[5]: 1 10 2 10 dtype: int64 In [6]: a + b Out[6]: 1 11.0 1 12.0 2 NaN dtype: float64"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">1</span>]) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">10</span>, <span class="pl-c1">10</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">a</span> <span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">int64</span> <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">b</span> <span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-c1">1</span> <span class="pl-c1">10</span> <span class="pl-c1">2</span> <span class="pl-c1">10</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">int64</span> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span> <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-c1">1</span> <span class="pl-c1">11.0</span> <span class="pl-c1">1</span> <span class="pl-c1">12.0</span> <span class="pl-c1">2</span> <span class="pl-v">NaN</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span></pre></div> <h3 dir="auto">Pandas 0.19rc1</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import pandas as pd In [2]: a = pd.Series([1, 2], index=[1, 1]) In [3]: b = pd.Series([10, 10], index=[1, 2]) In [4]: a Out[4]: 1 1 1 2 dtype: int64 In [5]: b Out[5]: 1 10 2 10 dtype: int64 In [6]: a + b --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-6-f96fb8f649b6&gt; in &lt;module&gt;() ----&gt; 1 a + b /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/ops.py in wrapper(left, right, name, na_op) 671 return NotImplemented 672 --&gt; 673 left, right = _align_method_SERIES(left, right) 674 675 converted = _Op.get_op(left, right, name, na_op) /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/ops.py in _align_method_SERIES(left, right, align_asobject) 613 return_indexers=True) 614 # if DatetimeIndex have different tz, convert to UTC --&gt; 615 left.index = index 616 right.index = index 617 /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/generic.py in __setattr__(self, name, value) 2754 try: 2755 object.__getattribute__(self, name) -&gt; 2756 return object.__setattr__(self, name, value) 2757 except AttributeError: 2758 pass pandas/src/properties.pyx in pandas.lib.AxisProperty.__set__ (pandas/lib.c:44336)() /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/series.py in _set_axis(self, axis, labels, fastpath) 306 object.__setattr__(self, '_index', labels) 307 if not fastpath: --&gt; 308 self._data.set_axis(axis, labels) 309 310 def _set_subtyp(self, is_all_dates): /home/mrocklin/Software/anaconda/lib/python3.5/site-packages/pandas/core/internals.py in set_axis(self, axis, new_labels) 2774 raise ValueError('Length mismatch: Expected axis has %d elements, ' 2775 'new values have %d elements' % -&gt; 2776 (old_len, new_len)) 2777 2778 self.axes[axis] = new_labels ValueError: Length mismatch: Expected axis has 3 elements, new values have 5 elements"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">1</span>]) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">10</span>, <span class="pl-c1">10</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">a</span> <span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">int64</span> <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">b</span> <span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-c1">1</span> <span class="pl-c1">10</span> <span class="pl-c1">2</span> <span class="pl-c1">10</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">int64</span> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">6</span><span class="pl-c1">-</span><span class="pl-s1">f96fb8f649b6</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">mrocklin</span><span class="pl-c1">/</span><span class="pl-v">Software</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">ops</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">wrapper</span>(<span class="pl-s1">left</span>, <span class="pl-s1">right</span>, <span class="pl-s1">name</span>, <span class="pl-s1">na_op</span>) <span class="pl-c1">671</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-c1">672</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">673</span> <span class="pl-s1">left</span>, <span class="pl-s1">right</span> <span class="pl-c1">=</span> <span class="pl-en">_align_method_SERIES</span>(<span class="pl-s1">left</span>, <span class="pl-s1">right</span>) <span class="pl-c1">674</span> <span class="pl-c1">675</span> <span class="pl-s1">converted</span> <span class="pl-c1">=</span> <span class="pl-s1">_Op</span>.<span class="pl-en">get_op</span>(<span class="pl-s1">left</span>, <span class="pl-s1">right</span>, <span class="pl-s1">name</span>, <span class="pl-s1">na_op</span>) <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">mrocklin</span><span class="pl-c1">/</span><span class="pl-v">Software</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">ops</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_align_method_SERIES</span>(<span class="pl-s1">left</span>, <span class="pl-s1">right</span>, <span class="pl-s1">align_asobject</span>) <span class="pl-c1">613</span> <span class="pl-s1">return_indexers</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c1">614</span> <span class="pl-c"># if DatetimeIndex have different tz, convert to UTC</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">615</span> <span class="pl-s1">left</span>.<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span> <span class="pl-c1">616</span> <span class="pl-s1">right</span>.<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span> <span class="pl-c1">617</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">mrocklin</span><span class="pl-c1">/</span><span class="pl-v">Software</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">generic</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">__setattr__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">name</span>, <span class="pl-s1">value</span>) <span class="pl-c1">2754</span> <span class="pl-k">try</span>: <span class="pl-c1">2755</span> <span class="pl-s1">object</span>.<span class="pl-en">__getattribute__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">name</span>) <span class="pl-c1">-&gt;</span> <span class="pl-c1">2756</span> <span class="pl-k">return</span> <span class="pl-s1">object</span>.<span class="pl-en">__setattr__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">name</span>, <span class="pl-s1">value</span>) <span class="pl-c1">2757</span> <span class="pl-k">except</span> <span class="pl-v">AttributeError</span>: <span class="pl-c1">2758</span> <span class="pl-k">pass</span> <span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">src</span><span class="pl-c1">/</span><span class="pl-s1">properties</span>.<span class="pl-s1">pyx</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">lib</span>.<span class="pl-v">AxisProperty</span>.<span class="pl-en">__set__</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">lib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">44336</span>)() <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">mrocklin</span><span class="pl-c1">/</span><span class="pl-v">Software</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">series</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_set_axis</span>(<span class="pl-s1">self</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">labels</span>, <span class="pl-s1">fastpath</span>) <span class="pl-c1">306</span> <span class="pl-s1">object</span>.<span class="pl-en">__setattr__</span>(<span class="pl-s1">self</span>, <span class="pl-s">'_index'</span>, <span class="pl-s1">labels</span>) <span class="pl-c1">307</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">fastpath</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">308</span> <span class="pl-s1">self</span>.<span class="pl-s1">_data</span>.<span class="pl-en">set_axis</span>(<span class="pl-s1">axis</span>, <span class="pl-s1">labels</span>) <span class="pl-c1">309</span> <span class="pl-c1">310</span> <span class="pl-k">def</span> <span class="pl-en">_set_subtyp</span>(<span class="pl-s1">self</span>, <span class="pl-s1">is_all_dates</span>): <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">mrocklin</span><span class="pl-c1">/</span><span class="pl-v">Software</span><span class="pl-c1">/</span><span class="pl-s1">anaconda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">internals</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">set_axis</span>(<span class="pl-s1">self</span>, <span class="pl-s1">axis</span>, <span class="pl-s1">new_labels</span>) <span class="pl-c1">2774</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'Length mismatch: Expected axis has %d elements, '</span> <span class="pl-c1">2775</span> <span class="pl-s">'new values have %d elements'</span> <span class="pl-c1">%</span> <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2776</span> (<span class="pl-s1">old_len</span>, <span class="pl-s1">new_len</span>)) <span class="pl-c1">2777</span> <span class="pl-c1">2778</span> <span class="pl-s1">self</span>.<span class="pl-s1">axes</span>[<span class="pl-s1">axis</span>] <span class="pl-c1">=</span> <span class="pl-s1">new_labels</span> <span class="pl-v">ValueError</span>: <span class="pl-v">Length</span> <span class="pl-s1">mismatch</span>: <span class="pl-v">Expected</span> <span class="pl-s1">axis</span> <span class="pl-s1">has</span> <span class="pl-c1">3</span> <span class="pl-s1">elements</span>, <span class="pl-s1">new</span> <span class="pl-s1">values</span> <span class="pl-s1">have</span> <span class="pl-c1">5</span> <span class="pl-s1">elements</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def get_candidates_3(closing, sales, settings: dict=_default_) -&gt; list: S = sales.loc[:closing['future_cap'], :] # sales were sorted by date beforehand mask = (S['building_id'] == closing['building_id'])|(S['unit_bbl'] == closing['bbl']) ... if mask.any(): return S.loc[mask, 'id'].tolist() return [] sample.apply(get_candidates_3, reduce=True, axis=1, sales=sales_ts,settings=_default_)"><pre class="notranslate"><code class="notranslate">def get_candidates_3(closing, sales, settings: dict=_default_) -&gt; list: S = sales.loc[:closing['future_cap'], :] # sales were sorted by date beforehand mask = (S['building_id'] == closing['building_id'])|(S['unit_bbl'] == closing['bbl']) ... if mask.any(): return S.loc[mask, 'id'].tolist() return [] sample.apply(get_candidates_3, reduce=True, axis=1, sales=sales_ts,settings=_default_) </code></pre></div> <p dir="auto">( python 3.6, pandas 0.21.0 )</p> <p dir="auto">The behavior I want to achieve is to get a single column of lists.<br> However, despite <code class="notranslate">reduce=True</code> this <code class="notranslate">apply</code> tries to map returned list as a series (?), raising the following:</p> <p dir="auto"><code class="notranslate">ValueError: Shape of passed values is (10, 8), indices imply (10, 23)</code><br> (here, 10 is the size of the sample, 23 is the number of columns in the sample, 8 is the number of elements in the list that was returned for the first column?</p> <p dir="auto">When I change <code class="notranslate">get_candidates_3</code> to return set instead, I get a full new dataframe of the same shape (10,23), filled with exactly the same sets row-wise, instead.</p> <p dir="auto">I am pretty sure I was using the same pattern successfully with a previous version...</p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/754" rel="nofollow">http://projects.scipy.org/scipy/ticket/754</a> on 2008-10-13 by trac user shashmik, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p> <p dir="auto">Running scipy version 0.7.0.dev4763</p> <p dir="auto">coo_matrix.tocsr + tocsc both ignore the sum_duplicates parameter:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: from numpy import * In [2]: from scipy.sparse import * In [3]: data = array([1,1,1,1,1,1,1]) In [4]: row = array([0,0,1,3,1,0,0]) In [5]: col = array([0,2,1,3,1,0,0]) In [6]: A = coo_matrix( (data,(row,col)), shape=(4,4)) In [8]: A.tocsr(sum_duplicates=False).todense() Out[8]: matrix([[3, 0, 1, 0], [0, 2, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1]]) In [9]: A.tocsc(sum_duplicates=False).todense() Out[9]: matrix([[3, 0, 1, 0], [0, 2, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1]])"><pre class="notranslate"><code class="notranslate">In [1]: from numpy import * In [2]: from scipy.sparse import * In [3]: data = array([1,1,1,1,1,1,1]) In [4]: row = array([0,0,1,3,1,0,0]) In [5]: col = array([0,2,1,3,1,0,0]) In [6]: A = coo_matrix( (data,(row,col)), shape=(4,4)) In [8]: A.tocsr(sum_duplicates=False).todense() Out[8]: matrix([[3, 0, 1, 0], [0, 2, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1]]) In [9]: A.tocsc(sum_duplicates=False).todense() Out[9]: matrix([[3, 0, 1, 0], [0, 2, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1]]) </code></pre></div>
<p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/scipy/scipy/blob/fcdc3d7b7c1b950d874ac3e890cccde3e2de1c6c/scipy/optimize/optimize.py#L160">scipy/scipy/optimize/optimize.py</a> </p> <p class="mb-0 color-fg-muted"> Line 160 in <a data-pjax="true" class="commit-tease-sha" href="/scipy/scipy/commit/fcdc3d7b7c1b950d874ac3e890cccde3e2de1c6c">fcdc3d7</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L160" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="160"></td> <td id="LC160" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> sum(100.0*(x[1:] - x[:-1]**2.0)**2.0 + (1 - x[:-1])**2.0</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Should be<br> <code class="notranslate">sum(100.0*(x[1:] - x[:-1]**2.0)**2.0 + (1 - x[:-1])**2.0 )</code></p>
0
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release: run "hg pull -u" and retry what you did to reproduce the problem. Thanks. What steps will reproduce the problem? 1. Build the attached source using a cgo Makefile What is the expected output? What do you see instead? It should compile. Instead, the compiler complains about the C type being an invalid receiver type. What is your $GOOS? $GOARCH? linux 386 Which revision are you using? (hg identify) 4c468c07d05c tip Please provide any additional information below. The failure to compile seems to have been introduced in the current tip commit.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/581/0/ptr.go" rel="nofollow">ptr.go</a> (141 bytes)</li> </ol>
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p> <pre class="notranslate">Tested in Ubuntu 12.04.2 LTS The compilation test in 1.1rc2 fails in amd64/linux (in 386/linux is ok): # ../test/bench/go1 ok _/usr/local/go/test/bench/go1 2.990s # ../test runoutput rotate0.go : incorrect output go build command-line-arguments: signal: killed runoutput rotate1.go : incorrect output go build command-line-arguments: signal: killed runoutput rotate2.go : incorrect output go build command-line-arguments: signal: killed signal: killed</pre>
0
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143388095" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23461" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23461/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23461">#23461</a> I described how difficult it is to write automation around kubectl. You want to check for errors at each stage, but you don't want the script to be so brittle that it only works if the apiserver is up and reachable 100% of the time. Asking users (including ourselves) to add the retry logic in the shell does not seem correct, so I'd like to see us add retry logic (off by default if we want) to kubectl.</p> <p dir="auto">@kubernetes/kubectl</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I've noticed that numpy's testsuite hangs when numpy is built against MKL 2018.2 - but runs to completion when built against MKL 2017.1.</p> <p dir="auto">This is the case for numpy v1.14.2, 1.14.x HEAD and master branches.</p> <p dir="auto">I'm on CentOS 7.4 x86_64 on a Broadwell processor, python 2.7.5 (but also affects other pythons), Cython 0.28.2, nose 1.3.7.</p> <p dir="auto">By executing this: python -c "import numpy; numpy.test(verbose=2)"</p> <p dir="auto">I can see that the hang occurs while running this test: numpy.distutils.tests.test_exec_command.TestExecCommand.test_basic</p> <p dir="auto">At this point, the python interpreter is consuming an entire CPU core and, if I strace it, I see a stream of identical lines, all showing:</p> <p dir="auto">sched_yield() = 0</p> <p dir="auto">Any ideas, please?</p> <p dir="auto">Thanks!</p>
<p dir="auto">Hello!</p> <p dir="auto">Linux Mint: 18.3 (Sylvia)<br> Python: 3.6.3<br> NumPy: 1.13.3<br> Cython 0.27.3</p> <p dir="auto">I am trying to build numpy and scipy wheels from source using the intel mkl compilers. Numpy compiles just fine, however when I run the test suite, the suite hangs on <code class="notranslate">test_path_type_input</code> within <code class="notranslate">test_einsum.TestEinSumPath</code> (or maybe the test after it? not sure because the last test name visible is this one; see screen cap)</p> <p dir="auto">Running the test suite for scipy results in the suite hanging on <code class="notranslate">test_lapack</code> within <code class="notranslate">test_build.TestF77Mismatch</code></p> <p dir="auto">In both cases (numpy and scipy) the tests run and pass fine when run individually, so I'm not sure what else might be the cause.</p> <p dir="auto">Any help is greatly appreciated. See screen shot for images of the test suites when they're stuck is included.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7530947/33036734-90a4cba6-cdec-11e7-8014-025c4f0904f1.png"><img src="https://user-images.githubusercontent.com/7530947/33036734-90a4cba6-cdec-11e7-8014-025c4f0904f1.png" alt="numpy" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7530947/33036738-92df0c24-cdec-11e7-93f7-0b0417779e7c.png"><img src="https://user-images.githubusercontent.com/7530947/33036738-92df0c24-cdec-11e7-93f7-0b0417779e7c.png" alt="scipy" style="max-width: 100%;"></a></p>
1
<p dir="auto">Within the svg glyphicon, the id of the font is:</p> <p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/master/fonts/glyphicons-halflings-regular.svg#L6">https://github.com/twbs/bootstrap/blob/master/fonts/glyphicons-halflings-regular.svg#L6</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;font id=&quot;glyphicons_halflingsregular&quot; horiz-adv-x=&quot;1200&quot; &gt;"><pre class="notranslate"><code class="notranslate">&lt;font id="glyphicons_halflingsregular" horiz-adv-x="1200" &gt; </code></pre></div> <p dir="auto">However, in css, it is linked like so:</p> <p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17">https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~&quot;url('@{icon-font-path}@{icon-font-name}.svg#glyphicons-halflingsregular') format('svg')&quot;;"><pre class="notranslate"><code class="notranslate">~"url('@{icon-font-path}@{icon-font-name}.svg#glyphicons-halflingsregular') format('svg')"; </code></pre></div> <p dir="auto">When you disable all fonts but the svg variant, it displays in Safari 7 as little boxes. When you change the reference to an underscore, it displays fine in safari:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~&quot;url('@{icon-font-path}@{icon-font-name}.svg#glyphicons_halflingsregular') format('svg')&quot;;"><pre class="notranslate"><code class="notranslate">~"url('@{icon-font-path}@{icon-font-name}.svg#glyphicons_halflingsregular') format('svg')"; </code></pre></div>
<p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17">https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17</a></p> <p dir="auto">This font face declaration is setup to reference the font name as a variable.<br> However the SVG font ID after the hash is hard coded.</p> <p dir="auto">Though this is not really an issue it could later become a problem if the font name and SVG font ID changes, and only the variable is updated and not properly tested.</p> <p dir="auto">Will submit a PR that uses a new variable <code class="notranslate">@icon-font-svg-id</code></p> <ul dir="auto"> <li>Edit *</li> </ul> <p dir="auto">Further more the font icon ID is incorrect<br> <a href="https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17">https://github.com/twbs/bootstrap/blob/master/less/glyphicons.less#L17</a><br> <a href="https://github.com/twbs/bootstrap/blob/master/fonts/glyphicons-halflings-regular.svg#L6">https://github.com/twbs/bootstrap/blob/master/fonts/glyphicons-halflings-regular.svg#L6</a></p> <p dir="auto"><code class="notranslate">glyphicons_halflingsregular</code> vs <code class="notranslate">glyphicons-halflingsregular</code></p>
1
<p dir="auto">it works with make_one_shot_iterator(), I can see that the training time is 2x lower, when using the make_initializable_iterator() the time is the same as without prefetching to device.<br> how to use the new feature when dataset switch (train/val/test) is needed for evaluation purpose?<br> code parts<br> //not working<br> trainDataset = tf.data.Dataset.from_tensor_slices((trainFeatures,trainLabels,trainLengths,trainMasks))<br> trainDataset = trainDataset.batch(batchSize)<br> trainDataset = trainDataset.apply(tf.contrib.data.shuffle_and_repeat(100,nEpochs))<br> iterator = tf.data.Iterator.from_structure(trainDataset.output_types, trainDataset.output_shapes)<br> train_init_op = iterator.make_initializer(trainDataset)<br> trainDataset = trainDataset.apply(tf.contrib.data.prefetch_to_device('/gpu:0'))</p> <p dir="auto">//working<br> trainDataset = tf.data.Dataset.from_tensor_slices((trainFeatures,trainLabels,trainLengths,trainMasks))<br> trainDataset = trainDataset.batch(batchSize)<br> trainDataset = trainDataset.apply(tf.contrib.data.shuffle_and_repeat(100,nEpochs))<br> trainDataset = trainDataset.apply(tf.contrib.data.prefetch_to_device('/gpu:0'))<br> iterator = trainDataset.make_one_shot_iterator()</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br> Yes</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.8.0</li> <li><strong>Python version</strong>: 2.7.12</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I'm using <strong>tf.data.Iterator.from_structure</strong> mechanism to switch between training/validation datasets during training<br> However, when <strong>tf.contrib.data.prefetch_to_device</strong> is added at the end of the dataset pipeline, the code crashes with the following error:<br> <code class="notranslate">NotImplementedError: `prefetch_to_device()` must be the last transformation in a dataset pipeline.</code><br> Explicit one shot iterator works fine</p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with tf.Graph().as_default(): with tf.Session() as sess: dataset = tf.data.Dataset.range(10).apply(tf.contrib.data.prefetch_to_device('/cpu:0')) # 1) works fine iterator = dataset.make_one_shot_iterator() print sess.run(iterator.get_next()) # 2) fails iterator = tf.data.Iterator.from_structure((tf.int64), ([])) sess.run(iterator.make_initializer(dataset)) print sess.run(iterator.get_next())"><pre class="notranslate"><code class="notranslate">with tf.Graph().as_default(): with tf.Session() as sess: dataset = tf.data.Dataset.range(10).apply(tf.contrib.data.prefetch_to_device('/cpu:0')) # 1) works fine iterator = dataset.make_one_shot_iterator() print sess.run(iterator.get_next()) # 2) fails iterator = tf.data.Iterator.from_structure((tf.int64), ([])) sess.run(iterator.make_initializer(dataset)) print sess.run(iterator.get_next()) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) &lt;ipython-input-34-dbae58b82de0&gt; in &lt;module&gt;() 6 7 iterator = tf.data.Iterator.from_structure((tf.int64), ([])) ----&gt; 8 sess.run(iterator.make_initializer(dataset)) 9 print sess.run(iterator.get_next()) /usr/local/lib/python2.7/dist-packages/tensorflow/python/data/ops/iterator_ops.pyc in make_initializer(self, dataset, name) 306 with ops.colocate_with(self._iterator_resource): 307 return gen_dataset_ops.make_iterator( --&gt; 308 dataset._as_variant_tensor(), self._iterator_resource, name=name) # pylint: disable=protected-access 309 310 def get_next(self, name=None): /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/data/python/ops/prefetching_ops.pyc in _as_variant_tensor(self) 289 # TODO(mrry): Investigate support for chaining further transformations after 290 # the prefetch, including GPU support. --&gt; 291 raise NotImplementedError(&quot;`prefetch_to_device()` must be the last &quot; 292 &quot;transformation in a dataset pipeline.&quot;) 293 NotImplementedError: `prefetch_to_device()` must be the last transformation in a dataset pipeline."><pre class="notranslate"><code class="notranslate">0 --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) &lt;ipython-input-34-dbae58b82de0&gt; in &lt;module&gt;() 6 7 iterator = tf.data.Iterator.from_structure((tf.int64), ([])) ----&gt; 8 sess.run(iterator.make_initializer(dataset)) 9 print sess.run(iterator.get_next()) /usr/local/lib/python2.7/dist-packages/tensorflow/python/data/ops/iterator_ops.pyc in make_initializer(self, dataset, name) 306 with ops.colocate_with(self._iterator_resource): 307 return gen_dataset_ops.make_iterator( --&gt; 308 dataset._as_variant_tensor(), self._iterator_resource, name=name) # pylint: disable=protected-access 309 310 def get_next(self, name=None): /usr/local/lib/python2.7/dist-packages/tensorflow/contrib/data/python/ops/prefetching_ops.pyc in _as_variant_tensor(self) 289 # TODO(mrry): Investigate support for chaining further transformations after 290 # the prefetch, including GPU support. --&gt; 291 raise NotImplementedError("`prefetch_to_device()` must be the last " 292 "transformation in a dataset pipeline.") 293 NotImplementedError: `prefetch_to_device()` must be the last transformation in a dataset pipeline. </code></pre></div> <p dir="auto">I guess, prefetching is still under development? Is there a temporary workaround for this kind of scenario?</p>
1
<p dir="auto">Nose tests are failing on OSX 10.10.2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip show scikit-learn scipy numpy python --- Name: scikit-learn Version: 0.16.0 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: scipy Version: 0.15.1 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: numpy Version: 1.9.2 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: Python Version: 2.7.7 Location: /anaconda/lib/python2.7/lib-dynload Requires: ---------------------------------------------------------------------- nosetests -v sklearn Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.datasets.tests.test_20news.test_20news ... SKIP: Download 20 newsgroups to run this test sklearn.datasets.tests.test_20news.test_20news_vectorized ... SKIP: Test too slow. sklearn.datasets.tests.test_base.test_data_home ... ok sklearn.datasets.tests.test_base.test_default_empty_load_files ... ok sklearn.datasets.tests.test_base.test_default_load_files ... ok sklearn.datasets.tests.test_base.test_load_files_w_categories_desc_and_encoding ... ok sklearn.datasets.tests.test_base.test_load_files_wo_load_content ... ok sklearn.datasets.tests.test_base.test_load_sample_images ... ok sklearn.datasets.tests.test_base.test_load_digits ... ok sklearn.datasets.tests.test_base.test_load_digits_n_class_lt_10 ... ok sklearn.datasets.tests.test_base.test_load_sample_image ... ok sklearn.datasets.tests.test_base.test_load_missing_sample_image_error ... ok sklearn.datasets.tests.test_base.test_load_diabetes ... ok sklearn.datasets.tests.test_base.test_load_linnerud ... ok sklearn.datasets.tests.test_base.test_load_iris ... ok sklearn.datasets.tests.test_base.test_load_boston ... ok sklearn.datasets.tests.test_covtype.test_fetch ... SKIP: Covertype dataset can not be loaded. sklearn.datasets.tests.test_lfw.test_load_empty_lfw_people ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people_too_restrictive ... ok sklearn.datasets.tests.test_lfw.test_load_empty_lfw_pairs ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_pairs ... ok sklearn.datasets.tests.test_mldata.test_mldata_filename ... ok Test that fetch_mldata is able to download and cache a data set. ... ok sklearn.datasets.tests.test_mldata.test_fetch_one_column ... ok sklearn.datasets.tests.test_mldata.test_fetch_multiple_column ... ok sklearn.datasets.tests.test_samples_generator.test_make_classification ... ok Test the construction of informative features in make_classification ... ok sklearn.datasets.tests.test_samples_generator.test_make_multilabel_classification_return_sequences ... ok sklearn.datasets.tests.test_samples_generator.test_make_multilabel_classification_return_indicator ... ok sklearn.datasets.tests.test_samples_generator.test_make_hastie_10_2 ... ok sklearn.datasets.tests.test_samples_generator.test_make_regression ... ok sklearn.datasets.tests.test_samples_generator.test_make_regression_multitarget ... ok sklearn.datasets.tests.test_samples_generator.test_make_blobs ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman1 ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman2 ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman3 ... ok sklearn.datasets.tests.test_samples_generator.test_make_low_rank_matrix ... ok sklearn.datasets.tests.test_samples_generator.test_make_sparse_coded_signal ... ok sklearn.datasets.tests.test_samples_generator.test_make_sparse_uncorrelated ... ok sklearn.datasets.tests.test_samples_generator.test_make_spd_matrix ... ok sklearn.datasets.tests.test_samples_generator.test_make_swiss_roll ... ok sklearn.datasets.tests.test_samples_generator.test_make_s_curve ... ok sklearn.datasets.tests.test_samples_generator.test_make_biclusters ... ok sklearn.datasets.tests.test_samples_generator.test_make_checkerboard ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_fd ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_multilabel ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_files ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_n_features ... ok sklearn.datasets.tests.test_svmlight_format.test_load_compressed ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_order_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_zero_based ... ok sklearn.datasets.tests.test_svmlight_format.test_load_zero_based_auto ... ok sklearn.datasets.tests.test_svmlight_format.test_load_with_qid ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_file2 ... ok sklearn.datasets.tests.test_svmlight_format.test_not_a_filename ... ok sklearn.datasets.tests.test_svmlight_format.test_invalid_filename ... ok sklearn.datasets.tests.test_svmlight_format.test_dump ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_concise ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_comment ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_invalid ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_query_id ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.externals.joblib.test.test_disk.test_disk_used ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(83886080, 83886080) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(1433, 1433) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(122880, 122880) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(53, 53) ... ok sklearn.externals.joblib.test.test_disk.test_mkdirp ... ok sklearn.externals.joblib.test.test_format_stack.test_safe_repr ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 0, 'x': 1}, {'y': 0, 'x': 1}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 0}, {'y': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 0}, {'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 0}, {'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({}, {}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 1, 'x': 0}, {'y': 1, 'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 2}, {'x': 2}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 2}, {'x': 2}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 1}, {'x': 1}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args_method ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 0, 'x': 1, '*': [], '**': {}}, {'y': 0, 'x': 1, '*': [], '**': {}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 2, 'x': 1, '*': [3, 4], '**': {}}, {'y': 2, 'x': 1, '*': [3, 4], '**': {}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 25, 'x': 1, '*': [], '**': {'ee': 2}}, {'y': 25, 'x': 1, '*': [], '**': {'ee': 2}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 2, 'x': 1, '**': {'ee': 2}}, {'y': 2, 'x': 1, '**': {'ee': 2}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_kwargs ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args_2 ... //anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x106d06b50&gt;, ignore list will not work. nose.tools.assert_equal(filter_args(ff, ['y'], (1, )), ok sklearn.externals.joblib.test.test_func_inspect.test_func_name('f', 'f') ... ok sklearn.externals.joblib.test.test_func_inspect.test_func_name('g', 'g') ... ok sklearn.externals.joblib.test.test_func_inspect.test_func_inspect_errors ... ok Make sure that calling the same method on two different instances ... ok Make sure that filter_args returns decent error messages, for the ... ok sklearn.externals.joblib.test.test_func_inspect.test_clean_win_chars ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok sklearn.externals.joblib.test.test_hashing.test_hash_methods ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Check that memmap and arrays hash identically if coerce_mmap is ... ok Check that memmap and arrays hash identically if coerce_mmap is ... ok Check the performance of hashing numpy arrays: ... ok Check the performance of hashing numpy arrays: ... ok Make sure that calling the same method on two different instances ... ok Make sure that calling the same _cached_ method on two different ... ok Make sure that ndarrays with dtype `object' hash correctly. ... ok sklearn.externals.joblib.test.test_hashing.test_numpy_scalar ... ok sklearn.externals.joblib.test.test_hashing.test_dict_hash ... ok sklearn.externals.joblib.test.test_hashing.test_set_hash ... ok sklearn.externals.joblib.test.test_logger.test_print_time ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Check that name collisions with functions will raise warnings ... ok Check that name collisions with functions will raise warnings ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_lambda_collisions ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_collision_detection(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_collision_detection(True,) ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Smoke test memory with a function with a function defined in an eval. ... ok Check that if a function has a side effect in its arguments, it ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Smoketest the exception handling of Memory. ... ok Smoketest the exception handling of Memory. ... ok Smoketest the exception handling of Memory. ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok sklearn.externals.joblib.test.test_memory.test_func_dir('/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib/sklearn/externals/joblib/test/test_memory/f', '/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib/sklearn/externals/joblib/test/test_memory/f') ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(False,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_persistence(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_persistence('/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib', '/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib') ... ok sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ... FAIL sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ... FAIL Test the format signature formatting with numpy. ... ok sklearn.externals.joblib.test.test_my_exceptions.test_inheritance ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(None, None) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'type'&gt;, &lt;type 'type'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(True, True) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1, 1) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1L, 1L) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1.0, 1.0) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((1+0j), (1+0j)) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types('1', '1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(u'1', u'1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((), ()) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types([], []) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types({}, {}) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'file'&gt;, &lt;type 'file'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'buffer'&gt;, &lt;type 'buffer'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;built-in function len&gt;, &lt;built-in function len&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;function _function at 0x105fb79b0&gt;, &lt;function _function at 0x105fb79b0&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;, &lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;, &lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(None, None) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'type'&gt;, &lt;type 'type'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(True, True) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1, 1) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1L, 1L) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1.0, 1.0) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((1+0j), (1+0j)) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types('1', '1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(u'1', u'1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((), ()) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types([], []) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types({}, {}) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'file'&gt;, &lt;type 'file'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'buffer'&gt;, &lt;type 'buffer'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;built-in function len&gt;, &lt;built-in function len&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;function _function at 0x105fb79b0&gt;, &lt;function _function at 0x105fb79b0&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;, &lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;, &lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_value_error ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_numpy_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_memmap_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_masked_array_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_z_file ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_numpy_subclass ... ok Failure: ImportError (cannot import name multiprocessing) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_dicts ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_strings ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_pairs ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hash_empty_input ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_invalid_input ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_set_params ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_zeros ... ok sklearn.feature_extraction.tests.test_image.test_img_to_graph ... ok sklearn.feature_extraction.tests.test_image.test_grid_to_graph ... ok sklearn.feature_extraction.tests.test_image.test_connect_regions ... ok sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all_color ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all_rect ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_max_patches ... ok sklearn.feature_extraction.tests.test_image.test_reconstruct_patches_perfect ... ok sklearn.feature_extraction.tests.test_image.test_reconstruct_patches_perfect_color ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_fit ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_max_patches ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_max_patches_default ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_all_patches ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_color ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_strided ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_square ... ok sklearn.feature_extraction.tests.test_image.test_width_patch ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.utils.tests.test_bench.test_total_seconds ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_not_present ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_auto_negative ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_auto_unordered ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight_with_subsample ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight_errors ... ok sklearn.utils.tests.test_extmath.test_density ... ok sklearn.utils.tests.test_extmath.test_uniform_weights ... ok sklearn.utils.tests.test_extmath.test_random_weights ... ok sklearn.utils.tests.test_extmath.test_logsumexp ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_low_rank ... ok sklearn.utils.tests.test_extmath.test_norm_squared_norm ... ok sklearn.utils.tests.test_extmath.test_row_norms ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_low_rank_with_noise ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_infinite_rank ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_transpose_consistency ... ok sklearn.utils.tests.test_extmath.test_svd_flip ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_sign_flip ... ok sklearn.utils.tests.test_extmath.test_cartesian ... ok sklearn.utils.tests.test_extmath.test_logistic_sigmoid ... ok sklearn.utils.tests.test_extmath.test_fast_dot ... ok sklearn.utils.tests.test_extmath.test_incremental_variance_update_formulas ... ok sklearn.utils.tests.test_extmath.test_incremental_variance_ddof ... ok sklearn.utils.tests.test_extmath.test_vector_sign_flip ... ok sklearn.utils.tests.test_fast_dict.test_int_float_dict ... ok sklearn.utils.tests.test_fast_dict.test_int_float_dict_argmin ... ok sklearn.utils.tests.test_fixes.test_expit ... ok sklearn.utils.tests.test_fixes.test_divide ... ok sklearn.utils.tests.test_graph.test_graph_laplacian ... ok sklearn.utils.tests.test_linear_assignment.test_hungarian ... ok sklearn.utils.tests.test_metaestimators.test_delegated_docstring ... ok sklearn.utils.tests.test_multiclass.test_unique_labels ... ok sklearn.utils.tests.test_multiclass.test_is_label_indicator_matrix ... ok sklearn.utils.tests.test_multiclass.test_is_multilabel ... ok sklearn.utils.tests.test_multiclass.test_type_of_target ... ok sklearn.utils.tests.test_multiclass.test_unique_labels_mixed_types ... ok sklearn.utils.tests.test_multiclass.test_unique_labels_non_specific ... ok sklearn.utils.tests.test_multiclass.test_is_sequence_of_sequences ... ok sklearn.utils.tests.test_multiclass.test_class_distribution ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_int ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_int_array ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_bytes ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_unicode ... ok sklearn.utils.tests.test_murmurhash.test_no_collision_on_byte_range ... ok sklearn.utils.tests.test_murmurhash.test_uniform_distribution ... ok Failure: ImportError (cannot import name random_choice_csc) ... ERROR sklearn.utils.tests.test_shortest_path.test_floyd_warshall ... ok sklearn.utils.tests.test_shortest_path.test_dijkstra ... ok sklearn.utils.tests.test_shortest_path.test_shortest_path ... ok sklearn.utils.tests.test_shortest_path.test_dijkstra_bug_fix ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_axis0 ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_illegal_axis ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_axis1 ... ok sklearn.utils.tests.test_sparsefuncs.test_densify_rows ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_column_scale ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_row_scale ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_swap_row ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_swap_column ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis0 ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis1 ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis_errors ... ok sklearn.utils.tests.test_sparsefuncs.test_count_nonzero ... ok sklearn.utils.tests.test_sparsefuncs.test_csc_row_median ... ok sklearn.utils.tests.test_stats.test_cases([100], 'max', [1.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 100, 100], 'max', [3.0, 3.0, 3.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 300, 200], 'max', [1.0, 3.0, 2.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 200, 300, 200], 'max', [1.0, 3.0, 4.0, 3.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 200, 300, 200, 100], 'max', [2.0, 4.0, 5.0, 4.0, 2.0]) ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.utils.tests.test_utils.test_make_rng ... ok sklearn.utils.tests.test_utils.test_resample_noarg ... ok sklearn.utils.tests.test_utils.test_deprecated ... ok sklearn.utils.tests.test_utils.test_resample_value_errors ... ok sklearn.utils.tests.test_utils.test_safe_mask ... ok sklearn.utils.tests.test_utils.test_pinvh_simple_real ... ok sklearn.utils.tests.test_utils.test_pinvh_nonpositive ... ok sklearn.utils.tests.test_utils.test_pinvh_simple_complex ... ok sklearn.utils.tests.test_utils.test_column_or_1d ... ok sklearn.utils.tests.test_utils.test_safe_indexing ... ok sklearn.utils.tests.test_utils.test_safe_indexing_pandas ... ok sklearn.utils.tests.test_utils.test_safe_indexing_mock_pandas ... ok sklearn.utils.tests.test_utils.test_shuffle_on_ndim_equals_three ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_check_build.test_raise_build_error ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name random_choice_csc) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_init.test_import_skl ... FAIL sklearn.tests.test_isotonic.test_permutation_invariance ... ok sklearn.tests.test_isotonic.test_check_increasing_up ... ok sklearn.tests.test_isotonic.test_check_increasing_up_extreme ... ok sklearn.tests.test_isotonic.test_check_increasing_down ... ok sklearn.tests.test_isotonic.test_check_increasing_down_extreme ... ok sklearn.tests.test_isotonic.test_check_ci_warn ... ok sklearn.tests.test_isotonic.test_isotonic_regression ... ok sklearn.tests.test_isotonic.test_isotonic_regression_ties_min ... ok sklearn.tests.test_isotonic.test_isotonic_regression_ties_max ... ok Test isotonic regression fit, transform and fit_transform ... ok sklearn.tests.test_isotonic.test_isotonic_regression_reversed ... ok sklearn.tests.test_isotonic.test_isotonic_regression_auto_decreasing ... ok sklearn.tests.test_isotonic.test_isotonic_regression_auto_increasing ... ok sklearn.tests.test_isotonic.test_assert_raises_exceptions ... ok sklearn.tests.test_isotonic.test_isotonic_sample_weight_parameter_default_value ... ok sklearn.tests.test_isotonic.test_isotonic_min_max_boundaries ... ok sklearn.tests.test_isotonic.test_isotonic_sample_weight ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_raise ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_clip ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_nan ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_bad ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_bad_after ... ok sklearn.tests.test_isotonic.test_isotonic_regression_pickle ... ok sklearn.tests.test_isotonic.test_isotonic_duplicate_min_entry ... ok sklearn.tests.test_isotonic.test_isotonic_zero_weight_loop ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_qda.test_qda ... ok sklearn.tests.test_qda.test_qda_priors ... ok sklearn.tests.test_qda.test_qda_store_covariances ... ok sklearn.tests.test_qda.test_qda_regularization ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py&quot;, line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py&quot;, line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/covariance/__init__.py&quot;, line 15, in &lt;module&gt; from .graph_lasso_ import graph_lasso, GraphLasso, GraphLassoCV File &quot;//anaconda/lib/python2.7/site-packages/sklearn/covariance/graph_lasso_.py&quot;, line 22, in &lt;module&gt; from ..linear_model import lars_path File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/decomposition/__init__.py&quot;, line 10, in &lt;module&gt; from .kernel_pca import KernelPCA File &quot;//anaconda/lib/python2.7/site-packages/sklearn/decomposition/kernel_pca.py&quot;, line 13, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/ensemble/__init__.py&quot;, line 7, in &lt;module&gt; from .forest import RandomForestClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/ensemble/forest.py&quot;, line 53, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name multiprocessing) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_parallel.py&quot;, line 31, in &lt;module&gt; from ..parallel import Parallel, delayed, SafeFunction, WorkerInterrupt, \ ImportError: cannot import name multiprocessing ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_dict_vectorizer.py&quot;, line 14, in &lt;module&gt; from sklearn.feature_selection import SelectKBest, chi2 File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_text.py&quot;, line 15, in &lt;module&gt; from sklearn.cross_validation import train_test_split File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/gaussian_process/__init__.py&quot;, line 12, in &lt;module&gt; from .gaussian_process import GaussianProcess File &quot;//anaconda/lib/python2.7/site-packages/sklearn/gaussian_process/gaussian_process.py&quot;, line 13, in &lt;module&gt; from ..metrics.pairwise import manhattan_distances File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/manifold/__init__.py&quot;, line 5, in &lt;module&gt; from .locally_linear import locally_linear_embedding, LocallyLinearEmbedding File &quot;//anaconda/lib/python2.7/site-packages/sklearn/manifold/locally_linear.py&quot;, line 14, in &lt;module&gt; from ..neighbors import NearestNeighbors File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/__init__.py&quot;, line 9, in &lt;module&gt; from .graph import kneighbors_graph, radius_neighbors_graph File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/graph.py&quot;, line 9, in &lt;module&gt; from .base import KNeighborsMixin, RadiusNeighborsMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/base.py&quot;, line 18, in &lt;module&gt; from ..metrics import pairwise_distances File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/mixture/__init__.py&quot;, line 5, in &lt;module&gt; from .gmm import sample_gaussian, log_multivariate_normal_density File &quot;//anaconda/lib/python2.7/site-packages/sklearn/mixture/gmm.py&quot;, line 20, in &lt;module&gt; from .. import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py&quot;, line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py&quot;, line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/__init__.py&quot;, line 9, in &lt;module&gt; from .graph import kneighbors_graph, radius_neighbors_graph File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/graph.py&quot;, line 9, in &lt;module&gt; from .base import KNeighborsMixin, RadiusNeighborsMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/neighbors/base.py&quot;, line 18, in &lt;module&gt; from ..metrics import pairwise_distances File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/semi_supervised/__init__.py&quot;, line 8, in &lt;module&gt; from .label_propagation import LabelPropagation, LabelSpreading File &quot;//anaconda/lib/python2.7/site-packages/sklearn/semi_supervised/label_propagation.py&quot;, line 61, in &lt;module&gt; from ..metrics.pairwise import rbf_kernel File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py&quot;, line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py&quot;, line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tree/__init__.py&quot;, line 6, in &lt;module&gt; from .tree import DecisionTreeClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tree/tree.py&quot;, line 27, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name random_choice_csc) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_random.py&quot;, line 8, in &lt;module&gt; from sklearn.utils.random import random_choice_csc ImportError: cannot import name random_choice_csc ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_testing.py&quot;, line 18, in &lt;module&gt; from sklearn.tree import DecisionTreeClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tree/__init__.py&quot;, line 6, in &lt;module&gt; from .tree import DecisionTreeClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tree/tree.py&quot;, line 27, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_validation.py&quot;, line 16, in &lt;module&gt; from sklearn.utils.estimator_checks import NotAnArray File &quot;//anaconda/lib/python2.7/site-packages/sklearn/utils/estimator_checks.py&quot;, line 29, in &lt;module&gt; from sklearn.metrics import accuracy_score, adjusted_rand_score, f1_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_base.py&quot;, line 15, in &lt;module&gt; from sklearn.svm import SVC File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py&quot;, line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py&quot;, line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_calibration.py&quot;, line 15, in &lt;module&gt; from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor File &quot;//anaconda/lib/python2.7/site-packages/sklearn/ensemble/__init__.py&quot;, line 7, in &lt;module&gt; from .forest import RandomForestClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/ensemble/forest.py&quot;, line 53, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py&quot;, line 20, in &lt;module&gt; from .rfe import RFE File &quot;//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py&quot;, line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_common.py&quot;, line 27, in &lt;module&gt; from sklearn.cluster.bicluster import BiclusterMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py&quot;, line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py&quot;, line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_cross_validation.py&quot;, line 24, in &lt;module&gt; from sklearn import cross_validation as cval File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name random_choice_csc) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_dummy.py&quot;, line 16, in &lt;module&gt; from sklearn.dummy import DummyClassifier, DummyRegressor File &quot;//anaconda/lib/python2.7/site-packages/sklearn/dummy.py&quot;, line 16, in &lt;module&gt; from .utils.random import random_choice_csc ImportError: cannot import name random_choice_csc ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_grid_search.py&quot;, line 36, in &lt;module&gt; from sklearn.grid_search import (GridSearchCV, RandomizedSearchCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/grid_search.py&quot;, line 24, in &lt;module&gt; from .cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_hmm.py&quot;, line 8, in &lt;module&gt; from sklearn import hmm File &quot;//anaconda/lib/python2.7/site-packages/sklearn/hmm.py&quot;, line 25, in &lt;module&gt; from .mixture import ( File &quot;//anaconda/lib/python2.7/site-packages/sklearn/mixture/__init__.py&quot;, line 5, in &lt;module&gt; from .gmm import sample_gaussian, log_multivariate_normal_density File &quot;//anaconda/lib/python2.7/site-packages/sklearn/mixture/gmm.py&quot;, line 20, in &lt;module&gt; from .. import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py&quot;, line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py&quot;, line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_kernel_approximation.py&quot;, line 9, in &lt;module&gt; from sklearn.metrics.pairwise import kernel_metrics File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_kernel_ridge.py&quot;, line 5, in &lt;module&gt; from sklearn.linear_model import Ridge File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_lda.py&quot;, line 12, in &lt;module&gt; from sklearn import lda File &quot;//anaconda/lib/python2.7/site-packages/sklearn/lda.py&quot;, line 20, in &lt;module&gt; from .linear_model.base import LinearClassifierMixin File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_learning_curve.py&quot;, line 10, in &lt;module&gt; from sklearn.learning_curve import learning_curve, validation_curve File &quot;//anaconda/lib/python2.7/site-packages/sklearn/learning_curve.py&quot;, line 12, in &lt;module&gt; from .cross_validation import _check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_metaestimators.py&quot;, line 12, in &lt;module&gt; from sklearn.grid_search import GridSearchCV, RandomizedSearchCV File &quot;//anaconda/lib/python2.7/site-packages/sklearn/grid_search.py&quot;, line 24, in &lt;module&gt; from .cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_multiclass.py&quot;, line 13, in &lt;module&gt; from sklearn.multiclass import OneVsRestClassifier File &quot;//anaconda/lib/python2.7/site-packages/sklearn/multiclass.py&quot;, line 44, in &lt;module&gt; from .metrics.pairwise import euclidean_distances File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_naive_bayes.py&quot;, line 7, in &lt;module&gt; from sklearn.cross_validation import cross_val_score, train_test_split File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_pipeline.py&quot;, line 17, in &lt;module&gt; from sklearn.svm import SVC File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py&quot;, line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py&quot;, line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py&quot;, line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File &quot;//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py&quot;, line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File &quot;//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py&quot;, line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/loader.py&quot;, line 414, in loadTestsFromName addr.filename, addr.module) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 47, in importFromPath return self.importFromDir(dir_path, fqname) File &quot;//anaconda/lib/python2.7/site-packages/nose/importer.py&quot;, line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_random_projection.py&quot;, line 6, in &lt;module&gt; from sklearn.metrics import euclidean_distances File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py&quot;, line 31, in &lt;module&gt; from . import cluster File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py&quot;, line 21, in &lt;module&gt; from .bicluster import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py&quot;, line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File &quot;//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py&quot;, line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== FAIL: sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) AssertionError: 'f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' != 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' ====================================================================== FAIL: sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) AssertionError: 'f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' != 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' ====================================================================== FAIL: sklearn.tests.test_init.test_import_skl ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;//anaconda/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;//anaconda/lib/python2.7/site-packages/sklearn/tests/test_init.py&quot;, line 20, in test_import_skl assert_equal(_top_import_error, None) AssertionError: ImportError('cannot import name check_arrays',) != None ---------------------------------------------------------------------- Ran 778 tests in 10.109s FAILED (SKIP=3, errors=36, failures=3)"><pre class="notranslate"><code class="notranslate">pip show scikit-learn scipy numpy python --- Name: scikit-learn Version: 0.16.0 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: scipy Version: 0.15.1 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: numpy Version: 1.9.2 Location: /anaconda/lib/python2.7/site-packages Requires: --- Name: Python Version: 2.7.7 Location: /anaconda/lib/python2.7/lib-dynload Requires: ---------------------------------------------------------------------- nosetests -v sklearn Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.datasets.tests.test_20news.test_20news ... SKIP: Download 20 newsgroups to run this test sklearn.datasets.tests.test_20news.test_20news_vectorized ... SKIP: Test too slow. sklearn.datasets.tests.test_base.test_data_home ... ok sklearn.datasets.tests.test_base.test_default_empty_load_files ... ok sklearn.datasets.tests.test_base.test_default_load_files ... ok sklearn.datasets.tests.test_base.test_load_files_w_categories_desc_and_encoding ... ok sklearn.datasets.tests.test_base.test_load_files_wo_load_content ... ok sklearn.datasets.tests.test_base.test_load_sample_images ... ok sklearn.datasets.tests.test_base.test_load_digits ... ok sklearn.datasets.tests.test_base.test_load_digits_n_class_lt_10 ... ok sklearn.datasets.tests.test_base.test_load_sample_image ... ok sklearn.datasets.tests.test_base.test_load_missing_sample_image_error ... ok sklearn.datasets.tests.test_base.test_load_diabetes ... ok sklearn.datasets.tests.test_base.test_load_linnerud ... ok sklearn.datasets.tests.test_base.test_load_iris ... ok sklearn.datasets.tests.test_base.test_load_boston ... ok sklearn.datasets.tests.test_covtype.test_fetch ... SKIP: Covertype dataset can not be loaded. sklearn.datasets.tests.test_lfw.test_load_empty_lfw_people ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_people_too_restrictive ... ok sklearn.datasets.tests.test_lfw.test_load_empty_lfw_pairs ... ok sklearn.datasets.tests.test_lfw.test_load_fake_lfw_pairs ... ok sklearn.datasets.tests.test_mldata.test_mldata_filename ... ok Test that fetch_mldata is able to download and cache a data set. ... ok sklearn.datasets.tests.test_mldata.test_fetch_one_column ... ok sklearn.datasets.tests.test_mldata.test_fetch_multiple_column ... ok sklearn.datasets.tests.test_samples_generator.test_make_classification ... ok Test the construction of informative features in make_classification ... ok sklearn.datasets.tests.test_samples_generator.test_make_multilabel_classification_return_sequences ... ok sklearn.datasets.tests.test_samples_generator.test_make_multilabel_classification_return_indicator ... ok sklearn.datasets.tests.test_samples_generator.test_make_hastie_10_2 ... ok sklearn.datasets.tests.test_samples_generator.test_make_regression ... ok sklearn.datasets.tests.test_samples_generator.test_make_regression_multitarget ... ok sklearn.datasets.tests.test_samples_generator.test_make_blobs ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman1 ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman2 ... ok sklearn.datasets.tests.test_samples_generator.test_make_friedman3 ... ok sklearn.datasets.tests.test_samples_generator.test_make_low_rank_matrix ... ok sklearn.datasets.tests.test_samples_generator.test_make_sparse_coded_signal ... ok sklearn.datasets.tests.test_samples_generator.test_make_sparse_uncorrelated ... ok sklearn.datasets.tests.test_samples_generator.test_make_spd_matrix ... ok sklearn.datasets.tests.test_samples_generator.test_make_swiss_roll ... ok sklearn.datasets.tests.test_samples_generator.test_make_s_curve ... ok sklearn.datasets.tests.test_samples_generator.test_make_biclusters ... ok sklearn.datasets.tests.test_samples_generator.test_make_checkerboard ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_fd ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_multilabel ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_files ... ok sklearn.datasets.tests.test_svmlight_format.test_load_svmlight_file_n_features ... ok sklearn.datasets.tests.test_svmlight_format.test_load_compressed ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_order_file ... ok sklearn.datasets.tests.test_svmlight_format.test_load_zero_based ... ok sklearn.datasets.tests.test_svmlight_format.test_load_zero_based_auto ... ok sklearn.datasets.tests.test_svmlight_format.test_load_with_qid ... ok sklearn.datasets.tests.test_svmlight_format.test_load_invalid_file2 ... ok sklearn.datasets.tests.test_svmlight_format.test_not_a_filename ... ok sklearn.datasets.tests.test_svmlight_format.test_invalid_filename ... ok sklearn.datasets.tests.test_svmlight_format.test_dump ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_concise ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_comment ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_invalid ... ok sklearn.datasets.tests.test_svmlight_format.test_dump_query_id ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.externals.joblib.test.test_disk.test_disk_used ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(83886080, 83886080) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(1433, 1433) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(122880, 122880) ... ok sklearn.externals.joblib.test.test_disk.test_memstr_to_kbytes(53, 53) ... ok sklearn.externals.joblib.test.test_disk.test_mkdirp ... ok sklearn.externals.joblib.test.test_format_stack.test_safe_repr ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 0, 'x': 1}, {'y': 0, 'x': 1}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 0}, {'y': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 0}, {'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 0}, {'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({}, {}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'y': 1, 'x': 0}, {'y': 1, 'x': 0}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 2}, {'x': 2}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 2}, {'x': 2}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args({'x': 1}, {'x': 1}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args_method ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 0, 'x': 1, '*': [], '**': {}}, {'y': 0, 'x': 1, '*': [], '**': {}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 2, 'x': 1, '*': [3, 4], '**': {}}, {'y': 2, 'x': 1, '*': [3, 4], '**': {}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 25, 'x': 1, '*': [], '**': {'ee': 2}}, {'y': 25, 'x': 1, '*': [], '**': {'ee': 2}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_varargs({'y': 2, 'x': 1, '**': {'ee': 2}}, {'y': 2, 'x': 1, '**': {'ee': 2}}) ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_kwargs ... ok sklearn.externals.joblib.test.test_func_inspect.test_filter_args_2 ... //anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x106d06b50&gt;, ignore list will not work. nose.tools.assert_equal(filter_args(ff, ['y'], (1, )), ok sklearn.externals.joblib.test.test_func_inspect.test_func_name('f', 'f') ... ok sklearn.externals.joblib.test.test_func_inspect.test_func_name('g', 'g') ... ok sklearn.externals.joblib.test.test_func_inspect.test_func_inspect_errors ... ok Make sure that calling the same method on two different instances ... ok Make sure that filter_args returns decent error messages, for the ... ok sklearn.externals.joblib.test.test_func_inspect.test_clean_win_chars ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok Smoke test hash on various types. ... ok sklearn.externals.joblib.test.test_hashing.test_hash_methods ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Test hashing with numpy arrays. ... ok Check that memmap and arrays hash identically if coerce_mmap is ... ok Check that memmap and arrays hash identically if coerce_mmap is ... ok Check the performance of hashing numpy arrays: ... ok Check the performance of hashing numpy arrays: ... ok Make sure that calling the same method on two different instances ... ok Make sure that calling the same _cached_ method on two different ... ok Make sure that ndarrays with dtype `object' hash correctly. ... ok sklearn.externals.joblib.test.test_hashing.test_numpy_scalar ... ok sklearn.externals.joblib.test.test_hashing.test_dict_hash ... ok sklearn.externals.joblib.test.test_hashing.test_set_hash ... ok sklearn.externals.joblib.test.test_logger.test_print_time ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Simple test of memory lazy evaluation. ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with cachedir=None: no memoize ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with keyword arguments. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Test memory with a function with a lambda. ... ok Check that name collisions with functions will raise warnings ... ok Check that name collisions with functions will raise warnings ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_lambda_collisions ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_collision_detection(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_memory_warning_collision_detection(True,) ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Test memory with functools.partial. ... ok Smoke test memory with a function with a function defined in an eval. ... ok Check that if a function has a side effect in its arguments, it ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Test memory with a function with numpy arrays. ... ok Smoketest the exception handling of Memory. ... ok Smoketest the exception handling of Memory. ... ok Smoketest the exception handling of Memory. ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok Test the ignore feature of memory ... ok sklearn.externals.joblib.test.test_memory.test_func_dir('/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib/sklearn/externals/joblib/test/test_memory/f', '/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib/sklearn/externals/joblib/test/test_memory/f') ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(False,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(True,) ... ok sklearn.externals.joblib.test.test_memory.test_func_dir(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_persistence(2, 2) ... ok sklearn.externals.joblib.test.test_memory.test_persistence('/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib', '/var/folders/_5/k6rslvpj1r327xnj915417t00000gn/T/tmpyxoTNU/joblib') ... ok sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ... FAIL sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ... FAIL Test the format signature formatting with numpy. ... ok sklearn.externals.joblib.test.test_my_exceptions.test_inheritance ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(None, None) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'type'&gt;, &lt;type 'type'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(True, True) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1, 1) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1L, 1L) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1.0, 1.0) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((1+0j), (1+0j)) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types('1', '1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(u'1', u'1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((), ()) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types([], []) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types({}, {}) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'file'&gt;, &lt;type 'file'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'buffer'&gt;, &lt;type 'buffer'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;built-in function len&gt;, &lt;built-in function len&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;function _function at 0x105fb79b0&gt;, &lt;function _function at 0x105fb79b0&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;, &lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;, &lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(None, None) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'type'&gt;, &lt;type 'type'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(True, True) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1, 1) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1L, 1L) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(1.0, 1.0) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((1+0j), (1+0j)) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types('1', '1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(u'1', u'1') ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types((), ()) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types([], []) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types({}, {}) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'file'&gt;, &lt;type 'file'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;type 'buffer'&gt;, &lt;type 'buffer'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;built-in function len&gt;, &lt;built-in function len&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;function _function at 0x105fb79b0&gt;, &lt;function _function at 0x105fb79b0&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;, &lt;class sklearn.externals.joblib.test.test_numpy_pickle._class at 0x105fa7738&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_standard_types(&lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;, &lt;class 'sklearn.externals.joblib.test.test_numpy_pickle._newclass'&gt;) ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_value_error ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_numpy_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_memmap_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_masked_array_persistence ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_z_file ... ok sklearn.externals.joblib.test.test_numpy_pickle.test_numpy_subclass ... ok Failure: ImportError (cannot import name multiprocessing) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_dicts ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_strings ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_feature_hasher_pairs ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hash_empty_input ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_invalid_input ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_set_params ... ok sklearn.feature_extraction.tests.test_feature_hasher.test_hasher_zeros ... ok sklearn.feature_extraction.tests.test_image.test_img_to_graph ... ok sklearn.feature_extraction.tests.test_image.test_grid_to_graph ... ok sklearn.feature_extraction.tests.test_image.test_connect_regions ... ok sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all_color ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_all_rect ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_max_patches ... ok sklearn.feature_extraction.tests.test_image.test_reconstruct_patches_perfect ... ok sklearn.feature_extraction.tests.test_image.test_reconstruct_patches_perfect_color ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_fit ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_max_patches ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_max_patches_default ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_all_patches ... ok sklearn.feature_extraction.tests.test_image.test_patch_extractor_color ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_strided ... ok sklearn.feature_extraction.tests.test_image.test_extract_patches_square ... ok sklearn.feature_extraction.tests.test_image.test_width_patch ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.utils.tests.test_bench.test_total_seconds ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_not_present ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_auto_negative ... ok sklearn.utils.tests.test_class_weight.test_compute_class_weight_auto_unordered ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight_with_subsample ... ok sklearn.utils.tests.test_class_weight.test_compute_sample_weight_errors ... ok sklearn.utils.tests.test_extmath.test_density ... ok sklearn.utils.tests.test_extmath.test_uniform_weights ... ok sklearn.utils.tests.test_extmath.test_random_weights ... ok sklearn.utils.tests.test_extmath.test_logsumexp ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_low_rank ... ok sklearn.utils.tests.test_extmath.test_norm_squared_norm ... ok sklearn.utils.tests.test_extmath.test_row_norms ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_low_rank_with_noise ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_infinite_rank ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_transpose_consistency ... ok sklearn.utils.tests.test_extmath.test_svd_flip ... ok sklearn.utils.tests.test_extmath.test_randomized_svd_sign_flip ... ok sklearn.utils.tests.test_extmath.test_cartesian ... ok sklearn.utils.tests.test_extmath.test_logistic_sigmoid ... ok sklearn.utils.tests.test_extmath.test_fast_dot ... ok sklearn.utils.tests.test_extmath.test_incremental_variance_update_formulas ... ok sklearn.utils.tests.test_extmath.test_incremental_variance_ddof ... ok sklearn.utils.tests.test_extmath.test_vector_sign_flip ... ok sklearn.utils.tests.test_fast_dict.test_int_float_dict ... ok sklearn.utils.tests.test_fast_dict.test_int_float_dict_argmin ... ok sklearn.utils.tests.test_fixes.test_expit ... ok sklearn.utils.tests.test_fixes.test_divide ... ok sklearn.utils.tests.test_graph.test_graph_laplacian ... ok sklearn.utils.tests.test_linear_assignment.test_hungarian ... ok sklearn.utils.tests.test_metaestimators.test_delegated_docstring ... ok sklearn.utils.tests.test_multiclass.test_unique_labels ... ok sklearn.utils.tests.test_multiclass.test_is_label_indicator_matrix ... ok sklearn.utils.tests.test_multiclass.test_is_multilabel ... ok sklearn.utils.tests.test_multiclass.test_type_of_target ... ok sklearn.utils.tests.test_multiclass.test_unique_labels_mixed_types ... ok sklearn.utils.tests.test_multiclass.test_unique_labels_non_specific ... ok sklearn.utils.tests.test_multiclass.test_is_sequence_of_sequences ... ok sklearn.utils.tests.test_multiclass.test_class_distribution ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_int ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_int_array ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_bytes ... ok sklearn.utils.tests.test_murmurhash.test_mmhash3_unicode ... ok sklearn.utils.tests.test_murmurhash.test_no_collision_on_byte_range ... ok sklearn.utils.tests.test_murmurhash.test_uniform_distribution ... ok Failure: ImportError (cannot import name random_choice_csc) ... ERROR sklearn.utils.tests.test_shortest_path.test_floyd_warshall ... ok sklearn.utils.tests.test_shortest_path.test_dijkstra ... ok sklearn.utils.tests.test_shortest_path.test_shortest_path ... ok sklearn.utils.tests.test_shortest_path.test_dijkstra_bug_fix ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_axis0 ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_illegal_axis ... ok sklearn.utils.tests.test_sparsefuncs.test_mean_variance_axis1 ... ok sklearn.utils.tests.test_sparsefuncs.test_densify_rows ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_column_scale ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_row_scale ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_swap_row ... ok sklearn.utils.tests.test_sparsefuncs.test_inplace_swap_column ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis0 ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis1 ... ok sklearn.utils.tests.test_sparsefuncs.test_min_max_axis_errors ... ok sklearn.utils.tests.test_sparsefuncs.test_count_nonzero ... ok sklearn.utils.tests.test_sparsefuncs.test_csc_row_median ... ok sklearn.utils.tests.test_stats.test_cases([100], 'max', [1.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 100, 100], 'max', [3.0, 3.0, 3.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 300, 200], 'max', [1.0, 3.0, 2.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 200, 300, 200], 'max', [1.0, 3.0, 4.0, 3.0]) ... ok sklearn.utils.tests.test_stats.test_cases([100, 200, 300, 200, 100], 'max', [2.0, 4.0, 5.0, 4.0, 2.0]) ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.utils.tests.test_utils.test_make_rng ... ok sklearn.utils.tests.test_utils.test_resample_noarg ... ok sklearn.utils.tests.test_utils.test_deprecated ... ok sklearn.utils.tests.test_utils.test_resample_value_errors ... ok sklearn.utils.tests.test_utils.test_safe_mask ... ok sklearn.utils.tests.test_utils.test_pinvh_simple_real ... ok sklearn.utils.tests.test_utils.test_pinvh_nonpositive ... ok sklearn.utils.tests.test_utils.test_pinvh_simple_complex ... ok sklearn.utils.tests.test_utils.test_column_or_1d ... ok sklearn.utils.tests.test_utils.test_safe_indexing ... ok sklearn.utils.tests.test_utils.test_safe_indexing_pandas ... ok sklearn.utils.tests.test_utils.test_safe_indexing_mock_pandas ... ok sklearn.utils.tests.test_utils.test_shuffle_on_ndim_equals_three ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_check_build.test_raise_build_error ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name random_choice_csc) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_init.test_import_skl ... FAIL sklearn.tests.test_isotonic.test_permutation_invariance ... ok sklearn.tests.test_isotonic.test_check_increasing_up ... ok sklearn.tests.test_isotonic.test_check_increasing_up_extreme ... ok sklearn.tests.test_isotonic.test_check_increasing_down ... ok sklearn.tests.test_isotonic.test_check_increasing_down_extreme ... ok sklearn.tests.test_isotonic.test_check_ci_warn ... ok sklearn.tests.test_isotonic.test_isotonic_regression ... ok sklearn.tests.test_isotonic.test_isotonic_regression_ties_min ... ok sklearn.tests.test_isotonic.test_isotonic_regression_ties_max ... ok Test isotonic regression fit, transform and fit_transform ... ok sklearn.tests.test_isotonic.test_isotonic_regression_reversed ... ok sklearn.tests.test_isotonic.test_isotonic_regression_auto_decreasing ... ok sklearn.tests.test_isotonic.test_isotonic_regression_auto_increasing ... ok sklearn.tests.test_isotonic.test_assert_raises_exceptions ... ok sklearn.tests.test_isotonic.test_isotonic_sample_weight_parameter_default_value ... ok sklearn.tests.test_isotonic.test_isotonic_min_max_boundaries ... ok sklearn.tests.test_isotonic.test_isotonic_sample_weight ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_raise ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_clip ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_nan ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_bad ... ok sklearn.tests.test_isotonic.test_isotonic_regression_oob_bad_after ... ok sklearn.tests.test_isotonic.test_isotonic_regression_pickle ... ok sklearn.tests.test_isotonic.test_isotonic_duplicate_min_entry ... ok sklearn.tests.test_isotonic.test_isotonic_zero_weight_loop ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR Failure: ImportError (cannot import name check_arrays) ... ERROR sklearn.tests.test_qda.test_qda ... ok sklearn.tests.test_qda.test_qda_priors ... ok sklearn.tests.test_qda.test_qda_store_covariances ... ok sklearn.tests.test_qda.test_qda_regularization ... ok Failure: ImportError (cannot import name check_arrays) ... ERROR ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py", line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py", line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/covariance/__init__.py", line 15, in &lt;module&gt; from .graph_lasso_ import graph_lasso, GraphLasso, GraphLassoCV File "//anaconda/lib/python2.7/site-packages/sklearn/covariance/graph_lasso_.py", line 22, in &lt;module&gt; from ..linear_model import lars_path File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/decomposition/__init__.py", line 10, in &lt;module&gt; from .kernel_pca import KernelPCA File "//anaconda/lib/python2.7/site-packages/sklearn/decomposition/kernel_pca.py", line 13, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/ensemble/__init__.py", line 7, in &lt;module&gt; from .forest import RandomForestClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/ensemble/forest.py", line 53, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name multiprocessing) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_parallel.py", line 31, in &lt;module&gt; from ..parallel import Parallel, delayed, SafeFunction, WorkerInterrupt, \ ImportError: cannot import name multiprocessing ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_dict_vectorizer.py", line 14, in &lt;module&gt; from sklearn.feature_selection import SelectKBest, chi2 File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_text.py", line 15, in &lt;module&gt; from sklearn.cross_validation import train_test_split File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/gaussian_process/__init__.py", line 12, in &lt;module&gt; from .gaussian_process import GaussianProcess File "//anaconda/lib/python2.7/site-packages/sklearn/gaussian_process/gaussian_process.py", line 13, in &lt;module&gt; from ..metrics.pairwise import manhattan_distances File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/manifold/__init__.py", line 5, in &lt;module&gt; from .locally_linear import locally_linear_embedding, LocallyLinearEmbedding File "//anaconda/lib/python2.7/site-packages/sklearn/manifold/locally_linear.py", line 14, in &lt;module&gt; from ..neighbors import NearestNeighbors File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/__init__.py", line 9, in &lt;module&gt; from .graph import kneighbors_graph, radius_neighbors_graph File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/graph.py", line 9, in &lt;module&gt; from .base import KNeighborsMixin, RadiusNeighborsMixin File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/base.py", line 18, in &lt;module&gt; from ..metrics import pairwise_distances File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/mixture/__init__.py", line 5, in &lt;module&gt; from .gmm import sample_gaussian, log_multivariate_normal_density File "//anaconda/lib/python2.7/site-packages/sklearn/mixture/gmm.py", line 20, in &lt;module&gt; from .. import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py", line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py", line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/__init__.py", line 9, in &lt;module&gt; from .graph import kneighbors_graph, radius_neighbors_graph File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/graph.py", line 9, in &lt;module&gt; from .base import KNeighborsMixin, RadiusNeighborsMixin File "//anaconda/lib/python2.7/site-packages/sklearn/neighbors/base.py", line 18, in &lt;module&gt; from ..metrics import pairwise_distances File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/semi_supervised/__init__.py", line 8, in &lt;module&gt; from .label_propagation import LabelPropagation, LabelSpreading File "//anaconda/lib/python2.7/site-packages/sklearn/semi_supervised/label_propagation.py", line 61, in &lt;module&gt; from ..metrics.pairwise import rbf_kernel File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py", line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File "//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py", line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tree/__init__.py", line 6, in &lt;module&gt; from .tree import DecisionTreeClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/tree/tree.py", line 27, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name random_choice_csc) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_random.py", line 8, in &lt;module&gt; from sklearn.utils.random import random_choice_csc ImportError: cannot import name random_choice_csc ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_testing.py", line 18, in &lt;module&gt; from sklearn.tree import DecisionTreeClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/tree/__init__.py", line 6, in &lt;module&gt; from .tree import DecisionTreeClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/tree/tree.py", line 27, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/utils/tests/test_validation.py", line 16, in &lt;module&gt; from sklearn.utils.estimator_checks import NotAnArray File "//anaconda/lib/python2.7/site-packages/sklearn/utils/estimator_checks.py", line 29, in &lt;module&gt; from sklearn.metrics import accuracy_score, adjusted_rand_score, f1_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_base.py", line 15, in &lt;module&gt; from sklearn.svm import SVC File "//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py", line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File "//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py", line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_calibration.py", line 15, in &lt;module&gt; from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor File "//anaconda/lib/python2.7/site-packages/sklearn/ensemble/__init__.py", line 7, in &lt;module&gt; from .forest import RandomForestClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/ensemble/forest.py", line 53, in &lt;module&gt; from ..feature_selection.from_model import _LearntSelectorMixin File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/__init__.py", line 20, in &lt;module&gt; from .rfe import RFE File "//anaconda/lib/python2.7/site-packages/sklearn/feature_selection/rfe.py", line 17, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_common.py", line 27, in &lt;module&gt; from sklearn.cluster.bicluster import BiclusterMixin File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py", line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py", line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_cross_validation.py", line 24, in &lt;module&gt; from sklearn import cross_validation as cval File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name random_choice_csc) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_dummy.py", line 16, in &lt;module&gt; from sklearn.dummy import DummyClassifier, DummyRegressor File "//anaconda/lib/python2.7/site-packages/sklearn/dummy.py", line 16, in &lt;module&gt; from .utils.random import random_choice_csc ImportError: cannot import name random_choice_csc ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_grid_search.py", line 36, in &lt;module&gt; from sklearn.grid_search import (GridSearchCV, RandomizedSearchCV, File "//anaconda/lib/python2.7/site-packages/sklearn/grid_search.py", line 24, in &lt;module&gt; from .cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_hmm.py", line 8, in &lt;module&gt; from sklearn import hmm File "//anaconda/lib/python2.7/site-packages/sklearn/hmm.py", line 25, in &lt;module&gt; from .mixture import ( File "//anaconda/lib/python2.7/site-packages/sklearn/mixture/__init__.py", line 5, in &lt;module&gt; from .gmm import sample_gaussian, log_multivariate_normal_density File "//anaconda/lib/python2.7/site-packages/sklearn/mixture/gmm.py", line 20, in &lt;module&gt; from .. import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/__init__.py", line 6, in &lt;module&gt; from .spectral import spectral_clustering, SpectralClustering File "//anaconda/lib/python2.7/site-packages/sklearn/cluster/spectral.py", line 16, in &lt;module&gt; from ..metrics.pairwise import pairwise_kernels File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_kernel_approximation.py", line 9, in &lt;module&gt; from sklearn.metrics.pairwise import kernel_metrics File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_kernel_ridge.py", line 5, in &lt;module&gt; from sklearn.linear_model import Ridge File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_lda.py", line 12, in &lt;module&gt; from sklearn import lda File "//anaconda/lib/python2.7/site-packages/sklearn/lda.py", line 20, in &lt;module&gt; from .linear_model.base import LinearClassifierMixin File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_learning_curve.py", line 10, in &lt;module&gt; from sklearn.learning_curve import learning_curve, validation_curve File "//anaconda/lib/python2.7/site-packages/sklearn/learning_curve.py", line 12, in &lt;module&gt; from .cross_validation import _check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_metaestimators.py", line 12, in &lt;module&gt; from sklearn.grid_search import GridSearchCV, RandomizedSearchCV File "//anaconda/lib/python2.7/site-packages/sklearn/grid_search.py", line 24, in &lt;module&gt; from .cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_multiclass.py", line 13, in &lt;module&gt; from sklearn.multiclass import OneVsRestClassifier File "//anaconda/lib/python2.7/site-packages/sklearn/multiclass.py", line 44, in &lt;module&gt; from .metrics.pairwise import euclidean_distances File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_naive_bayes.py", line 7, in &lt;module&gt; from sklearn.cross_validation import cross_val_score, train_test_split File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_pipeline.py", line 17, in &lt;module&gt; from sklearn.svm import SVC File "//anaconda/lib/python2.7/site-packages/sklearn/svm/__init__.py", line 13, in &lt;module&gt; from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC, \ File "//anaconda/lib/python2.7/site-packages/sklearn/svm/classes.py", line 6, in &lt;module&gt; from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/__init__.py", line 15, in &lt;module&gt; from .least_angle import (Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, File "//anaconda/lib/python2.7/site-packages/sklearn/linear_model/least_angle.py", line 25, in &lt;module&gt; from ..cross_validation import _check_cv as check_cv File "//anaconda/lib/python2.7/site-packages/sklearn/cross_validation.py", line 32, in &lt;module&gt; from .metrics.scorer import check_scoring File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== ERROR: Failure: ImportError (cannot import name check_arrays) ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/loader.py", line 414, in loadTestsFromName addr.filename, addr.module) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "//anaconda/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_random_projection.py", line 6, in &lt;module&gt; from sklearn.metrics import euclidean_distances File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 31, in &lt;module&gt; from . import cluster File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/__init__.py", line 21, in &lt;module&gt; from .bicluster import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/__init__.py", line 1, in &lt;module&gt; from .bicluster_metrics import consensus_score File "//anaconda/lib/python2.7/site-packages/sklearn/metrics/cluster/bicluster/bicluster_metrics.py", line 6, in &lt;module&gt; from sklearn.utils.validation import check_arrays ImportError: cannot import name check_arrays ====================================================================== FAIL: sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) AssertionError: 'f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' != 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' ====================================================================== FAIL: sklearn.externals.joblib.test.test_memory.test_format_signature('f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])', 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])') ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) AssertionError: 'f(&lt;function f at 0x105fb6140&gt;, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' != 'f([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], y=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])' ====================================================================== FAIL: sklearn.tests.test_init.test_import_skl ---------------------------------------------------------------------- Traceback (most recent call last): File "//anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "//anaconda/lib/python2.7/site-packages/sklearn/tests/test_init.py", line 20, in test_import_skl assert_equal(_top_import_error, None) AssertionError: ImportError('cannot import name check_arrays',) != None ---------------------------------------------------------------------- Ran 778 tests in 10.109s FAILED (SKIP=3, errors=36, failures=3) </code></pre></div>
<p dir="auto">The properties for accessing attributes on <code class="notranslate">Tree</code> return arrays which don't own their data, and which are malloced and freed by the tree. Therefore:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.tree import DecisionTreeClassifier c = DecisionTreeClassifier().fit([[1,2]], [1]) cl = c.tree_.children_left print(cl) del c print(cl) cl[0] = 1"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">tree</span> <span class="pl-k">import</span> <span class="pl-v">DecisionTreeClassifier</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-v">DecisionTreeClassifier</span>().<span class="pl-en">fit</span>([[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]], [<span class="pl-c1">1</span>]) <span class="pl-s1">cl</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-s1">tree_</span>.<span class="pl-s1">children_left</span> <span class="pl-en">print</span>(<span class="pl-s1">cl</span>) <span class="pl-k">del</span> <span class="pl-s1">c</span> <span class="pl-en">print</span>(<span class="pl-s1">cl</span>) <span class="pl-s1">cl</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">outputs</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[-1] [-849416680] Segmentation fault (core dumped)"><pre class="notranslate"><code class="notranslate">[-1] [-849416680] Segmentation fault (core dumped) </code></pre></div>
0
<p dir="auto">OS Version: Windows10<br> VSCode version: 0.10.12-alpha</p> <p dir="auto">Steps:</p> <ol dir="auto"> <li>launch app and open a folder which contain .TS file.</li> <li>Verify any error message is showing up.</li> </ol> <p dir="auto">Expected: If there is not extensions installed for TS lint then error should not be highlighted in editor.</p> <p dir="auto">Actual:<br> While verifying bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140620279" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4107" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4107/hovercard" href="https://github.com/microsoft/vscode/issues/4107">#4107</a> with "Express Node.js typescript" project. I observed that there are two error messages showing up in my .ts file and when I closely watched, I found there is no extension installed for TS lint. I also removed extension for ESlint as well and restarted app.</p> <p dir="auto">I observer that still it is showing two errors messages in the editor and when I hover over on it, it is displaying :</p> <ol dir="auto"> <li>[ts] cannot find module 'http'</li> <li>[ts] Cannot find name process.</li> </ol> <p dir="auto">But when I clicked on error icon from the status bar then could see in the pop-up (in command palette) it is showing up duplicate error message like below.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13971529/2f31fdd0-f04e-11e5-8f07-09289b9c3997.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13971529/2f31fdd0-f04e-11e5-8f07-09289b9c3997.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Questions:</p> <ol dir="auto"> <li>When there is no linter installed for TS or ES then why it is displaying red mark in the code.</li> <li>Is there any reference left for the TSLint in the system after removing extension which is causing this issue.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13971525/22ca61b8-f04e-11e5-9c5e-c2bb0e4efce8.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13971525/22ca61b8-f04e-11e5-9c5e-c2bb0e4efce8.png" alt="image" style="max-width: 100%;"></a></li> </ol> <p dir="auto">I also verified in the extension directory and didn't find any reference of TS or ES lint extension.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13971518/1508270e-f04e-11e5-80ed-cfda052d5f96.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13971518/1508270e-f04e-11e5-80ed-cfda052d5f96.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>VSCode Version: 1.2.0</li> <li>OS Version: OS X el capitan</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>scroll to the bottom of an editor, so that the last line is aligned with the bottom of the editor</li> <li>notice that the scroll bar position indicator is not at the bottom of the scroll bar</li> </ol> <p dir="auto">Expected behavior:</p> <ul dir="auto"> <li>the scroll bar position is mapped to the full length of the file without the overflow that allows scrolling further.</li> <li>the dark scroll position that indicates the beginning and the end of the page shrinks as you scroll beyond the end of the file</li> </ul>
0
<p dir="auto">I have a search box with an attached clear button. When the clear button is pressed the search box should be cleared.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7585117/27259037-cebddd5c-5401-11e7-9300-13f2399e6d05.png"><img src="https://user-images.githubusercontent.com/7585117/27259037-cebddd5c-5401-11e7-9300-13f2399e6d05.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This is the <code class="notranslate">TextEditingController</code> &amp; the <code class="notranslate">TextField</code> set up.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7585117/27259057-5f2a067c-5402-11e7-8f4b-3388e18dba47.png"><img src="https://user-images.githubusercontent.com/7585117/27259057-5f2a067c-5402-11e7-8f4b-3388e18dba47.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7585117/27259071-9e2e7d80-5402-11e7-8aea-49592a277da6.png"><img src="https://user-images.githubusercontent.com/7585117/27259071-9e2e7d80-5402-11e7-8aea-49592a277da6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7585117/27259080-cd3de458-5402-11e7-96d8-d2564164961b.png"><img src="https://user-images.githubusercontent.com/7585117/27259080-cd3de458-5402-11e7-96d8-d2564164961b.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When the clear button is pressed the controller <code class="notranslate">clear()</code> method is called which results in an exception in the Android Simulator and on an actual device as well (Samsung Galaxy A3/Andoid 6.0.1).</p> <p dir="auto">Framework • revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/3b6d84b083956df5652b2fe34c68287579e9b73d/hovercard" href="https://github.com/flutter/flutter/commit/3b6d84b083956df5652b2fe34c68287579e9b73d"><tt>3b6d84b</tt></a> (2 days ago) • 2017-06-16 12:58:23 -0700<br> Engine • revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/784e9756720f7f6daa15c95ba3df6215bb54783f/hovercard" href="https://github.com/flutter/flutter/commit/784e9756720f7f6daa15c95ba3df6215bb54783f"><tt>784e975</tt></a> Tools • Dart 1.24.0-dev.6.7</p> <p dir="auto">Let me know if you need any additional info.</p> <p dir="auto">E/MethodChannel#flutter/textinput( 4187): Failed to handle method call<br> E/MethodChannel#flutter/textinput( 4187): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0<br> E/MethodChannel#flutter/textinput( 4187): at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1270)<br> E/MethodChannel#flutter/textinput( 4187): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:684)<br> E/MethodChannel#flutter/textinput( 4187): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)<br> E/MethodChannel#flutter/textinput( 4187): at android.text.Selection.setSelection(Selection.java:76)<br> E/MethodChannel#flutter/textinput( 4187): at io.flutter.plugin.editing.TextInputPlugin.setTextInputEditingState(TextInputPlugin.java:147)<br> E/MethodChannel#flutter/textinput( 4187): at io.flutter.plugin.editing.TextInputPlugin.onMethodCall(TextInputPlugin.java:66)<br> E/MethodChannel#flutter/textinput( 4187): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)<br> E/MethodChannel#flutter/textinput( 4187): at io.flutter.view.FlutterView.handlePlatformMessage(FlutterView.java:643)<br> E/MethodChannel#flutter/textinput( 4187): at android.os.MessageQueue.nativePollOnce(Native Method)<br> E/MethodChannel#flutter/textinput( 4187): at android.os.MessageQueue.next(MessageQueue.java:323)<br> E/MethodChannel#flutter/textinput( 4187): at android.os.Looper.loop(Looper.java:136)<br> E/MethodChannel#flutter/textinput( 4187): at android.app.ActivityThread.main(ActivityThread.java:6119)<br> E/MethodChannel#flutter/textinput( 4187): at java.lang.reflect.Method.invoke(Native Method)<br> E/MethodChannel#flutter/textinput( 4187): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)<br> E/MethodChannel#flutter/textinput( 4187): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)</p>
<p dir="auto">I hit it first after making minor changes to the flutter code lab, and am hitting it now, while trying to put together a simpler flutter app.</p> <p dir="auto">Hot reload is not working, cold launches sometimes work.</p> <p dir="auto">Flutter run from IJ.</p> <p dir="auto">Launching lib/main.dart on Nexus 6P in debug mode...<br> Built build/app/outputs/apk/app-debug.apk (21.7MB).<br> W/IInputConnectionWrapper(21208): reportFullscreenMode on inexistent InputConnection<br> I/flutter (21208): executeQuery<br> Restarted app in 1,286ms.<br> E/MethodChannel#flutter/textinput(21208): Failed to handle method call<br> E/MethodChannel#flutter/textinput(21208): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0<br> E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1325)<br> E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:683)<br> E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:676)<br> E/MethodChannel#flutter/textinput(21208): at android.text.Selection.setSelection(Selection.java:76)<br> E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.editing.TextInputPlugin.setTextInputEditingState(TextInputPlugin.java:147)<br> E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.editing.TextInputPlugin.onMethodCall(TextInputPlugin.java:66)<br> E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)<br> E/MethodChannel#flutter/textinput(21208): at io.flutter.view.FlutterView.handlePlatformMessage(FlutterView.java:643)<br> E/MethodChannel#flutter/textinput(21208): at android.os.MessageQueue.nativePollOnce(Native Method)<br> E/MethodChannel#flutter/textinput(21208): at android.os.MessageQueue.next(MessageQueue.java:323)<br> E/MethodChannel#flutter/textinput(21208): at android.os.Looper.loop(Looper.java:136)<br> E/MethodChannel#flutter/textinput(21208): at android.app.ActivityThread.main(ActivityThread.java:6121)<br> E/MethodChannel#flutter/textinput(21208): at java.lang.reflect.Method.invoke(Native Method)<br> E/MethodChannel#flutter/textinput(21208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)<br> E/MethodChannel#flutter/textinput(21208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)</p> <p dir="auto">flutter analyze:<br> ~/src/github/flutter/bin/flutter analyze<br> Analyzing jwren/src/github/flutter_google_knowledge_graph...<br> hint • The value of the local variable 'v' isn't used at lib/main.dart:97:9 • unused_local_variable<br> 1 issue found.<br> (Ran in 4.5s)</p>
1
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?</li> </ol> <p dir="auto">go version devel +944a085 Tue Apr 12 07:25:11 2016 +0000 linux/amd64</p> <ol dir="auto"> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li> </ol> <p dir="auto">GOARCH="amd64"<br> GOBIN=""<br> GOEXE=""<br> GOHOSTARCH="amd64"<br> GOHOSTOS="linux"<br> GOOS="linux"<br> GOPATH="/tmp/go"<br> GORACE=""<br> GOROOT="/home/u/go"<br> GOTOOLDIR="/home/u/go/pkg/tool/linux_amd64"<br> CC="gcc"<br> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build466669372=/tmp/go-build -gno-record-gcc-switches"<br> CXX="g++"<br> CGO_ENABLED="1"</p> <ol dir="auto"> <li>What did you do?<br> If possible, provide a recipe for reproducing the error.<br> A complete runnable program is good.<br> A link on play.golang.org is best.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[~]$ export GOPATH=/tmp/go [~]$ mkdir -p $GOPATH/src/engo.io [~]$ cd $GOPATH/src/engo.io [/tmp/go/src/engo.io]$ git clone -b core https://github.com/mewpull/engo Cloning into 'engo'... remote: Counting objects: 3761, done. remote: Compressing objects: 100% (163/163), done. remote: Total 3761 (delta 66), reused 0 (delta 0), pack-reused 3575 Receiving objects: 100% (3761/3761), 5.52 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (2367/2367), done. Checking connectivity... done. [/tmp/go/src/engo.io]$ go get engo.io/engo/... releasep: m=0xc820478c00 m-&gt;p=0xc820018000 p-&gt;m=859535019008 m-&gt;mcache=0x7f0656cc5000 p-&gt;mcache=0x7f0656cc5000 p-&gt;status=3 fatal error: releasep: invalid p state runtime stack: runtime.throw(0x8230dc, 0x19) /home/u/go/src/runtime/panic.go:566 +0x8b runtime.releasep(0x2000) /home/u/go/src/runtime/proc.go:3365 +0x208 runtime.gcstopm() /home/u/go/src/runtime/proc.go:1760 +0x42 runtime.schedule() /home/u/go/src/runtime/proc.go:2070 +0x105 runtime.park_m(0xc82012d380) /home/u/go/src/runtime/proc.go:2169 +0x11a runtime.mcall(0x0) /home/u/go/src/runtime/asm_amd64.s:240 +0x5b goroutine 1 [select]: net/http.(*Transport).getConn(0xc820116000, 0xc8201603c0, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0x0, 0x0, 0xc0000000) /home/u/go/src/net/http/transport.go:746 +0x534 net/http.(*Transport).RoundTrip(0xc820116000, 0xc8201603c0, 0xc820116000, 0x0, 0x7f0600000000) /home/u/go/src/net/http/transport.go:347 +0x262 net/http.send(0xc8201603c0, 0x9db7e0, 0xc820116000, 0x0, 0x0, 0x0, 0xe8, 0xc820142260, 0x7f5da0) /home/u/go/src/net/http/client.go:257 +0x14d net/http.(*Client).send(0xa02360, 0xc8201603c0, 0x0, 0x0, 0x0, 0xc820142260, 0x0, 0x1) /home/u/go/src/net/http/client.go:147 +0xef net/http.(*Client).doFollowingRedirects(0xa02360, 0xc8201603c0, 0x8683c0, 0x1c, 0x0, 0x0) /home/u/go/src/net/http/client.go:502 +0x4d8 net/http.(*Client).Get(0xa02360, 0xc8201f78a0, 0x1c, 0x0, 0x0, 0xc8203227c1) /home/u/go/src/net/http/client.go:419 +0x89 main.httpsOrHTTP.func1(0x8064e5, 0x5, 0xc8203e4d38, 0x1, 0x4b1e04, 0x53d0d6, 0xc8203227c1) /home/u/go/src/cmd/go/http.go:86 +0x11b main.httpsOrHTTP(0xc8203227c1, 0xb, 0x0, 0x1, 0x1, 0x0, 0x0, 0x1, 0xc820142248) /home/u/go/src/cmd/go/http.go:95 +0x9d main.repoRootForImportDynamic(0xc8203227c1, 0xb, 0x0, 0x0, 0x0, 0x0) /home/u/go/src/cmd/go/vcs.go:660 +0x133 main.repoRootForImportPath(0xc8203227c1, 0xb, 0x0, 0x0, 0x0, 0x486c17) /home/u/go/src/cmd/go/vcs.go:551 +0x40d main.downloadPackage(0xc820177c00, 0xc820075710, 0xc8203fd7c0) /home/u/go/src/cmd/go/get.go:381 +0x16b1 main.download(0xc8203227c1, 0xb, 0xc820177800, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:233 +0xc8d main.download(0xc82032e641, 0x1a, 0xc820177400, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:305 +0x365 main.download(0xc8201a112c, 0xc, 0x0, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:305 +0x365 main.runGet(0x9fb880, 0xc8200741a0, 0x1, 0x1) /home/u/go/src/cmd/go/get.go:107 +0x135 main.main() /home/u/go/src/cmd/go/main.go:181 +0x642 goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/u/go/src/runtime/asm_amd64.s:2013 +0x1 goroutine 20 [syscall]: os/signal.signal_recv(0x0) /home/u/go/src/runtime/sigqueue.go:116 +0x15e os/signal.loop() /home/u/go/src/os/signal/signal_unix.go:22 +0x18 created by os/signal.init.1 /home/u/go/src/os/signal/signal_unix.go:28 +0x37 goroutine 9 [chan receive]: net/http.(*Transport).dialConn(0xc820116000, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0x0, 0x0, 0x0) /home/u/go/src/net/http/transport.go:872 +0xd03 net/http.(*Transport).getConn.func4(0xc820116000, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0xc82006f080) /home/u/go/src/net/http/transport.go:741 +0x41 created by net/http.(*Transport).getConn /home/u/go/src/net/http/transport.go:743 +0x240 goroutine 34 [semacquire]: panic(0x794ac0, 0xc820010140) /home/u/go/src/runtime/panic.go:497 +0x166 sync.poolCleanup() /home/u/go/src/sync/pool.go:199 +0x183 sync.(*Pool).Put(0xa01ef0, 0x7fe840, 0xc820307140) /home/u/go/src/sync/pool.go:82 +0x125 math/big.putNat(0xc8205a2600, 0x7, 0xb) /home/u/go/src/math/big/nat.go:555 +0x78 math/big.nat.divLarge(0xc82022bc80, 0x1, 0x5, 0xc820248cd0, 0x6, 0xa, 0xc820248d20, 0x6, 0xa, 0xc820248c80, ...) /home/u/go/src/math/big/nat.go:634 +0x633 math/big.nat.div(0xc82022bc80, 0x1, 0x5, 0xc820248cd0, 0x6, 0xa, 0xc820248d20, 0x6, 0xa, 0xc820248c80, ...) /home/u/go/src/math/big/nat.go:541 +0x3a8 math/big.(*Int).QuoRem(0xc8203f0c10, 0xc8203f0bd0, 0xc8203f0cd0, 0xc8203f0cb0, 0xc8203f0c10, 0xc8203f0cd0) /home/u/go/src/math/big/int.go:227 +0xaf math/big.(*Int).GCD(0xc8203f0d28, 0xc8203f0db8, 0x0, 0xc820307000, 0xc82025b440, 0xc8205ca080) /home/u/go/src/math/big/int.go:464 +0x41f math/big.(*Int).ModInverse(0xc8203f0db8, 0xc820307000, 0xc82025b440, 0x6) /home/u/go/src/math/big/int.go:581 +0x6c crypto/elliptic.(*CurveParams).affineFromJacobian(0xc820432600, 0xc820306fc0, 0xc820306fe0, 0xc820307000, 0xc820306ea0, 0xc820306e60) /home/u/go/src/crypto/elliptic/elliptic.go:91 +0x85 crypto/elliptic.(*CurveParams).ScalarMult(0xc820432600, 0xc8204288c0, 0xc8204288e0, 0xc820384b10, 0x30, 0x30, 0x0, 0x0) /home/u/go/src/crypto/elliptic/elliptic.go:265 +0x243 crypto/ecdsa.Verify(0xc820428940, 0xc820385140, 0x30, 0x30, 0xc8203a5360, 0xc8203a5380, 0x0) /home/u/go/src/crypto/ecdsa/ecdsa.go:257 +0x538 crypto/x509.checkSignature(0xb, 0xc8200804c9, 0x329, 0x837, 0xc820080801, 0x67, 0x4ff, 0x7d5080, 0xc820428940, 0x0, ...) /home/u/go/src/crypto/x509/x509.go:731 +0x700 crypto/x509.(*Certificate).CheckSignature(0xc820097200, 0xb, 0xc8200804c9, 0x329, 0x837, 0xc820080801, 0x67, 0x4ff, 0x0, 0x4b1e04) /home/u/go/src/crypto/x509/x509.go:673 +0x8a crypto/x509.(*Certificate).CheckSignatureFrom(0xc820096d80, 0xc820097200, 0xc82043dc00, 0x14) /home/u/go/src/crypto/x509/x509.go:667 +0xcd crypto/x509.(*CertPool).findVerifiedParents(0xc8203c8360, 0xc820096d80, 0x0, 0x0, 0x1, 0xc8203a5340, 0x0, 0x1) /home/u/go/src/crypto/x509/cert_pool.go:57 +0xd3 crypto/x509.(*Certificate).buildChains(0xc820096d80, 0xc8203f1678, 0xc820274f90, 0x2, 0x2, 0xc8203f17c8, 0x1, 0x1, 0x2, 0x2, ...) /home/u/go/src/crypto/x509/verify.go:314 +0x40e crypto/x509.(*Certificate).buildChains(0xc820096480, 0xc8203f1678, 0xc8203f1650, 0x1, 0x1, 0xc8203f17c8, 0x0, 0x0, 0x7f0656cc5960, 0x0, ...) /home/u/go/src/crypto/x509/verify.go:330 +0x8ff crypto/x509.(*Certificate).Verify(0xc820096480, 0xc820497720, 0x7, 0xc8203c8360, 0xc8203c8420, 0xecead68bd, 0x28038de8, 0xa024e0, 0x0, 0x0, ...) /home/u/go/src/crypto/x509/verify.go:265 +0x1af crypto/tls.(*clientHandshakeState).doFullHandshake(0xc8203f1e60, 0xc8201724d0, 0x66) /home/u/go/src/crypto/tls/handshake_client.go:274 +0x202e crypto/tls.(*Conn).clientHandshake(0xc82032ac00, 0x8688d8, 0xc82032ac14) /home/u/go/src/crypto/tls/handshake_client.go:209 +0xea7 crypto/tls.(*Conn).Handshake(0xc82032ac00, 0x0, 0x0) /home/u/go/src/crypto/tls/conn.go:1100 +0x9f net/http.(*Transport).dialConn.func3(0xc82032ac00, 0xc820432200, 0xc820494120) /home/u/go/src/net/http/transport.go:866 +0x21 created by net/http.(*Transport).dialConn /home/u/go/src/net/http/transport.go:871 +0xcc1 [/tmp/go/src/engo.io]$ go version go version devel +944a085 Tue Apr 12 07:25:11 2016 +0000 linux/amd64 [/tmp/go/src/engo.io]$ go get engo.io/engo/... [/tmp/go/src/engo.io]$"><pre class="notranslate"><code class="notranslate">[~]$ export GOPATH=/tmp/go [~]$ mkdir -p $GOPATH/src/engo.io [~]$ cd $GOPATH/src/engo.io [/tmp/go/src/engo.io]$ git clone -b core https://github.com/mewpull/engo Cloning into 'engo'... remote: Counting objects: 3761, done. remote: Compressing objects: 100% (163/163), done. remote: Total 3761 (delta 66), reused 0 (delta 0), pack-reused 3575 Receiving objects: 100% (3761/3761), 5.52 MiB | 1.09 MiB/s, done. Resolving deltas: 100% (2367/2367), done. Checking connectivity... done. [/tmp/go/src/engo.io]$ go get engo.io/engo/... releasep: m=0xc820478c00 m-&gt;p=0xc820018000 p-&gt;m=859535019008 m-&gt;mcache=0x7f0656cc5000 p-&gt;mcache=0x7f0656cc5000 p-&gt;status=3 fatal error: releasep: invalid p state runtime stack: runtime.throw(0x8230dc, 0x19) /home/u/go/src/runtime/panic.go:566 +0x8b runtime.releasep(0x2000) /home/u/go/src/runtime/proc.go:3365 +0x208 runtime.gcstopm() /home/u/go/src/runtime/proc.go:1760 +0x42 runtime.schedule() /home/u/go/src/runtime/proc.go:2070 +0x105 runtime.park_m(0xc82012d380) /home/u/go/src/runtime/proc.go:2169 +0x11a runtime.mcall(0x0) /home/u/go/src/runtime/asm_amd64.s:240 +0x5b goroutine 1 [select]: net/http.(*Transport).getConn(0xc820116000, 0xc8201603c0, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0x0, 0x0, 0xc0000000) /home/u/go/src/net/http/transport.go:746 +0x534 net/http.(*Transport).RoundTrip(0xc820116000, 0xc8201603c0, 0xc820116000, 0x0, 0x7f0600000000) /home/u/go/src/net/http/transport.go:347 +0x262 net/http.send(0xc8201603c0, 0x9db7e0, 0xc820116000, 0x0, 0x0, 0x0, 0xe8, 0xc820142260, 0x7f5da0) /home/u/go/src/net/http/client.go:257 +0x14d net/http.(*Client).send(0xa02360, 0xc8201603c0, 0x0, 0x0, 0x0, 0xc820142260, 0x0, 0x1) /home/u/go/src/net/http/client.go:147 +0xef net/http.(*Client).doFollowingRedirects(0xa02360, 0xc8201603c0, 0x8683c0, 0x1c, 0x0, 0x0) /home/u/go/src/net/http/client.go:502 +0x4d8 net/http.(*Client).Get(0xa02360, 0xc8201f78a0, 0x1c, 0x0, 0x0, 0xc8203227c1) /home/u/go/src/net/http/client.go:419 +0x89 main.httpsOrHTTP.func1(0x8064e5, 0x5, 0xc8203e4d38, 0x1, 0x4b1e04, 0x53d0d6, 0xc8203227c1) /home/u/go/src/cmd/go/http.go:86 +0x11b main.httpsOrHTTP(0xc8203227c1, 0xb, 0x0, 0x1, 0x1, 0x0, 0x0, 0x1, 0xc820142248) /home/u/go/src/cmd/go/http.go:95 +0x9d main.repoRootForImportDynamic(0xc8203227c1, 0xb, 0x0, 0x0, 0x0, 0x0) /home/u/go/src/cmd/go/vcs.go:660 +0x133 main.repoRootForImportPath(0xc8203227c1, 0xb, 0x0, 0x0, 0x0, 0x486c17) /home/u/go/src/cmd/go/vcs.go:551 +0x40d main.downloadPackage(0xc820177c00, 0xc820075710, 0xc8203fd7c0) /home/u/go/src/cmd/go/get.go:381 +0x16b1 main.download(0xc8203227c1, 0xb, 0xc820177800, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:233 +0xc8d main.download(0xc82032e641, 0x1a, 0xc820177400, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:305 +0x365 main.download(0xc8201a112c, 0xc, 0x0, 0xc8201945a0, 0x0) /home/u/go/src/cmd/go/get.go:305 +0x365 main.runGet(0x9fb880, 0xc8200741a0, 0x1, 0x1) /home/u/go/src/cmd/go/get.go:107 +0x135 main.main() /home/u/go/src/cmd/go/main.go:181 +0x642 goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/u/go/src/runtime/asm_amd64.s:2013 +0x1 goroutine 20 [syscall]: os/signal.signal_recv(0x0) /home/u/go/src/runtime/sigqueue.go:116 +0x15e os/signal.loop() /home/u/go/src/os/signal/signal_unix.go:22 +0x18 created by os/signal.init.1 /home/u/go/src/os/signal/signal_unix.go:28 +0x37 goroutine 9 [chan receive]: net/http.(*Transport).dialConn(0xc820116000, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0x0, 0x0, 0x0) /home/u/go/src/net/http/transport.go:872 +0xd03 net/http.(*Transport).getConn.func4(0xc820116000, 0x0, 0xc8201f78a0, 0x5, 0xc820497720, 0xb, 0xc82006f080) /home/u/go/src/net/http/transport.go:741 +0x41 created by net/http.(*Transport).getConn /home/u/go/src/net/http/transport.go:743 +0x240 goroutine 34 [semacquire]: panic(0x794ac0, 0xc820010140) /home/u/go/src/runtime/panic.go:497 +0x166 sync.poolCleanup() /home/u/go/src/sync/pool.go:199 +0x183 sync.(*Pool).Put(0xa01ef0, 0x7fe840, 0xc820307140) /home/u/go/src/sync/pool.go:82 +0x125 math/big.putNat(0xc8205a2600, 0x7, 0xb) /home/u/go/src/math/big/nat.go:555 +0x78 math/big.nat.divLarge(0xc82022bc80, 0x1, 0x5, 0xc820248cd0, 0x6, 0xa, 0xc820248d20, 0x6, 0xa, 0xc820248c80, ...) /home/u/go/src/math/big/nat.go:634 +0x633 math/big.nat.div(0xc82022bc80, 0x1, 0x5, 0xc820248cd0, 0x6, 0xa, 0xc820248d20, 0x6, 0xa, 0xc820248c80, ...) /home/u/go/src/math/big/nat.go:541 +0x3a8 math/big.(*Int).QuoRem(0xc8203f0c10, 0xc8203f0bd0, 0xc8203f0cd0, 0xc8203f0cb0, 0xc8203f0c10, 0xc8203f0cd0) /home/u/go/src/math/big/int.go:227 +0xaf math/big.(*Int).GCD(0xc8203f0d28, 0xc8203f0db8, 0x0, 0xc820307000, 0xc82025b440, 0xc8205ca080) /home/u/go/src/math/big/int.go:464 +0x41f math/big.(*Int).ModInverse(0xc8203f0db8, 0xc820307000, 0xc82025b440, 0x6) /home/u/go/src/math/big/int.go:581 +0x6c crypto/elliptic.(*CurveParams).affineFromJacobian(0xc820432600, 0xc820306fc0, 0xc820306fe0, 0xc820307000, 0xc820306ea0, 0xc820306e60) /home/u/go/src/crypto/elliptic/elliptic.go:91 +0x85 crypto/elliptic.(*CurveParams).ScalarMult(0xc820432600, 0xc8204288c0, 0xc8204288e0, 0xc820384b10, 0x30, 0x30, 0x0, 0x0) /home/u/go/src/crypto/elliptic/elliptic.go:265 +0x243 crypto/ecdsa.Verify(0xc820428940, 0xc820385140, 0x30, 0x30, 0xc8203a5360, 0xc8203a5380, 0x0) /home/u/go/src/crypto/ecdsa/ecdsa.go:257 +0x538 crypto/x509.checkSignature(0xb, 0xc8200804c9, 0x329, 0x837, 0xc820080801, 0x67, 0x4ff, 0x7d5080, 0xc820428940, 0x0, ...) /home/u/go/src/crypto/x509/x509.go:731 +0x700 crypto/x509.(*Certificate).CheckSignature(0xc820097200, 0xb, 0xc8200804c9, 0x329, 0x837, 0xc820080801, 0x67, 0x4ff, 0x0, 0x4b1e04) /home/u/go/src/crypto/x509/x509.go:673 +0x8a crypto/x509.(*Certificate).CheckSignatureFrom(0xc820096d80, 0xc820097200, 0xc82043dc00, 0x14) /home/u/go/src/crypto/x509/x509.go:667 +0xcd crypto/x509.(*CertPool).findVerifiedParents(0xc8203c8360, 0xc820096d80, 0x0, 0x0, 0x1, 0xc8203a5340, 0x0, 0x1) /home/u/go/src/crypto/x509/cert_pool.go:57 +0xd3 crypto/x509.(*Certificate).buildChains(0xc820096d80, 0xc8203f1678, 0xc820274f90, 0x2, 0x2, 0xc8203f17c8, 0x1, 0x1, 0x2, 0x2, ...) /home/u/go/src/crypto/x509/verify.go:314 +0x40e crypto/x509.(*Certificate).buildChains(0xc820096480, 0xc8203f1678, 0xc8203f1650, 0x1, 0x1, 0xc8203f17c8, 0x0, 0x0, 0x7f0656cc5960, 0x0, ...) /home/u/go/src/crypto/x509/verify.go:330 +0x8ff crypto/x509.(*Certificate).Verify(0xc820096480, 0xc820497720, 0x7, 0xc8203c8360, 0xc8203c8420, 0xecead68bd, 0x28038de8, 0xa024e0, 0x0, 0x0, ...) /home/u/go/src/crypto/x509/verify.go:265 +0x1af crypto/tls.(*clientHandshakeState).doFullHandshake(0xc8203f1e60, 0xc8201724d0, 0x66) /home/u/go/src/crypto/tls/handshake_client.go:274 +0x202e crypto/tls.(*Conn).clientHandshake(0xc82032ac00, 0x8688d8, 0xc82032ac14) /home/u/go/src/crypto/tls/handshake_client.go:209 +0xea7 crypto/tls.(*Conn).Handshake(0xc82032ac00, 0x0, 0x0) /home/u/go/src/crypto/tls/conn.go:1100 +0x9f net/http.(*Transport).dialConn.func3(0xc82032ac00, 0xc820432200, 0xc820494120) /home/u/go/src/net/http/transport.go:866 +0x21 created by net/http.(*Transport).dialConn /home/u/go/src/net/http/transport.go:871 +0xcc1 [/tmp/go/src/engo.io]$ go version go version devel +944a085 Tue Apr 12 07:25:11 2016 +0000 linux/amd64 [/tmp/go/src/engo.io]$ go get engo.io/engo/... [/tmp/go/src/engo.io]$ </code></pre></div> <ol dir="auto"> <li>What did you expect to see?</li> </ol> <p dir="auto">Successful download and compilation of the <code class="notranslate">engo.io/engo/...</code> packages.</p> <ol dir="auto"> <li>What did you see instead?</li> </ol> <p dir="auto">The fatal error reported above. Note, that the second invocation of <code class="notranslate">go get engo.io/engo/...</code> worked flawlessly.</p>
<p dir="auto">On the solaris-amd64-smartos buildbot. See <a href="http://build.golang.org/log/3e4aa690c01a4123a508595aa248329b26499b18" rel="nofollow">http://build.golang.org/log/3e4aa690c01a4123a508595aa248329b26499b18</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok log 0.018s ok log/syslog 2.047s ok math 0.029s releasep: m=0xc82044a000 m-&gt;p=0xc820022000 p-&gt;m=859534827520 m-&gt;mcache=0xfffffd7fff131a30 p-&gt;mcache=0xfffffd7fff131a30 p-&gt;status=3 fatal error: releasep: invalid p state runtime stack: runtime.throw(0x634c35, 0x19) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/panic.go:566 +0x8b runtime.releasep(0x2000) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:3365 +0x208 runtime.gcstopm() /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:1760 +0x42 runtime.schedule() /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:2070 +0x105 runtime.park_m(0xc82044d380) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:2169 +0x11a runtime.mcall(0x0) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/asm_amd64.s:240 +0x64 (snip)"><pre class="notranslate"><code class="notranslate">ok log 0.018s ok log/syslog 2.047s ok math 0.029s releasep: m=0xc82044a000 m-&gt;p=0xc820022000 p-&gt;m=859534827520 m-&gt;mcache=0xfffffd7fff131a30 p-&gt;mcache=0xfffffd7fff131a30 p-&gt;status=3 fatal error: releasep: invalid p state runtime stack: runtime.throw(0x634c35, 0x19) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/panic.go:566 +0x8b runtime.releasep(0x2000) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:3365 +0x208 runtime.gcstopm() /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:1760 +0x42 runtime.schedule() /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:2070 +0x105 runtime.park_m(0xc82044d380) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/proc.go:2169 +0x11a runtime.mcall(0x0) /root/work/solaris-amd64-smartos-73a0185ad390/go/src/runtime/asm_amd64.s:240 +0x64 (snip) </code></pre></div> <p dir="auto">/CC looks like runtime/GC gatekeepers (who?). It expected _Prunning but got _Pgcstop.</p>
1
<p dir="auto">Consider wanting to create a <code class="notranslate">&lt;paper-button&gt;</code> component that can use attributes <em>or</em> properties:</p> <p dir="auto">Attribute-based configuration:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;!-- Will always be disabled --&gt; &lt;paper-button disabled&gt;Save&lt;/button&gt;"><pre class="notranslate"> <span class="pl-c">&lt;!-- Will always be disabled --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">paper-button</span> <span class="pl-c1">disabled</span><span class="pl-kos">&gt;</span>Save<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Property-based configuration:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;!-- Will be conditionally disabled --&gt; &lt;paper-button [disabled]=&quot;isDisabled&quot;&gt;Save&lt;/paper-button&gt;"><pre class="notranslate"> <span class="pl-c">&lt;!-- Will be conditionally disabled --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">paper-button</span> <span class="pl-c1">[disabled]</span>="<span class="pl-s">isDisabled</span>"<span class="pl-kos">&gt;</span>Save<span class="pl-kos">&lt;/</span><span class="pl-ent">paper-button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Good news is this works today. Bad news is that it requires a little non-intuitive massaging, and could be a lot cleaner for Angular component authors.</p> <p dir="auto">For example, here's today's utility functions:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Utility functions shared among component authors. dynamic getDynamic(inputValue, {defaultValue, onString(String strValue)}) { if (inputValue == null) { return defaultValue; } else if (inputValue is String) { return onString(inputValue); } else { return inputValue; } } bool getBool( inputValue, { bool defaultValue: false, bool onString(String strValue)}) { if (inputValue is String &amp;&amp; onString == null) { return _parseBool(inputValue, defaultValue); } return getDynamic( inputValue, defaultValue: defaultValue, onString: onString); }"><pre class="notranslate"><span class="pl-c">// Utility functions shared among component authors.</span> <span class="pl-c1">dynamic</span> <span class="pl-en">getDynamic</span>(inputValue, {defaultValue, <span class="pl-en">onString</span>(<span class="pl-c1">String</span> strValue)}) { <span class="pl-k">if</span> (inputValue <span class="pl-k">==</span> <span class="pl-c1">null</span>) { <span class="pl-k">return</span> defaultValue; } <span class="pl-k">else</span> <span class="pl-k">if</span> (inputValue <span class="pl-k">is</span> <span class="pl-c1">String</span>) { <span class="pl-k">return</span> <span class="pl-en">onString</span>(inputValue); } <span class="pl-k">else</span> { <span class="pl-k">return</span> inputValue; } } <span class="pl-c1">bool</span> <span class="pl-en">getBool</span>( inputValue, { <span class="pl-c1">bool</span> defaultValue<span class="pl-k">:</span> <span class="pl-c1">false</span>, <span class="pl-c1">bool</span> <span class="pl-en">onString</span>(<span class="pl-c1">String</span> strValue)}) { <span class="pl-k">if</span> (inputValue <span class="pl-k">is</span> <span class="pl-c1">String</span> <span class="pl-k">&amp;&amp;</span> onString <span class="pl-k">==</span> <span class="pl-c1">null</span>) { <span class="pl-k">return</span> <span class="pl-en">_parseBool</span>(inputValue, defaultValue); } <span class="pl-k">return</span> <span class="pl-en">getDynamic</span>( inputValue, defaultValue<span class="pl-k">:</span> defaultValue, onString<span class="pl-k">:</span> onString); }</pre></div> <p dir="auto">And the property setter itself:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// The component itself bool _disabled = false; void set disabled(value) { _disabled = getBool(value); }"><pre class="notranslate"><span class="pl-c">// The component itself</span> <span class="pl-c1">bool</span> _disabled <span class="pl-k">=</span> <span class="pl-c1">false</span>; <span class="pl-k">void</span> <span class="pl-k">set</span> <span class="pl-en">disabled</span>(value) { _disabled <span class="pl-k">=</span> <span class="pl-en">getBool</span>(value); }</pre></div> <h2 dir="auto">Proposal</h2> <p dir="auto">Have an alternative/Angular framework assisted way of doing this. Maybe annotation-based:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Attribute.onNull(false) void set disabled(bool disabled) { _disabled = disabled; }"><pre class="notranslate"><span class="pl-k">@Attribute</span>.<span class="pl-en">onNull</span>(<span class="pl-c1">false</span>) <span class="pl-k">void</span> <span class="pl-k">set</span> <span class="pl-en">disabled</span>(<span class="pl-c1">bool</span> disabled) { _disabled <span class="pl-k">=</span> disabled; }</pre></div> <p dir="auto">I realize this could be done using pipes, but the following is needed:</p> <ol dir="auto"> <li>Register a pipe that may or may not be used</li> <li>Inject <code class="notranslate">PipeRegstry</code></li> <li>Create a transformer from the registry</li> <li>Use the transformer on the property setter</li> </ol> <p dir="auto">This could be a lot cleaner/simpler, and is more natural with native/web components.</p> <p dir="auto">(Slightly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="92945970" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/2869" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/2869/hovercard" href="https://github.com/angular/angular/issues/2869">#2869</a>)</p>
<p dir="auto">Say I have a component that needs to know about its disabled state in some event:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: '[md-button][href]', bind: {disabled: 'disabled'} }) class MdAnchor { onClick(event) { // Disabled anchors don't navigate anywhere. if (this.disabled) { event.preventDefault(); } } }"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'[md-button][href]'</span><span class="pl-kos">,</span> <span class="pl-c1">bind</span>: <span class="pl-kos">{</span><span class="pl-c1">disabled</span>: <span class="pl-s">'disabled'</span><span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">MdAnchor</span> <span class="pl-kos">{</span> <span class="pl-en">onClick</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Disabled anchors don't navigate anywhere.</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This will work fine if we have something like</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a md-button href=&quot;http://google.com&quot; [disabled]=&quot;isDisabled()&quot;&gt;Google&lt;/a&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">md-button</span> <span class="pl-c1">href</span>="<span class="pl-s">http://google.com</span>" <span class="pl-c1">[disabled]</span>="<span class="pl-s">isDisabled()</span>"<span class="pl-kos">&gt;</span>Google<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">However, if you instead do</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a md-button href=&quot;http://google.com&quot; disabled&gt;Google&lt;/a&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">md-button</span> <span class="pl-c1">href</span>="<span class="pl-s">http://google.com</span>" <span class="pl-c1">disabled</span><span class="pl-kos">&gt;</span>Google<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">This code will not work, as <code class="notranslate">this.disabled</code> will be the empty string. I would have to update the value in <code class="notranslate">onChange</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="onChange() { this.disabled = this.disabled || this.disabled == ''; }"><pre class="notranslate"><span class="pl-en">onChange</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span> <span class="pl-c1">||</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span> <span class="pl-c1">==</span> <span class="pl-s">''</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">or always use a method:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="isDisabled() { return this.disabled || this.disabled == ''; }"><pre class="notranslate"><span class="pl-en">isDisabled</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span> <span class="pl-c1">||</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span> <span class="pl-c1">==</span> <span class="pl-s">''</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">TL;DR: Change detection will set disabled to the empty string, which is falsy, but still implies disabled state.</p>
1
<h2 dir="auto">First of all</h2> <p dir="auto">my English is suck</p> <h2 dir="auto">Question</h2> <p dir="auto">when I only configured the default-database-strategy ( no specific table rule are configured ) , My defaul-database-strategy didn't work. (I use hintManager.setDatabaseShardingValue() )</p> <h2 dir="auto">Version</h2> <p dir="auto">4.0.0</p> <h2 dir="auto">Detail</h2> <p dir="auto">my configuration as follow :</p> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="spring.shardingsphere.datasource.names=psghz,psgother # psghz库配置 spring.shardingsphere.datasource.psghz.url=jdbc:postgresql://*******************:****/*****?useUnicode=true&amp;characterEncoding=UTF-8&amp;useSSL=false spring.shardingsphere.datasource.psghz.username=**** spring.shardingsphere.datasource.psghz.password=******** spring.shardingsphere.datasource.psghz.driverClassName=org.postgresql.Driver spring.shardingsphere.datasource.psghz.type=com.alibaba.druid.pool.DruidDataSource spring.shardingsphere.datasource.psghz.max-active=10 # psgother库配置 spring.shardingsphere.datasource.psgother.url=jdbc:postgresql://*******************:****/*****?useUnicode=true&amp;characterEncoding=UTF-8&amp;useSSL=false spring.shardingsphere.datasource.psgother.username=**** spring.shardingsphere.datasource.psgother.password=******** spring.shardingsphere.datasource.psgother.driverClassName=org.postgresql.Driver spring.shardingsphere.datasource.psgother.type=com.alibaba.druid.pool.DruidDataSource spring.shardingsphere.datasource.psgother.max-active=10 # 默认hint配置 spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name=com.ibuscloud.pubtrans.analysis.plugin.sharding.HintShardingStrategy #起初打开default-data-srouce-name,结果走了DefaultDatabaseRoutingEngine,关闭则走了UnicastRoutingEngine #spring.shardingsphere.sharding.default-data-source-name=psghz spring.shardingsphere.props.sql.show=true"><pre class="notranslate"><span class="pl-k">spring.shardingsphere.datasource.names</span>=psghz,psgother <span class="pl-c"><span class="pl-c">#</span> psghz库配置</span> <span class="pl-k">spring.shardingsphere.datasource.psghz.url</span>=jdbc:postgresql://*******************:****/*****?<span class="pl-k">useUnicode</span>=true&amp;<span class="pl-k">characterEncoding</span>=UTF-8&amp;<span class="pl-k">useSSL</span>=false <span class="pl-k">spring.shardingsphere.datasource.psghz.username</span>=**** <span class="pl-k">spring.shardingsphere.datasource.psghz.password</span>=******** <span class="pl-k">spring.shardingsphere.datasource.psghz.driverClassName</span>=org.postgresql.Driver <span class="pl-k">spring.shardingsphere.datasource.psghz.type</span>=com.alibaba.druid.pool.DruidDataSource <span class="pl-k">spring.shardingsphere.datasource.psghz.max-active</span>=10 <span class="pl-c"><span class="pl-c">#</span> psgother库配置</span> <span class="pl-k">spring.shardingsphere.datasource.psgother.url</span>=jdbc:postgresql://*******************:****/*****?<span class="pl-k">useUnicode</span>=true&amp;<span class="pl-k">characterEncoding</span>=UTF-8&amp;<span class="pl-k">useSSL</span>=false <span class="pl-k">spring.shardingsphere.datasource.psgother.username</span>=**** <span class="pl-k">spring.shardingsphere.datasource.psgother.password</span>=******** <span class="pl-k">spring.shardingsphere.datasource.psgother.driverClassName</span>=org.postgresql.Driver <span class="pl-k">spring.shardingsphere.datasource.psgother.type</span>=com.alibaba.druid.pool.DruidDataSource <span class="pl-k">spring.shardingsphere.datasource.psgother.max-active</span>=10 <span class="pl-c"><span class="pl-c">#</span> 默认hint配置</span> <span class="pl-k">spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name</span>=com.ibuscloud.pubtrans.analysis.plugin.sharding.HintShardingStrategy <span class="pl-c"><span class="pl-c">#</span>起初打开default-data-srouce-name,结果走了DefaultDatabaseRoutingEngine,关闭则走了UnicastRoutingEngine</span> <span class="pl-c"><span class="pl-c">#</span>spring.shardingsphere.sharding.default-data-source-name=psghz</span> <span class="pl-k">spring.shardingsphere.props.sql.show</span>=true</pre></div> <p dir="auto">I follow the code and see the RoutingEngineFactory.java create UnicastRoutingEngine.java</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if (sqlStatementContext.getSqlStatement() instanceof DMLStatement &amp;&amp; tableNames.isEmpty() &amp;&amp; shardingRule.hasDefaultDataSourceName()) { return new DefaultDatabaseRoutingEngine(shardingRule, tableNames); } if (sqlStatementContext.getSqlStatement() instanceof DMLStatement &amp;&amp; shardingConditions.isAlwaysFalse() || tableNames.isEmpty() || !shardingRule.tableRuleExists(tableNames)) { return new UnicastRoutingEngine(shardingRule, tableNames); }"><pre class="notranslate"> <span class="pl-k">if</span> (<span class="pl-s1">sqlStatementContext</span>.<span class="pl-en">getSqlStatement</span>() <span class="pl-k">instanceof</span> <span class="pl-smi">DMLStatement</span> &amp;&amp; <span class="pl-s1">tableNames</span>.<span class="pl-en">isEmpty</span>() &amp;&amp; <span class="pl-s1">shardingRule</span>.<span class="pl-en">hasDefaultDataSourceName</span>()) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">DefaultDatabaseRoutingEngine</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">tableNames</span>); } <span class="pl-k">if</span> (<span class="pl-s1">sqlStatementContext</span>.<span class="pl-en">getSqlStatement</span>() <span class="pl-k">instanceof</span> <span class="pl-smi">DMLStatement</span> &amp;&amp; <span class="pl-s1">shardingConditions</span>.<span class="pl-en">isAlwaysFalse</span>() || <span class="pl-s1">tableNames</span>.<span class="pl-en">isEmpty</span>() || !<span class="pl-s1">shardingRule</span>.<span class="pl-en">tableRuleExists</span>(<span class="pl-s1">tableNames</span>)) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">UnicastRoutingEngine</span>(<span class="pl-s1">shardingRule</span>, <span class="pl-s1">tableNames</span>); }</pre></div> <p dir="auto">and <strong>!shardingRule.tableRuleExists(tableNames)</strong> is true .<br> so back to the question , how does the configuration <strong>default-database-strategy</strong> work.</p>
<p dir="auto">Anomalies:</p> <ol dir="auto"> <li>duplicate database ID production</li> <li>abnormal query data</li> </ol> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">org.apache.shardingsphere:sharding-jdbc-spring-boot-starter:4.1.1</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <ol dir="auto"> <li>Please use the code repository I provided <a href="https://github.com/huifer/sharding-jdbc-test">github</a></li> <li>Execute <code class="notranslate">com.example.demo.rest.AcontrollerTest#gen</code> method passing in parameter 2023,The data is presented in the database as follows</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="818114806320992257 device_1 2023-02-01 00:00:00 6 89 290 5851 60390 818114806320992258 device_2 2023-02-01 00:00:00 1 14 301 0018 21050 818114806320992259 device_3 2023-02-01 00:00:00 9 77 919 5078 00798"><pre class="notranslate"><code class="notranslate">818114806320992257 device_1 2023-02-01 00:00:00 6 89 290 5851 60390 818114806320992258 device_2 2023-02-01 00:00:00 1 14 301 0018 21050 818114806320992259 device_3 2023-02-01 00:00:00 9 77 919 5078 00798 </code></pre></div> <ol start="3" dir="auto"> <li>Execute <code class="notranslate">com.example.demo.rest.AcontrollerTest#gen</code> method passing in parameter 2024,The data is presented in the database as follows</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="818114806320992257 device_1 2024-02-01 00:00:00 5 30 077 9618 52059 818114806320992258 device_2 2024-02-01 00:00:00 7 85 481 9165 91450 818114806320992259 device_3 2024-02-01 00:00:00 6 16 941 3355 62767"><pre class="notranslate"><code class="notranslate">818114806320992257 device_1 2024-02-01 00:00:00 5 30 077 9618 52059 818114806320992258 device_2 2024-02-01 00:00:00 7 85 481 9165 91450 818114806320992259 device_3 2024-02-01 00:00:00 6 16 941 3355 62767 </code></pre></div> <p dir="auto"><strong>The above operation shows that the ID production results are duplicated</strong></p> <ol start="4" dir="auto"> <li>Execute the <code class="notranslate">com.example.demo.rest.AcontrollerTest#data</code> method in this case,The returned data results in an exception。The data for 2023 was repeated 2 times, and the data for 2024 was not successfully queried</li> </ol> <ul dir="auto"> <li> <p dir="auto">The result of the function execution is shown in the figure<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26766909/211129522-bd3eca36-ae35-4ffe-b1e2-82909e5787eb.png"><img src="https://user-images.githubusercontent.com/26766909/211129522-bd3eca36-ae35-4ffe-b1e2-82909e5787eb.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">The execution log is as follows</p> </li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2023-01-07 11:33:50.291 INFO 10316 --- [ Test worker] ShardingSphere-SQL : Actual SQL: ds ::: select sampledata0_.id as id1_0_, sampledata0_.device_id as device_i2_0_, sampledata0_.time as time3_0_, sampledata0_.v1 as v4_0_, sampledata0_.v2 as v5_0_, sampledata0_.v3 as v6_0_, sampledata0_.v4 as v7_0_, sampledata0_.v5 as v8_0_ from sample_data_2023_2 sampledata0_ where sampledata0_.time&lt;? ::: [2077-01-01 00:00:00.0] 2023-01-07 11:33:50.291 INFO 10316 --- [ Test worker] ShardingSphere-SQL : Actual SQL: ds ::: select sampledata0_.id as id1_0_, sampledata0_.device_id as device_i2_0_, sampledata0_.time as time3_0_, sampledata0_.v1 as v4_0_, sampledata0_.v2 as v5_0_, sampledata0_.v3 as v6_0_, sampledata0_.v4 as v7_0_, sampledata0_.v5 as v8_0_ from sample_data_2024_2 sampledata0_ where sampledata0_.time&lt;? ::: [2077-01-01 00:00:00.0]"><pre class="notranslate"><code class="notranslate">2023-01-07 11:33:50.291 INFO 10316 --- [ Test worker] ShardingSphere-SQL : Actual SQL: ds ::: select sampledata0_.id as id1_0_, sampledata0_.device_id as device_i2_0_, sampledata0_.time as time3_0_, sampledata0_.v1 as v4_0_, sampledata0_.v2 as v5_0_, sampledata0_.v3 as v6_0_, sampledata0_.v4 as v7_0_, sampledata0_.v5 as v8_0_ from sample_data_2023_2 sampledata0_ where sampledata0_.time&lt;? ::: [2077-01-01 00:00:00.0] 2023-01-07 11:33:50.291 INFO 10316 --- [ Test worker] ShardingSphere-SQL : Actual SQL: ds ::: select sampledata0_.id as id1_0_, sampledata0_.device_id as device_i2_0_, sampledata0_.time as time3_0_, sampledata0_.v1 as v4_0_, sampledata0_.v2 as v5_0_, sampledata0_.v3 as v6_0_, sampledata0_.v4 as v7_0_, sampledata0_.v5 as v8_0_ from sample_data_2024_2 sampledata0_ where sampledata0_.time&lt;? ::: [2077-01-01 00:00:00.0] </code></pre></div>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Right click on any folder.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Unknown Windows Version<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\User\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\User\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\User\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\User\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\User\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitO"><pre class="notranslate"><code class="notranslate">At C:\Users\User\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\User\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitO </code></pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">I have this wired bug since I update from v0.15 to v2.4.4.</p> <p dir="auto">This is my classes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class ParentClass { constructor() {} } // This is my ChildClass class ChildClass extends ParentClass { constructor() { super(); } }"><pre class="notranslate"><code class="notranslate">class ParentClass { constructor() {} } // This is my ChildClass class ChildClass extends ParentClass { constructor() { super(); } } </code></pre></div> <p dir="auto">Compiles to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var _inherits = function (child, parent) { child.prototype = Object.create(parent &amp;&amp; parent.prototype, { constructor: { value: child, enumerable: false, writable: true, configurable: true } }); if (parent) child.__proto__ = parent; }; var ParentClass = function ParentClass() {}; // This is my ChildClass var ChildClass = (function () { // This is my ChildClassvar _ParentClass = ParentClass; var ChildClass = function ChildClass() { _ParentClass.call(this); }; _inherits(ChildClass, _ParentClass); return ChildClass; })();"><pre class="notranslate"><code class="notranslate">"use strict"; var _inherits = function (child, parent) { child.prototype = Object.create(parent &amp;&amp; parent.prototype, { constructor: { value: child, enumerable: false, writable: true, configurable: true } }); if (parent) child.__proto__ = parent; }; var ParentClass = function ParentClass() {}; // This is my ChildClass var ChildClass = (function () { // This is my ChildClassvar _ParentClass = ParentClass; var ChildClass = function ChildClass() { _ParentClass.call(this); }; _inherits(ChildClass, _ParentClass); return ChildClass; })(); </code></pre></div> <p dir="auto">You can see the comment <code class="notranslate">// This is my ChildClass</code> is duplicate and break the definition of <code class="notranslate">var _ParentClass = ParentClass;</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: _ParentClass is not defined"><pre class="notranslate"><code class="notranslate">ReferenceError: _ParentClass is not defined </code></pre></div> <p dir="auto">Quick fix: turning off <code class="notranslate">comment</code> in format option.</p>
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimenB/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimenB">@SimenB</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.3.13</li> <li><strong>Node version:</strong> 4.2.3</li> <li><strong>npm version:</strong> 3.5.2</li> </ul> <h3 dir="auto">Input code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import meep from 'meep'; meep('meep');"><pre class="notranslate"><code class="notranslate">import meep from 'meep'; meep('meep'); </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">The <code class="notranslate">default</code> keyword is not wrapped in quotes. It's wrapped correctly in the <code class="notranslate">_interopRequireDefault</code>-function, but usage is not wrapped (it's <code class="notranslate">(0, _meep2.default)</code> instead of <code class="notranslate">(0, _meep2['default'])</code>)</p> <p dir="auto">I'm unsure which of <code class="notranslate">es3-member-expression-literals</code> and <code class="notranslate">es3-property-literals</code> should add the quotes.</p> <p dir="auto">I created a gist reproducing the problem: <a href="https://gist.github.com/SimenB/0b84772c01305e5485f3">https://gist.github.com/SimenB/0b84772c01305e5485f3</a></p>
0
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">Normally, the "app.run()" should go back and open the web server with the port number 3000.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello Flask' app.run(port=3000)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">index</span>(): <span class="pl-k">return</span> <span class="pl-s">'Hello Flask'</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">3000</span>)</pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Errors are occurring in "app.run()".<br> The same error occurs when using the debug tool in the visual studio code or the Python3 console window.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16767890/96731602-673d0e00-13f2-11eb-8e0f-93aada6e2285.png"><img src="https://user-images.githubusercontent.com/16767890/96731602-673d0e00-13f2-11eb-8e0f-93aada6e2285.png" alt="Visual Studio Code traceback" style="max-width: 100%;"></a><br> When using the debug tool in Visual Studio Code<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16767890/96731788-99e70680-13f2-11eb-8621-4fefce6d519b.png"><img src="https://user-images.githubusercontent.com/16767890/96731788-99e70680-13f2-11eb-8621-4fefce6d519b.png" alt="IDLE traceback" style="max-width: 100%;"></a><br> When using the debug tool in IDLE</p> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;D:\Flask\start.py&quot;, line 8, in &lt;module&gt; app.run(port=3000) File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py&quot;, line 990, in run run_simple(host, port, self, **options) File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py&quot;, line 1052, in run_simple inner() File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py&quot;, line 996, in inner srv = make_server( File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py&quot;, line 847, in make_server return ThreadedWSGIServer( File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py&quot;, line 740, in __init__ HTTPServer.__init__(self, server_address, handler) File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\socketserver.py&quot;, line 452, in __init__ self.server_bind() File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\http\server.py&quot;, line 140, in server_bind self.server_name = socket.getfqdn(host) File &quot;C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\socket.py&quot;, line 756, in getfqdn hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 0: invalid start byte"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s">"D:\Flask\start.py"</span>, line <span class="pl-c1">8</span>, in <span class="pl-en">&lt;module&gt;</span> app.run(<span class="pl-v">port</span><span class="pl-k">=</span><span class="pl-c1">3000</span>) File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py"</span>, line <span class="pl-c1">990</span>, in <span class="pl-en">run</span> run_simple(host, port, <span class="pl-c1">self</span>, <span class="pl-k">**</span>options) File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">1052</span>, in <span class="pl-en">run_simple</span> inner() File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">996</span>, in <span class="pl-en">inner</span> srv <span class="pl-k">=</span> make_server( File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">847</span>, in <span class="pl-en">make_server</span> <span class="pl-k">return</span> ThreadedWSGIServer( File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">740</span>, in <span class="pl-en">__init__</span> HTTPServer.<span class="pl-c1">__init__</span>(<span class="pl-c1">self</span>, server_address, handler) File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\socketserver.py"</span>, line <span class="pl-c1">452</span>, in <span class="pl-en">__init__</span> <span class="pl-c1">self</span>.server_bind() File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\http\server.py"</span>, line <span class="pl-c1">140</span>, in <span class="pl-en">server_bind</span> <span class="pl-c1">self</span>.server_name <span class="pl-k">=</span> socket.getfqdn(host) File <span class="pl-s">"C:\Users\gunyu\AppData\Local\Programs\Python\Python38-32\lib\socket.py"</span>, line <span class="pl-c1">756</span>, in <span class="pl-en">getfqdn</span> hostname, aliases, ipaddrs <span class="pl-k">=</span> gethostbyaddr(name) <span class="pl-en">UnicodeDecodeError</span>: <span class="pl-s">'utf-8' codec can't decode byte 0xc0 in position 0: invalid start byte</span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: v3.8.2</li> <li>Flask version: v1.1.2</li> <li>Werkzeug version: v1.0.1</li> </ul>
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">A normal python script with the starter code, wont run. I think that it's the library that causes the error.</p> <p dir="auto">Script:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == &quot;__main__&quot;: app.run(host=&quot;0.0.0.0&quot;, port=8080, debug=True)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">hello_world</span>(): <span class="pl-k">return</span> <span class="pl-s">'Hello, World!'</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">"0.0.0.0"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">8080</span>, <span class="pl-s1">debug</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">It crashed with this traceback</p> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Exception in thread Thread-1: Traceback (most recent call last): File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\threading.py&quot;, line 926, in _bootstrap_inner self.run() File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\threading.py&quot;, line 870, in run self._target(*self._args, **self._kwargs) File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py&quot;, line 963, in inner fd=fd, File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py&quot;, line 806, in make_server host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py&quot;, line 699, in __init__ HTTPServer.__init__(self, server_address, handler) File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py&quot;, line 452, in __init__ self.server_bind() File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\http\server.py&quot;, line 139, in server_bind self.server_name = socket.getfqdn(host) File &quot;C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\socket.py&quot;, line 676, in getfqdn hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 9: invalid continuation byte"><pre class="notranslate">Exception in thread Thread-1: Traceback (most recent call last): File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\threading.py"</span>, line <span class="pl-c1">926</span>, in <span class="pl-en">_bootstrap_inner</span> <span class="pl-c1">self</span>.run() File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\threading.py"</span>, line <span class="pl-c1">870</span>, in <span class="pl-en">run</span> <span class="pl-c1">self</span>._target(<span class="pl-k">*</span><span class="pl-c1">self</span>._args, <span class="pl-k">**</span><span class="pl-c1">self</span>._kwargs) File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">963</span>, in <span class="pl-en">inner</span> fd<span class="pl-k">=</span>fd, File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">806</span>, in <span class="pl-en">make_server</span> host, port, app, request_handler, passthrough_errors, ssl_context, fd<span class="pl-k">=</span>fd File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\werkzeug\serving.py"</span>, line <span class="pl-c1">699</span>, in <span class="pl-en">__init__</span> HTTPServer.<span class="pl-c1">__init__</span>(<span class="pl-c1">self</span>, server_address, handler) File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py"</span>, line <span class="pl-c1">452</span>, in <span class="pl-en">__init__</span> <span class="pl-c1">self</span>.server_bind() File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\http\server.py"</span>, line <span class="pl-c1">139</span>, in <span class="pl-en">server_bind</span> <span class="pl-c1">self</span>.server_name <span class="pl-k">=</span> socket.getfqdn(host) File <span class="pl-s">"C:\Users\fredr\AppData\Local\Programs\Python\Python37-32\lib\socket.py"</span>, line <span class="pl-c1">676</span>, in <span class="pl-en">getfqdn</span> hostname, aliases, ipaddrs <span class="pl-k">=</span> gethostbyaddr(name) <span class="pl-en">UnicodeDecodeError</span>: <span class="pl-s">'utf-8' codec can't decode byte 0xe6 in position 9: invalid continuation byte</span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: Python 3.7.4</li> <li>Flask version: 1.1.1</li> <li>Werkzeug version: Don't know</li> </ul>
1
<p dir="auto">my account : <a href="https://www.freecodecamp.com/333yalindre" rel="nofollow">https://www.freecodecamp.com/333yalindre</a></p> <p dir="auto">My whole progress is gone now. I was at level 290.. Last night i've finished "diff two arrays" challenge and submit it successfully. then i went to my profile page. then <strong>i saw a message that I have no mail address connected to fcc</strong>. i'm sure its there before. but then i've added my email address. and verified it.</p> <p dir="auto">just after that my whole progress is gone. <strong>I think some how there is a issue with mail section. i think adding a mail address is making a whole new duplicate account (Quincy said that may be i've accidently make a duplicate and it may be the issue.). but the problem is my github is also linked to the account which is reset.</strong></p> <p dir="auto">I mailed the team@freecodecamp. but still no response. so please check this issue. otherwise people will loose there focus. no doubts this is the best code camp ever. i'd love to contribute also after i got more experience and knowledge. thanks...</p>
<h4 dir="auto">Issue Description</h4> <p dir="auto">There is an empty list item with no challenge name under the Basic Algorithm Scripting section.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Google Chrome v55.0.2883.95</li> <li>Operating System: macOS 10.12.2</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/241553/22171564/2c493e16-dfaa-11e6-9a0b-8a29b2350e45.png"><img src="https://cloud.githubusercontent.com/assets/241553/22171564/2c493e16-dfaa-11e6-9a0b-8a29b2350e45.png" alt="screen shot 2017-01-21 at 07 05 34" style="max-width: 100%;"></a></p>
0
<ul dir="auto"> <li>Electron version: 0.36.9</li> <li>Operating system: OS X 10.0.2</li> </ul> <p dir="auto">The error showed on startup, and kept showing up for several times after clicking on OK. But when I opened my app the other time, the dialog did not reproduce. I think this might the with the electron itself.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Exception: TypeError: Cannot read property 'delete' of undefined at ObjectsRegistry.remove (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/objects-registry.js:53:31) at EventEmitter.&lt;anonymous&gt; (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/rpc-server.js:345:26) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7) at EventEmitter.&lt;anonymous&gt; (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/api/lib/web-contents.js:123:25) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7)"><pre class="notranslate"><code class="notranslate">Uncaught Exception: TypeError: Cannot read property 'delete' of undefined at ObjectsRegistry.remove (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/objects-registry.js:53:31) at EventEmitter.&lt;anonymous&gt; (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/lib/rpc-server.js:345:26) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7) at EventEmitter.&lt;anonymous&gt; (/Applications/Electronic WeChat.app/Contents/Resources/atom.asar/browser/api/lib/web-contents.js:123:25) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7) </code></pre></div>
<ul dir="auto"> <li>Electron version: 0.36.9</li> <li>Operating system: Mac</li> </ul> <p dir="auto">We're still trying to nail down repro steps in Slack, but it seems to happen on 0.36.9 when calling <code class="notranslate">remote</code> methods. Specifically, we build context menus using <code class="notranslate">remote</code> (very similar to the <a href="https://github.com/atom/electron/blob/master/docs/api/menu.md"><code class="notranslate">Menu</code></a> sample) and occasionally they stop working with this exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: Cannot read property 'object' of undefined TypeError: Cannot read property 'object' of undefined at ObjectsRegistry.get (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\objects-registry.js:44:28) at metaToValue (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:155:32) at Array.map (native) at unwrapArgs (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:214:15) at EventEmitter.&lt;anonymous&gt; (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:317:12) at emitMany (events.js:108:13) at EventEmitter.emit (events.js:182:7) at EventEmitter.&lt;anonymous&gt; (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\api\lib\web-contents.js:133:25) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7)"><pre class="notranslate"><code class="notranslate">Uncaught Error: Cannot read property 'object' of undefined TypeError: Cannot read property 'object' of undefined at ObjectsRegistry.get (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\objects-registry.js:44:28) at metaToValue (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:155:32) at Array.map (native) at unwrapArgs (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:214:15) at EventEmitter.&lt;anonymous&gt; (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:317:12) at emitMany (events.js:108:13) at EventEmitter.emit (events.js:182:7) at EventEmitter.&lt;anonymous&gt; (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\api\lib\web-contents.js:133:25) at emitTwo (events.js:87:13) at EventEmitter.emit (events.js:172:7) </code></pre></div>
1
<p dir="auto">...as a parameter which gets inherited globally by <code class="notranslate">get()</code> and other HTTP methods.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session = requests.Session(timeout=30) session.get(...) session.get(...)"><pre class="notranslate"><code class="notranslate">session = requests.Session(timeout=30) session.get(...) session.get(...) </code></pre></div> <p dir="auto">Would be equivalent to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session = requests.Session() session.get(..., timeout=30) session.get(..., timeout=30)"><pre class="notranslate"><code class="notranslate">session = requests.Session() session.get(..., timeout=30) session.get(..., timeout=30) </code></pre></div> <p dir="auto">Thoughts?</p>
<p dir="auto">I was using an old version of requests (I don't know the exact version). When settings the <code class="notranslate">session.timeout</code> it was affecting the timeout value during a call to <code class="notranslate">session.get()</code>. With recent version of requests, this feature doesn't seams to work.</p> <p dir="auto">I'm currently using version 2.10.0</p> <p dir="auto">Basically, I'm expecting this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session = requests.session() session.timeout = 0.0001 session.get('http://localhost/')"><pre class="notranslate"><code class="notranslate">session = requests.session() session.timeout = 0.0001 session.get('http://localhost/') </code></pre></div> <p dir="auto">To have the same behavior as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="requests.get('http://localhost/', timeout=0.0001)"><pre class="notranslate"><code class="notranslate">requests.get('http://localhost/', timeout=0.0001) </code></pre></div>
1
<p dir="auto">I think that the size of modal-lg should be smaller for xs and sm devices, so that sizing the modal with hidden- and visible- should not ne necessary fit the modals onto the devices.</p>
<p dir="auto">First I want to give a example of why this could be useful in my eyes. Reason for having these classes is allowing you to float elements when the screen is large enough and place them precisely when the screen gets smaller. A list of tags for example look nicer when floated on a big screen:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|[tag1] [longtagname] [tag3] [tag4] [tag5andsomemore] |"><pre class="notranslate"><code class="notranslate">|[tag1] [longtagname] [tag3] [tag4] [tag5andsomemore] | </code></pre></div> <p dir="auto">But on a small screen it looks kind of messy:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|-----------------| |[tag1] | |-----------------| |[longtagname] | |-----------------| |[tag3] [tag4] | |-----------------| |[tag5andsomemore]| |-----------------|"><pre class="notranslate"><code class="notranslate">|-----------------| |[tag1] | |-----------------| |[longtagname] | |-----------------| |[tag3] [tag4] | |-----------------| |[tag5andsomemore]| |-----------------| </code></pre></div> <p dir="auto">With the suggested styles we can make it look nice and structured:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|-----------------| |[ tag1 ][longt-]| |[ ][agname]| |-----------------| |[ tag3 ][ tag4 ]| |-----------------| |[tag5an-] | |[somemo-] | |[ re ] | |-----------------|"><pre class="notranslate"><code class="notranslate">|-----------------| |[ tag1 ][longt-]| |[ ][agname]| |-----------------| |[ tag3 ][ tag4 ]| |-----------------| |[tag5an-] | |[somemo-] | |[ re ] | |-----------------| </code></pre></div> <p dir="auto">Well it still looks crappy in ASCII but I hope you get the point. The HTML would look something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;row-mdi&quot;&gt; &lt;div class=&quot;my-tag-style col-mdi-3 col-smi-6&quot;&gt; tag1 &lt;/div&gt; &lt;div class=&quot;my-tag-style col-mdi-3 col-smi-6&quot;&gt; longtagname &lt;/div&gt; ... &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="row-mdi"&gt; &lt;div class="my-tag-style col-mdi-3 col-smi-6"&gt; tag1 &lt;/div&gt; &lt;div class="my-tag-style col-mdi-3 col-smi-6"&gt; longtagname &lt;/div&gt; ... &lt;/div&gt; </code></pre></div> <p dir="auto">As you might have noticed in the code above, the downside is that we need a conditional row class as well.</p> <p dir="auto">I have a piece of code that implements this but it is written in terms of the old grid code that didn't use mixins for most of the styles.</p> <p dir="auto">Before converting the code and submitting a pull request I wanted to get some critique. I can imagine that one might say that these styles are not general-purpose enough, so to speak, to be included in twbs.</p>
0
<p dir="auto">Copied from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126581960" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2000" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2000/hovercard" href="https://github.com/microsoft/vscode/issues/2000">microsoft/vscode#2000</a></p> <p dir="auto">When using Angular 2 and TypeScript I noticed that editing <code class="notranslate">template</code> strings of components in TypeScript files are not working as one expect. There is not autocomplete for tags and other usual HTML editing features.</p> <p dir="auto">For example</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/core'; @Component({ selector: 'my-app', template: '&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;' }) export class AppComponent { }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">Component</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/core'</span><span class="pl-kos">;</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Of course it's because the type definition has declared <code class="notranslate">template</code> as a String and no part of VSCode knows that it's an HTML string.</p> <p dir="auto">My proposal is to define a <code class="notranslate">HTMLString</code> type where it's basically just string but helps tooling in cases like this.</p> <p dir="auto">If it was possible to do this, then we can define <code class="notranslate">CSSString</code>, <code class="notranslate">JavaScriptString</code>, <code class="notranslate">SCSSString</code> and so on...</p>
<h2 dir="auto">Motivation</h2> <p dir="auto">ES6 Template strings make it much easier to put blocks of HTML code inline with JavaScript. This can be leveraged in frameworks like Angular. One disadvantage to this though, is that IDEs don't know that the string block should be formatted as HTML so there is no syntax highlighting.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: 'angular-demo' }) @View({ template: `&lt;h3&gt;My Template&lt;/h3&gt; &lt;p&gt;I can put blocks of HTML here.&lt;/p&gt; &lt;p&gt;Unfortunately, there is no syntax highlighting.&lt;/p&gt;` }) class Demo{ }"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'angular-demo'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> @<span class="pl-v">View</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">template</span>: <span class="pl-s">`&lt;h3&gt;My Template&lt;/h3&gt;</span> <span class="pl-s"> &lt;p&gt;I can put blocks of HTML here.&lt;/p&gt;</span> <span class="pl-s"> &lt;p&gt;Unfortunately, there is no syntax highlighting.&lt;/p&gt;`</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">Demo</span><span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Proposal</h2> <p dir="auto">I propose a simple HTMLString type that is simply an alias for string but can signal to text editors that the string should be styled as HTML and can use HTML completion. This should be implemented in lib.d.ts to standardize the use of the type.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * Alias for the string type used to denote the string should be shown with * HTML syntax highlighting */ type HTMLString = string;"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * Alias for the string type used to denote the string should be shown with</span> <span class="pl-c"> * HTML syntax highlighting</span> <span class="pl-c"> */</span> <span class="pl-s1">type</span> <span class="pl-v">HTMLString</span> <span class="pl-c1">=</span> <span class="pl-s1">string</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Strengths:</h3> <ul dir="auto"> <li>Simple to implement</li> <li>No breaking changes</li> <li>IDE support is optional</li> </ul> <h3 dir="auto">Weaknesses:</h3> <ul dir="auto"> <li>Requires IDEs to be interested in implementing</li> </ul>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd pd.read_html('https://www.ssa.gov/policy/docs/statcomps/supplement/2015/5h.html')[0]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_html</span>(<span class="pl-s">'https://www.ssa.gov/policy/docs/statcomps/supplement/2015/5h.html'</span>)[<span class="pl-c1">0</span>]</pre></div> <p dir="auto">This has complex table headings:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/976970/28495218-7db85530-6efb-11e7-9f64-8b56a61509d4.png"><img width="967" alt="annual_statistical_supplement__2015_-_beneficiary_families_with_oasdi_benefits_in_current-payment_status__5_h_" src="https://user-images.githubusercontent.com/976970/28495218-7db85530-6efb-11e7-9f64-8b56a61509d4.png" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">read_html</code> output begins with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Year Retired-worker families Survivor families Disabled-worker families Unnamed: 4_level_0 Unnamed: 5_level_0 Unnamed: 6_level_0 Unnamed: 7_level_0 Unnamed: 8_level_0 Unnamed: 9_level_0 Unnamed: 10_level_0 Unnamed: 11_level_0 \ Worker only Worker and wife?a Non-disabled widow only Widowed mother or father and? Worker only Worker, wife,?b and? Worker and spouse Unnamed: 7_level_1 Unnamed: 8_level_1 Unnamed: 9_level_1 Unnamed: 10_level_1 Unnamed: 11_level_1 All Men Women 1?child 2?children 3 or more children All Men Women 1?child 2 or more children Unnamed: 11_level_2 0 NaN Number?(thousands) NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 1 1945 416 338 78 181 95 86.00 48.00 24.00 .?.?. .?.?. .?.?."><pre class="notranslate"><code class="notranslate"> Year Retired-worker families Survivor families Disabled-worker families Unnamed: 4_level_0 Unnamed: 5_level_0 Unnamed: 6_level_0 Unnamed: 7_level_0 Unnamed: 8_level_0 Unnamed: 9_level_0 Unnamed: 10_level_0 Unnamed: 11_level_0 \ Worker only Worker and wife?a Non-disabled widow only Widowed mother or father and? Worker only Worker, wife,?b and? Worker and spouse Unnamed: 7_level_1 Unnamed: 8_level_1 Unnamed: 9_level_1 Unnamed: 10_level_1 Unnamed: 11_level_1 All Men Women 1?child 2?children 3 or more children All Men Women 1?child 2 or more children Unnamed: 11_level_2 0 NaN Number?(thousands) NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 1 1945 416 338 78 181 95 86.00 48.00 24.00 .?.?. .?.?. .?.?. </code></pre></div> <p dir="auto">(row 0 of the output is probably something one would have to manually eliminate)</p> <h4 dir="auto">Problem description</h4> <p dir="auto">For HTML headings with rowspan and colspan elements, <code class="notranslate">read_html</code> has undesirable behavior. Basically <code class="notranslate">read_html</code> packs all heading <code class="notranslate">&lt;th&gt;</code> elements in any particular row to the left, so any particular column no longer has any association with the <code class="notranslate">&lt;th&gt;</code> elements that are actually above it in the HTML table.</p> <p dir="auto">Ample discussion here about the analogous pandas+Excel test case: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18575759" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4679" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4679/hovercard" href="https://github.com/pandas-dev/pandas/issues/4679">#4679</a></p> <p dir="auto">Relevant web discussions:</p> <ul dir="auto"> <li><a href="https://stackoverflow.com/questions/23703638/bug-in-pandas-read-html-method" rel="nofollow">https://stackoverflow.com/questions/23703638/bug-in-pandas-read-html-method</a></li> <li><a href="https://stackoverflow.com/questions/28763891/what-should-i-do-when-tr-has-rowspan" rel="nofollow">https://stackoverflow.com/questions/28763891/what-should-i-do-when-tr-has-rowspan</a></li> <li><a href="https://johnricco.github.io/2017/04/04/python-html/" rel="nofollow">https://johnricco.github.io/2017/04/04/python-html/</a> (using his example)</li> </ul> <p dir="auto">This may be an issue with the underlying parsers and cannot be solved well in pandas. This appears to be the behavior with both lxml and bs4/html5lib.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Each column should be associated with the <code class="notranslate">&lt;th&gt;</code> elements above it in the table. This might be a multi-row column name (as it is now) (a <code class="notranslate">MultiIndex</code>?) or a tuple (presumably if the argument <code class="notranslate">tupleize_cols</code> is set to <code class="notranslate">True</code>). Instead, currently, column <em>n</em> is associated with the <em>n</em> th <code class="notranslate">&lt;th&gt;</code> entry in the table row regardless of the settings of rowspan/colspan.</p> <p dir="auto">It may be this is possible to do properly in current pandas in which case I apologize for filing the issue (but I'd be happy to know how to do it).</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.13.final.0 python-bits: 64 OS: Darwin OS-release: 16.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.US-ASCII LOCALE: None.None <p dir="auto">pandas: 0.20.3<br> pytest: None<br> pip: 9.0.1<br> setuptools: 36.2.0<br> Cython: 0.26<br> numpy: 1.13.1<br> scipy: 0.19.1<br> xarray: None<br> IPython: 5.3.0<br> sphinx: 1.6.3<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: 2.4.7<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.7.3<br> bs4: 4.5.3<br> html5lib: 1.0b10<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">Hi, guys! First of all, thanks for making this open source! =D Keep up the good work!</p> <p dir="auto"><strong>SCRIPT</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd dfs = pd.read_html('https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States') print(dfs[0])"><pre class="notranslate"><code class="notranslate">import pandas as pd dfs = pd.read_html('https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States') print(dfs[0]) </code></pre></div> <p dir="auto">The output we found where there is any colspan is considering only the first column, and the other values are pulled back in relation to the colspan amount, making the values on the tail's row as "NaN"</p> <p dir="auto"><strong>#### Expected Output</strong><br> In this web page, there is a colspan in the "capital" and "largest city" columns when they are the same, I think that in a general way we would expect that the value would be duplicate on the following &lt;colspan's amount&gt; columns in the generated DataFrame</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.2.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 15 Stepping 13, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None</p> <p dir="auto">pandas: 0.18.1<br> nose: None<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: 0.24.1<br> numpy: 1.11.1<br> scipy: 0.18.0<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.6.1<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.1<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.5.1<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: 0.2.1</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li> <p dir="auto">Windows build number: [run "winver"]<br> Version 10.0.18363.959</p> </li> <li> <p dir="auto">PowerToys version:<br> Probably current... - it displays toast about ability to update, I select "on next launch", and Windows Installer starts.</p> </li> <li> <p dir="auto">PowerToy module:</p> </li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>…</li> <li>…</li> <li>…</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto"><em>What is the expected result of the above steps?</em></p> <h3 dir="auto">❌ Actual result</h3> <p dir="auto"><em>What is the actual result of the above steps?</em></p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p> <p dir="auto">Please open new issue in: <a href="https://github.com/microsoft/PowerToys/issues">https://github.com/microsoft/PowerToys/issues</a></p> <ol dir="auto"> <li>upload log file: C:\Users\pkar\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0\2020-08-09.txt</li> <li>copy below exception message</li> </ol> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/09/2020 16:00:36<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSource<br> Window(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5047641/2020-08-09.txt">2020-08-09.txt</a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">Hello,</p> <p dir="auto"><em>Note: I posted this question in "discussions" but not sure it was the right place I apologize for the duplicate</em></p> <p dir="auto">Coming from Scala where the management of asynchronous/synchronous operations is quite explicit, I am struggling to understand what's the impact of using def instead of async def for path operation functions.</p> <p dir="auto">My main motivation by using an async framework is to be able to scale a lot on a single machine, being able to support a high number of concurrent http requests with a limited number of system threads.</p> <p dir="auto">Using a mature database access library like SQL Alchemy will require to use non async functions a lot, as it does not support async yet (I know there are options but I am not sure I want to use it). The doc claims that then the function runs on a separate thread pool.</p> <p dir="auto">Does that mean:<br> 1/ a new thread will be created for each new http client request: in that case I guess the async nature of fastapi just disappear...</p> <p dir="auto">2/ a new thread will be created just for a new sql connection/session while keeping the requests handlers async on the main pool ? In that case what kind of thread is it ? is it a fixed thread pool ? is the number of threads configurable ? How will it be managed regarding the number of connections in the connection pool (dead locks ...) ?</p> <p dir="auto">Thanks for your help !<br> --pascal</p>
<h3 dir="auto">First check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to one of: <ul dir="auto"> <li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li> <li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li> <li>Implement a Pull Request for a confirmed bug.</li> </ul> </li> </ul> <h3 dir="auto">Example</h3> <p dir="auto">Here's a self-contained, <a href="https://stackoverflow.com/help/minimal-reproducible-example" rel="nofollow">minimal, reproducible, example</a> with my use case:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI app = FastAPI() @app.get('/cookies') def cookie(name=Cookie(None)): return {'name': name}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">'/cookies'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">cookie</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-v">Cookie</span>(<span class="pl-c1">None</span>)): <span class="pl-k">return</span> {<span class="pl-s">'name'</span>: <span class="pl-s1">name</span>}</pre></div> <h3 dir="auto">Description</h3> <ul dir="auto"> <li>Run the above code</li> <li>Goto swagger to test the cookies.</li> <li>The name is returned as null instead of what was input.</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8587189/90330110-15c76b80-dfca-11ea-9c87-323adb042b85.png"><img src="https://user-images.githubusercontent.com/8587189/90330110-15c76b80-dfca-11ea-9c87-323adb042b85.png" alt="Screenshot from 2020-08-16 14-06-41" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: [e.g. Linux / Windows / macOS]: Linux</li> <li>FastAPI Version [e.g. 0.3.0]: 0.60.1</li> </ul> <p dir="auto">To know the FastAPI version use:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python -c &quot;import fastapi; print(fastapi.__version__)&quot;"><pre class="notranslate">python -c <span class="pl-s"><span class="pl-pds">"</span>import fastapi; print(fastapi.__version__)<span class="pl-pds">"</span></span></pre></div> <ul dir="auto"> <li>Python version:</li> </ul> <p dir="auto">To know the Python version use:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python --version"><pre class="notranslate">python --version</pre></div> <h3 dir="auto">Additional context</h3>
0
<h2 dir="auto">Python version: 3.6.12<br> Airflow version: 2.0.1<br> Node: sandbox-hdp.hortonworks.com</h2> <p dir="auto">Traceback (most recent call last):<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app<br> response = self.full_dispatch_request()<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request<br> rv = self.handle_user_exception(e)<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception<br> reraise(exc_type, exc_value, tb)<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/<em>compat.py", line 39, in reraise<br> raise value<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request<br> rv = self.dispatch_request()<br> File "/root/airflow/venv/lib64/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request<br> return self.view_functions<a href="**req.view_args">rule.endpoint</a><br> File "/root/airflow/venv/lib64/python3.6/site-packages/airflow/www/auth.py", line 34, in decorated<br> return func(*args, **kwargs)<br> File "/root/airflow/venv/lib64/python3.6/site-packages/airflow/www/views.py", line 532, in index<br> user_permissions = current_app.appbuilder.sm.get_current_user_permissions()<br> File "/root/airflow/venv/lib64/python3.6/site-packages/airflow/www/security.py", line 229, in get_current_user_permissions<br> {(perm_view.permission.name, perm_view.view_menu.name) for perm_view in role.permissions}<br> File "/root/airflow/venv/lib64/python3.6/site-packages/airflow/www/security.py", line 229, in <br> {(perm_view.permission.name, perm_view.view_menu.name) for perm_view in role.permissions}<br> File "/root/airflow/venv/lib64/python3.6/site-packages/sqlalchemy/orm/attributes.py", line 453, in <strong>get</strong><br> return self.impl.get(state, dict</em>)<br> File "/root/airflow/venv/lib64/python3.6/site-packages/sqlalchemy/orm/attributes.py", line 897, in get<br> value = self.callable_(state, passive)<br> File "/root/airflow/venv/lib64/python3.6/site-packages/sqlalchemy/orm/strategies.py", line 831, in _load_for_state<br> % (orm_util.state_str(state), self.key)<br> <strong>sqlalchemy.orm.exc.DetachedInstanceError: Parent instance &lt;PermissionView at 0x7fef4bf3e4e0&gt; is not bound to a Session; lazy load operation of attribute 'view_menu' cannot proceed (Background on this error at: <a href="http://sqlalche.me/e/14/bhk3" rel="nofollow">http://sqlalche.me/e/14/bhk3</a>)</strong></p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.4.0</p> <h3 dir="auto">What happened</h3> <p dir="auto">From v2.4.0,I run dynamic task mapping example, got many warnings.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from airflow import DAG from airflow.decorators import task import pendulum as pl with DAG( dag_id='test-dynamic-tasks', description='测试动态task的注册告警', schedule=None, start_date=pl.today().add(days=-1), ) as dag: @task def sum_it(values): print(sum(values)) @task def add_one(i): return i + 1 added_values = add_one.expand(i = [1,2]) sum_it(added_values)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">airflow</span> <span class="pl-k">import</span> <span class="pl-v">DAG</span> <span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">decorators</span> <span class="pl-k">import</span> <span class="pl-s1">task</span> <span class="pl-k">import</span> <span class="pl-s1">pendulum</span> <span class="pl-k">as</span> <span class="pl-s1">pl</span> <span class="pl-k">with</span> <span class="pl-v">DAG</span>( <span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-s">'test-dynamic-tasks'</span>, <span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">'测试动态task的注册告警'</span>, <span class="pl-s1">schedule</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-s1">pl</span>.<span class="pl-en">today</span>().<span class="pl-en">add</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>), ) <span class="pl-k">as</span> <span class="pl-s1">dag</span>: <span class="pl-en">@<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">sum_it</span>(<span class="pl-s1">values</span>): <span class="pl-en">print</span>(<span class="pl-en">sum</span>(<span class="pl-s1">values</span>)) <span class="pl-en">@<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">add_one</span>(<span class="pl-s1">i</span>): <span class="pl-k">return</span> <span class="pl-s1">i</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-s1">added_values</span> <span class="pl-c1">=</span> <span class="pl-s1">add_one</span>.<span class="pl-en">expand</span>(<span class="pl-s1">i</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]) <span class="pl-en">sum_it</span>(<span class="pl-s1">added_values</span>)</pre></div> <p dir="auto">Warnings like this.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks"><pre class="notranslate"><code class="notranslate">[2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Mapped(_PythonDecoratedOperator): add_one&gt;, sum_it already registered for DAG: test-dynamic-tasks [2022-09-30, 09:11:29 CST] {taskmixin.py:205} WARNING - Dependency &lt;Task(_PythonDecoratedOperator): sum_it&gt;, add_one already registered for DAG: test-dynamic-tasks </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">How to reproduce</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating System</h3> <p dir="auto">CentOS Linux release 7.9.2009 (Core)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">airflow-code-editor 7.0.0<br> apache-airflow 2.4.0<br> apache-airflow-providers-celery 3.0.0<br> apache-airflow-providers-common-sql 1.1.0<br> apache-airflow-providers-ftp 3.1.0<br> apache-airflow-providers-http 4.0.0<br> apache-airflow-providers-imap 3.0.0<br> apache-airflow-providers-microsoft-psrp 2.0.0<br> apache-airflow-providers-microsoft-winrm 3.0.0<br> apache-airflow-providers-mysql 3.2.0<br> apache-airflow-providers-redis 3.0.0<br> apache-airflow-providers-samba 4.0.0<br> apache-airflow-providers-sftp 4.0.0<br> apache-airflow-providers-sqlite 3.2.0<br> apache-airflow-providers-ssh 3.1.0</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report **Current behavior** look at the plunkr: http://plnkr.co/edit/hB34VjxP98uz1iAYS7Dw?p=preview input Name is part of form, Name1, which is defined in a sub-component is not part of form **Expected/desired behavior** If I enter &quot;abc&quot; and &quot;xyz&quot;, heroForm.form.value should be {name: &quot;abc&quot;, name1: &quot;xyz&quot;} **Please tell us about your environment:** * **Angular version:** 2.0.0-rc.4 * **Browser:** [all] * **Language:** [ TypeScript X.X ] "><pre class="notranslate"><code class="notranslate">[x ] bug report **Current behavior** look at the plunkr: http://plnkr.co/edit/hB34VjxP98uz1iAYS7Dw?p=preview input Name is part of form, Name1, which is defined in a sub-component is not part of form **Expected/desired behavior** If I enter "abc" and "xyz", heroForm.form.value should be {name: "abc", name1: "xyz"} **Please tell us about your environment:** * **Angular version:** 2.0.0-rc.4 * **Browser:** [all] * **Language:** [ TypeScript X.X ] </code></pre></div>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Using the new form API, if a parent component has a <code class="notranslate">&lt;form&gt;</code> tag, and child components have <code class="notranslate">&lt;input&gt;</code> tags using the [(ngModel)] directive, then input components will not be registered with the parent form.</p> <p dir="auto"><strong>Expected/desired behavior</strong><br> If a parent component has a form containing child components with ngModel-bound input components in their template, then these input components should be registered with the parent form.</p> <p dir="auto"><strong>Reproduction of the problem</strong><br> See this plunkr: <a href="https://plnkr.co/edit/oKmTF7FgJM24L3ZvZ7F2?p=preview" rel="nofollow">https://plnkr.co/edit/oKmTF7FgJM24L3ZvZ7F2?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The parent form should not be valid if the child input is invalid</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> There should be a way to wrap form parts in components and embed them in a parent form. Imagine a tabbed-form with a single save button, or a form containing a list of items.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.3</li> <li><strong>Browser:</strong> [Chrome ]</li> <li><strong>Language:</strong> [TypeScript]</li> </ul>
1
<p dir="auto">Choose Text Fields page from the side menu</p> <p dir="auto">But the phone number field has the +1 in the text field and you can't delete it.</p>
<p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p> <h2 dir="auto">command</h2> <p dir="auto">flutter --no-color packages upgrade</p> <h2 dir="auto">exception</h2> <p dir="auto">YamlException: Error on line 57, column 4: While parsing a block collection, expected '-'.<br> fonts:<br> ^</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 Parser._parseBlockSequenceEntry (package:yaml/src/parser.dart:376:5) #1 Parser._stateMachine (package:yaml/src/parser.dart:77:16) #2 Parser.parse (package:yaml/src/parser.dart:47:19) #3 Loader._loadSequence (package:yaml/src/loader.dart:142:23) #4 Loader._loadNode (package:yaml/src/loader.dart:84:16) #5 Loader._loadMapping (package:yaml/src/loader.dart:165:19) #6 Loader._loadNode (package:yaml/src/loader.dart:86:16) #7 Loader._loadDocument (package:yaml/src/loader.dart:62:20) #8 Loader.load (package:yaml/src/loader.dart:54:20) #9 loadYamlDocument (package:yaml/yaml.dart:51:25) #10 loadYamlNode (package:yaml/yaml.dart:42:5) #11 loadYaml (package:yaml/yaml.dart:34:5) #12 FlutterManifest.createFromString (package:flutter_tools/src/flutter_manifest.dart:42:28) &lt;asynchronous suspension&gt; #13 FlutterManifest.createFromPath (package:flutter_tools/src/flutter_manifest.dart:36:12) &lt;asynchronous suspension&gt; #14 FlutterProject._readManifest (package:flutter_tools/src/project.dart:128:60) &lt;asynchronous suspension&gt; #15 FlutterProject.fromDirectory (package:flutter_tools/src/project.dart:42:44) &lt;asynchronous suspension&gt; #16 FlutterProject.fromPath (package:flutter_tools/src/project.dart:57:58) #17 PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:83:61) &lt;asynchronous suspension&gt; #18 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18) #19 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #20 _rootRunUnary (dart:async/zone.dart:1132:38) #21 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #22 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #24 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #25 Future._complete (dart:async/future_impl.dart:476:7) #26 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #27 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #28 _rootRun (dart:async/zone.dart:1124:13) #29 _CustomZone.run (dart:async/zone.dart:1021:19) #30 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #31 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #32 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #33 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #34 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">#0 Parser._parseBlockSequenceEntry (package:yaml/src/parser.dart:376:5) #1 Parser._stateMachine (package:yaml/src/parser.dart:77:16) #2 Parser.parse (package:yaml/src/parser.dart:47:19) #3 Loader._loadSequence (package:yaml/src/loader.dart:142:23) #4 Loader._loadNode (package:yaml/src/loader.dart:84:16) #5 Loader._loadMapping (package:yaml/src/loader.dart:165:19) #6 Loader._loadNode (package:yaml/src/loader.dart:86:16) #7 Loader._loadDocument (package:yaml/src/loader.dart:62:20) #8 Loader.load (package:yaml/src/loader.dart:54:20) #9 loadYamlDocument (package:yaml/yaml.dart:51:25) #10 loadYamlNode (package:yaml/yaml.dart:42:5) #11 loadYaml (package:yaml/yaml.dart:34:5) #12 FlutterManifest.createFromString (package:flutter_tools/src/flutter_manifest.dart:42:28) &lt;asynchronous suspension&gt; #13 FlutterManifest.createFromPath (package:flutter_tools/src/flutter_manifest.dart:36:12) &lt;asynchronous suspension&gt; #14 FlutterProject._readManifest (package:flutter_tools/src/project.dart:128:60) &lt;asynchronous suspension&gt; #15 FlutterProject.fromDirectory (package:flutter_tools/src/project.dart:42:44) &lt;asynchronous suspension&gt; #16 FlutterProject.fromPath (package:flutter_tools/src/project.dart:57:58) #17 PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:83:61) &lt;asynchronous suspension&gt; #18 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:372:18) #19 _asyncThenWrapperHelper.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:77:64) #20 _rootRunUnary (dart:async/zone.dart:1132:38) #21 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #22 _FutureListener.handleValue (dart:async/future_impl.dart:129:18) #23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45) #24 Future._propagateToListeners (dart:async/future_impl.dart:671:32) #25 Future._complete (dart:async/future_impl.dart:476:7) #26 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #27 _AsyncAwaitCompleter.complete.&lt;anonymous closure&gt; (dart:async/runtime/libasync_patch.dart:33:20) #28 _rootRun (dart:async/zone.dart:1124:13) #29 _CustomZone.run (dart:async/zone.dart:1021:19) #30 _CustomZone.bindCallback.&lt;anonymous closure&gt; (dart:async/zone.dart:947:23) #31 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #32 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #33 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13) #34 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5) </code></pre></div> <h2 dir="auto">flutter doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.376], locale en-US) • Flutter version 0.9.4 at D:\flutter • Framework revision f37c235c32 (6 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [!] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at D:/Studio/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:/Studio/Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) ✗ Android license status unknown. [✓] Android Studio (version 2.3) • Android Studio at C:\Program Files\Android\Android Studio2.3 ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 30.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.376], locale en-US) • Flutter version 0.9.4 at D:\flutter • Framework revision f37c235c32 (6 weeks ago), 2018-09-25 17:45:40 -0400 • Engine revision 74625aed32 • Dart version 2.1.0-dev.5.0.flutter-a2eb050044 [!] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at D:/Studio/Sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = D:/Studio/Sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) ✗ Android license status unknown. [✓] Android Studio (version 2.3) • Android Studio at C:\Program Files\Android\Android Studio2.3 ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 30.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 1 category. </code></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.5</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">官方网站只是简单的说了dubbo集成skywalking,实际有很多细节,skywalking5.x和6.x的配置有很多差异的地方,希望能够稍微详细点说明。</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7</li> <li>Dubbo-Admin version: 最新版本</li> <li>Operating System version: 10.15.5</li> <li>Java version: OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09)<br> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.252-b09, mixed mode)</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li> <p dir="auto">创建一个接口与一个方法,方法入参为一个对象(内部有引用自身的范型类型),如下:<br> `class Person implements Serializable {</p> <p dir="auto">private List persons;</p> <p dir="auto">//get/set<br> }<br> interface GreetingService {</p> <p dir="auto">Person testPerson(Person person);<br> }`</p> </li> <li> <p dir="auto">使用dubbo-admin,进入服务测试</p> </li> <li> <p dir="auto">会在解析persons属性时导致java.lang.StackOverflowError</p> </li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">输出正确的结果</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">在解析List范型类型时,每次会从ServiceDefinition中获取已经存在的Person,而Person又包含有List属性,从而导致java.lang.StackOverflowError异常</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.StackOverflowError at java.util.regex.Pattern$CharProperty.match(Pattern.java:3789) at java.util.regex.Pattern$Curly.match0(Pattern.java:4264) at java.util.regex.Pattern$Curly.match(Pattern.java:4248) at java.util.regex.Pattern$Slice.match(Pattern.java:3986) at java.util.regex.Pattern$Begin.match(Pattern.java:3539) at java.util.regex.Matcher.match(Matcher.java:1270) at java.util.regex.Matcher.matches(Matcher.java:604) at org.apache.dubbo.metadata.ServiceTestUtil.isMap(ServiceTestUtil.java:97) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:151) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:158) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:145) at org.apache.dubbo.metadata.ServiceTestUtil.generateCollectionType(ServiceTestUtil.java:188) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:156) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:158) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:145) at org.apache.dubbo.metadata.ServiceTestUtil.generateCollectionType(ServiceTestUtil.java:188) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:156) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89)"><pre class="notranslate"><code class="notranslate">java.lang.StackOverflowError at java.util.regex.Pattern$CharProperty.match(Pattern.java:3789) at java.util.regex.Pattern$Curly.match0(Pattern.java:4264) at java.util.regex.Pattern$Curly.match(Pattern.java:4248) at java.util.regex.Pattern$Slice.match(Pattern.java:3986) at java.util.regex.Pattern$Begin.match(Pattern.java:3539) at java.util.regex.Matcher.match(Matcher.java:1270) at java.util.regex.Matcher.matches(Matcher.java:604) at org.apache.dubbo.metadata.ServiceTestUtil.isMap(ServiceTestUtil.java:97) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:151) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:158) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:145) at org.apache.dubbo.metadata.ServiceTestUtil.generateCollectionType(ServiceTestUtil.java:188) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:156) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:158) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:145) at org.apache.dubbo.metadata.ServiceTestUtil.generateCollectionType(ServiceTestUtil.java:188) at org.apache.dubbo.metadata.ServiceTestUtil.generateType(ServiceTestUtil.java:156) at org.apache.dubbo.metadata.ServiceTestUtil.generateEnclosedType(ServiceTestUtil.java:200) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:82) at org.apache.dubbo.metadata.ServiceTestUtil.generateComplexType(ServiceTestUtil.java:89) </code></pre></div>
0
<p dir="auto">I'm trying to build Windows Terminal from command line using VS 2017 on Windows 10 x64 insider, build 18362.86. I kept getting the error below even after installing all the VS 2017 components that have something to do with C++ and .Net. From the error message it seems the build surprisingly involves VS 2019 (which I have installed as well). My expectation is VS 2019 should not be involved as I use VS 2017 command line. I then decided to install all the components that have something to do with C++ and .Net for VS 2019. I still get the same error message.</p> <p dir="auto">My steps for building:</p> <ol dir="auto"> <li>Clone the repo from github</li> <li>Do <code class="notranslate">git submodule update --init --recursive</code></li> <li>Do <code class="notranslate">.\tools\razzle.cmd</code></li> <li>Do <code class="notranslate">bcz</code></li> </ol> <p dir="auto">What am I missing? The error message is as below:<br> <code class="notranslate">C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v150\Microsoft.CppCommon.targets(2128,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk. [c:\Users\Tembo\Desktop\qnd\cpp\Terminal10\src\cascadia\TerminalSetting\TerminalSettings.vcxproj]</code></p>
<h1 dir="auto">Tools needed</h1> <ol dir="auto"> <li>VS2017 or higher with the following packages ("Workloads" tab in Visual Studio Installer) :<br> 1.1 <code class="notranslate">Desktop Development with C++</code>.<br> 1.2 <code class="notranslate">Universal Windows Platform Development</code>.<br> 1.3 <code class="notranslate">Windows 10 SDK (10.0.18362.0)</code>.<br> 1.4 If you're running VS2019, you'll also need to install either <code class="notranslate">v141 Toolset</code> or <code class="notranslate">v142 Toolset</code>.</li> <li>Git command-line tool.</li> <li>Nuget.exe (Needed in build step 3, can be found in <code class="notranslate">Terminal/dep/nuget</code>).</li> </ol> <h1 dir="auto">Build Steps</h1> <ol dir="auto"> <li><code class="notranslate">git clone</code> this repository, not download .zip file.</li> <li>Run <code class="notranslate">git submodule update --init --recursive</code> in Terminal folder.</li> <li>Run <code class="notranslate">nuget restore OpenConsole.sln</code> (This step can be skipped, then Visual Studio should warn you that there are packages to restore - then restore).</li> <li>Open <code class="notranslate">OpenConsole.sln</code> with Visual Studio.</li> <li>Build whole solution(F7) with your platform(<code class="notranslate">x86</code>/<code class="notranslate">x64</code>) and <code class="notranslate">release</code> mode, you may need to fix some build errors:<br> 5.1 C2220 and code page warnings: All errors and warnings are encoding error of unicode characters, a helpful workaround is to modify corresponding file encoding to <code class="notranslate">UTF-8 BOM</code> (Notepad++ is recommended).<br> 5.2 Errors in <code class="notranslate">src/tools/vtpipeterm/main.cpp</code>: In addtion, you should also add <code class="notranslate">u8</code> prefix before string literals with unicode characters, e.g. line <code class="notranslate">395</code>, <code class="notranslate">398</code>, <code class="notranslate">401</code> and <code class="notranslate">404</code>.</li> </ol> <h2 dir="auto">Workaround</h2> <p dir="auto">Try build with <a href="https://github.com/microsoft/Terminal/pull/458" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/458/hovercard">PR 458</a> or <a href="https://github.com/microsoft/Terminal/pull/549" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/549/hovercard">PR 549</a>, both of them can build successfully.</p> <h1 dir="auto">Installation</h1> <p dir="auto">Unfortunately, the generated .appx doesn't have any certificates, so it cannot be installed via double-click or powershell, the only way to install is to deploy the solution in VS.</p> <ol dir="auto"> <li>Open <code class="notranslate">Windows Settings</code> - <code class="notranslate">Upgrade &amp; Security</code> - <code class="notranslate">For Developers</code>, switch <code class="notranslate">App sources</code> to <code class="notranslate">Developer mode</code>.</li> <li>Right click on <code class="notranslate">CascadiaPackage</code> project (under <code class="notranslate">Solution/Terminal</code>), select <code class="notranslate">Deploy Solution</code> to install, then you'll find <code class="notranslate">Windows Terminal (Preview)</code> in start menu.</li> </ol> <h1 dir="auto">Settings</h1> <p dir="auto">After open the terminal, you can't see any menu buttons.</p> <p dir="auto">Just press <code class="notranslate">Ctrl + T</code> to open a new tab, and you'll see a drop-down button in the tab bar.</p> <p dir="auto">Click it and select <code class="notranslate">Settings</code>, then you can modify the configuration via opened <code class="notranslate">profiles.json</code>.</p> <h2 dir="auto">Add WSL</h2> <ol dir="auto"> <li>Create a new session in <code class="notranslate">profiles</code>, with content copied from <code class="notranslate">profiles/cmd</code>.</li> <li>Give it a new <code class="notranslate">guid</code>.</li> <li>Give it a new <code class="notranslate">name</code>, such as <code class="notranslate">WSL</code>.</li> <li>Specify its <code class="notranslate">commandline</code> to <code class="notranslate">wsl.exe</code>.</li> </ol> <p dir="auto">Then you'll find <code class="notranslate">WSL</code> in the drop-down menu of tab bar.</p> <p dir="auto">Here're sample codes:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;guid&quot;: &quot;{09dc5eef-6840-4050-ae69-21e55e6a2e62}&quot;, &quot;name&quot;: &quot;WSL&quot;, &quot;colorscheme&quot;: &quot;Campbell&quot;, &quot;historySize&quot;: 9001, &quot;snapOnInput&quot;: true, &quot;cursorColor&quot;: &quot;#FFFFFF&quot;, &quot;cursorShape&quot;: &quot;bar&quot;, &quot;commandline&quot;: &quot;wsl.exe&quot;, &quot;fontFace&quot;: &quot;Consolas&quot;, &quot;fontSize&quot;: 12, &quot;acrylicOpacity&quot;: 0.75, &quot;useAcrylic&quot;: true, &quot;closeOnExit&quot;: false, &quot;padding&quot;: &quot;0, 0, 0, 0&quot; }"><pre class="notranslate">{ <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{09dc5eef-6840-4050-ae69-21e55e6a2e62}<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>WSL<span class="pl-pds">"</span></span>, <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>Campbell<span class="pl-pds">"</span></span>, <span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>, <span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>, <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>, <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>wsl.exe<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Consolas<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>, <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">0.75</span>, <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>0, 0, 0, 0<span class="pl-pds">"</span></span> }</pre></div>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Enhance FancyZones to support seamless multi-monitor snap capability, equivalent to what Windows 10's built-in Snap function supports.</p> <h1 dir="auto">Description</h1> <p dir="auto">Currently, Win10's built-in Snap feature, although extremely limited in configurability, allows windows to be freely snapped between multiple monitors. FancyZones greatly enhances configurability, but reduces functionality by presently only allowing apps to be snapped around the monitor they are currently positioned on. (This is most evident if the FancyZones option <code class="notranslate">Override Windows Snap hotkeys (win+arrow) to move windows between zones</code> has been enabled.)</p> <p dir="auto">While It is possible to manually drag windows to other monitors where they can then be snapped, this undermines Snap's inherent efficiency.</p> <p dir="auto">It would be greatly beneficial to enhance FancyZones enabling it reproduce the multi-monitor snapping ability provided by Windows 10 out-of-the box, increasing efficiency vs current state and improving seamless operation vs Windows 10 alone.</p>
<p dir="auto">The new multi-monitor zone editor works like a charm, but it's not possible to use the win+arrow to move a window from one screen to another. When using the snap hotkeys, you are restricted to the monitor your window is currently on.<br> Would be nice if this followed the same convention as the regular snapping on multi-monitor setups, and would let you move through all zones on one monitor and then on to the zones of the second monitor.</p>
1
<p dir="auto">There is no easy way to retrieve last termination resource / status for a pod except kubectl get pods -o option.</p>
<p dir="auto"><strong>Problem</strong><br> When a container is killed and restarted because, for example, it hit memory limits, the <code class="notranslate">kubectl describe pod</code> output only shows an increasing <code class="notranslate">Restart Count</code> but no reason for why the container was killed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[12:54:41] $ ./cluster/kubectl.sh describe pod simmemleak-hra99 Name: simmemleak-hra99 Namespace: default Image(s): saadali/simmemleak Node: kubernetes-minion-tf0f/10.240.216.66 Labels: name=simmemleak Status: Running Reason: Message: IP: 10.244.2.75 Replication Controllers: simmemleak (1/1 replicas created) Containers: simmemleak: Image: saadali/simmemleak Limits: cpu: 100m memory: 50Mi State: Running Started: Tue, 07 Jul 2015 12:54:41 -0700 Ready: False Restart Count: 5 Conditions: Type Status Ready False Events: FirstSeen LastSeen Count From SubobjectPath Reason Message Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-minion-tf0f Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD pulled Pod container image &quot;gcr.io/google_containers/pause:0.8.0&quot; already present on machine Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD created Created with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD started Started with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a ..."><pre class="notranslate"><code class="notranslate">[12:54:41] $ ./cluster/kubectl.sh describe pod simmemleak-hra99 Name: simmemleak-hra99 Namespace: default Image(s): saadali/simmemleak Node: kubernetes-minion-tf0f/10.240.216.66 Labels: name=simmemleak Status: Running Reason: Message: IP: 10.244.2.75 Replication Controllers: simmemleak (1/1 replicas created) Containers: simmemleak: Image: saadali/simmemleak Limits: cpu: 100m memory: 50Mi State: Running Started: Tue, 07 Jul 2015 12:54:41 -0700 Ready: False Restart Count: 5 Conditions: Type Status Ready False Events: FirstSeen LastSeen Count From SubobjectPath Reason Message Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-minion-tf0f Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD pulled Pod container image "gcr.io/google_containers/pause:0.8.0" already present on machine Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD created Created with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} implicitly required container POD started Started with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-minion-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a ... </code></pre></div> <p dir="auto">We can find the reason by inspecting the pod object (<code class="notranslate">lastState</code> shows as <code class="notranslate">terminated</code> with <code class="notranslate">reason: OOM Killed</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[12:55:13] clusterScaleDoc ~/go/src/github.com/GoogleCloudPlatform/kubernetes $ ./cluster/kubectl.sh get pods simmemleak-hra99 -o yaml apiVersion: v1 kind: Pod metadata: annotations: kubernetes.io/created-by: '{&quot;kind&quot;:&quot;SerializedReference&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;reference&quot;:{&quot;kind&quot;:&quot;ReplicationController&quot;,&quot;namespace&quot;:&quot;default&quot;,&quot;name&quot;:&quot;simmemleak&quot;,&quot;uid&quot;:&quot;e3eca54a-24e1-11e5-b668-42010af06b29&quot;,&quot;apiVersion&quot;:&quot;v1&quot;,&quot;resourceVersion&quot;:&quot;409344&quot;}}' creationTimestamp: 2015-07-07T19:53:51Z generateName: simmemleak- labels: name: simmemleak name: simmemleak-hra99 namespace: default resourceVersion: &quot;409448&quot; selfLink: /api/v1/namespaces/default/pods/simmemleak-hra99 uid: e3f09bb6-24e1-11e5-b668-42010af06b29 spec: containers: - image: saadali/simmemleak imagePullPolicy: IfNotPresent name: simmemleak resources: limits: cpu: 100m memory: 50Mi terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-dghxl readOnly: true dnsPolicy: ClusterFirst nodeName: kubernetes-minion-tf0f restartPolicy: Always serviceAccountName: default volumes: - name: default-token-dghxl secret: secretName: default-token-dghxl status: conditions: - status: &quot;False&quot; type: Ready containerStatuses: - containerID: docker://cabb33b37eed421ab7fb4ee35e15ae58f58b39a567c0702877460763d891c2d5 image: saadali/simmemleak imageID: docker://8f1003e60b90bffb090ee08da80da2646ff5effbd9ae735797bbe408701665d1 lastState: terminated: containerID: docker://12d22d35413aef641369d5fc9cf5f367a26017dc2d3c6817ed6d4fdcf8d2120a exitCode: 137 finishedAt: 2015-07-07T19:55:02Z reason: OOM Killed startedAt: 2015-07-07T19:55:02Z name: simmemleak ready: false restartCount: 8 state: running: startedAt: 2015-07-07T19:55:12Z hostIP: 10.240.216.66 phase: Running podIP: 10.244.2.75 startTime: 2015-07-07T19:53:51Z"><pre class="notranslate"><code class="notranslate">[12:55:13] clusterScaleDoc ~/go/src/github.com/GoogleCloudPlatform/kubernetes $ ./cluster/kubectl.sh get pods simmemleak-hra99 -o yaml apiVersion: v1 kind: Pod metadata: annotations: kubernetes.io/created-by: '{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicationController","namespace":"default","name":"simmemleak","uid":"e3eca54a-24e1-11e5-b668-42010af06b29","apiVersion":"v1","resourceVersion":"409344"}}' creationTimestamp: 2015-07-07T19:53:51Z generateName: simmemleak- labels: name: simmemleak name: simmemleak-hra99 namespace: default resourceVersion: "409448" selfLink: /api/v1/namespaces/default/pods/simmemleak-hra99 uid: e3f09bb6-24e1-11e5-b668-42010af06b29 spec: containers: - image: saadali/simmemleak imagePullPolicy: IfNotPresent name: simmemleak resources: limits: cpu: 100m memory: 50Mi terminationMessagePath: /dev/termination-log volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-dghxl readOnly: true dnsPolicy: ClusterFirst nodeName: kubernetes-minion-tf0f restartPolicy: Always serviceAccountName: default volumes: - name: default-token-dghxl secret: secretName: default-token-dghxl status: conditions: - status: "False" type: Ready containerStatuses: - containerID: docker://cabb33b37eed421ab7fb4ee35e15ae58f58b39a567c0702877460763d891c2d5 image: saadali/simmemleak imageID: docker://8f1003e60b90bffb090ee08da80da2646ff5effbd9ae735797bbe408701665d1 lastState: terminated: containerID: docker://12d22d35413aef641369d5fc9cf5f367a26017dc2d3c6817ed6d4fdcf8d2120a exitCode: 137 finishedAt: 2015-07-07T19:55:02Z reason: OOM Killed startedAt: 2015-07-07T19:55:02Z name: simmemleak ready: false restartCount: 8 state: running: startedAt: 2015-07-07T19:55:12Z hostIP: 10.240.216.66 phase: Running podIP: 10.244.2.75 startTime: 2015-07-07T19:53:51Z </code></pre></div> <p dir="auto"><strong>Suggested Solution</strong><br> Modify <code class="notranslate">kubectl describe pod</code> to print <code class="notranslate">lastState</code> termination reason, if available.</p>
1
<p dir="auto">RFC 6265[1] allows cookie values to be double-quoted[2]. However, the current sanitization code strips the double quotes out of a double-quoted value (i.e., a value beginning with a double quote and ending with a double quote). Ironically, the sanitization code double quotes a value if it begins or ends with a space or comma. The RFC grammar specification allowing the surrounding double quotes is also included in the comments of the sanitizeCookieValue() function.</p> <p dir="auto">The inability to double-quote a cookie value is preventing me from duplicating the behavior of a legacy Java system I am replacing.</p> <p dir="auto">There was some tangentially related conversation for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51286407" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/7243" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/7243/hovercard" href="https://github.com/golang/go/issues/7243">#7243</a>, but that conversation did not address this issue specifically.</p> <p dir="auto">[1] <a href="http://tools.ietf.org/html/rfc6265" rel="nofollow">http://tools.ietf.org/html/rfc6265</a><br> [2] cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )</p>
<pre class="notranslate">What steps will reproduce the problem? 1.build this program with gomake 2.run leak4 m /tmp/x (server) 3.run leak4 e /tmp/x (client) 4. Observe that each time you run 'leak4 e', the 'leak4 m' grows by about 1.5m. It will continue to grow until the OOM killer is invoked. What is the expected output? leak4 m should stabilize at some reasonable size (although 5M for something this simply is not necessarily reasonable) What do you see instead? leak4 grows without bound What is your $GOOS? $GOARCH? linux/i386 Which revision are you using? (hg identify) 0702e278ff73+ tip Please provide any additional information below. rminnich@vmatic:~/clustermatic/goproc$ ./leak4 e /tmp/x rminnich@vmatic:~/clustermatic/goproc$ ps axl | grep leak4 0 1000 2950 30465 20 0 4568 1748 signal T pts/0 0:00 vi leak4.go 0 1000 3036 30657 20 0 1996 720 wait S+ pts/1 0:00 strace -o mx -f ./leak4 m /tmp/x 0 1000 3037 3036 20 0 5660 3584 futex_ Sl+ pts/1 0:00 ./leak4 m /tmp/x 0 1000 3042 30465 20 0 3324 816 pipe_w S+ pts/0 0:00 grep --color=auto leak4 rminnich@vmatic:~/clustermatic/goproc$ ./leak4 e /tmp/x rminnich@vmatic:~/clustermatic/goproc$ ps axl | grep leak4 0 1000 2950 30465 20 0 4568 1748 signal T pts/0 0:00 vi leak4.go 0 1000 3036 30657 20 0 1996 720 wait S+ pts/1 0:00 strace -o mx -f ./leak4 m /tmp/x 0 1000 3037 3036 20 0 7780 5680 futex_ Sl+ pts/1 0:00 ./leak4 m /tmp/x 0 1000 3047 30465 20 0 3324 816 pipe_w S+ pts/0 0:00 grep --color=auto leak4 rminnich@vmatic:~/clustermatic/goproc$</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/1091/0/leak4.go" rel="nofollow">leak4.go</a> (537 bytes)</li> </ol>
0
<p dir="auto"><code class="notranslate">[email protected]</code> uses <code class="notranslate">babel.config.js</code> for global config. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295683068" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/7358" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/7358/hovercard" href="https://github.com/babel/babel/pull/7358">babel/babel#7358</a>.</p> <p dir="auto"><code class="notranslate">[email protected]</code> uses <code class="notranslate">.babelrc</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Using external babel configuration &gt; Location: &quot;/app/.babelrc&quot;"><pre class="notranslate"><code class="notranslate">&gt; Using external babel configuration &gt; Location: "/app/.babelrc" </code></pre></div> <p dir="auto">I assume this is because <code class="notranslate">[email protected]</code> uses <code class="notranslate">[email protected]</code> and not the latest yet.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul>
<p dir="auto">I'm talking about <a href="https://github.com/zeit/next.js/tree/master/examples/with-styled-jsx-postcss">this</a>.</p> <p dir="auto">To reproduce just follow the steps on the readme. When running <code class="notranslate">npm run dev</code> you'll get an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ERROR Failed to compile with 1 errors error in ./pages?entry Module build failed: TypeError: unknown: Duplicate declaration &quot;_JSXStyle&quot; 1 | import _JSXStyle from 'styled-jsx/style'; 2 | import React from 'react'; &gt; 3 | import _JSXStyle from 'styled-jsx/style'; | ^ 4 | export default (function () { 5 | return React.createElement( 6 | 'div', at File.buildCodeFrameError (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-core/lib/transformation/file/index.js:431:15) at Scope.checkBlockScopedCollisions (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:398:27) at Scope.registerBinding (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:592:16) at Scope.registerDeclaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:516:14) at Object.Declaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:176:36) at NodePath._call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:105:12) at TraversalContext.visitQueue (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitMultiple (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:103:17) @ multi ./~/next/dist/client/webpack-hot-middleware-client ./pages?entry &gt; Ready on http://localhost:3000 "><pre class="notranslate"><code class="notranslate"> ERROR Failed to compile with 1 errors error in ./pages?entry Module build failed: TypeError: unknown: Duplicate declaration "_JSXStyle" 1 | import _JSXStyle from 'styled-jsx/style'; 2 | import React from 'react'; &gt; 3 | import _JSXStyle from 'styled-jsx/style'; | ^ 4 | export default (function () { 5 | return React.createElement( 6 | 'div', at File.buildCodeFrameError (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-core/lib/transformation/file/index.js:431:15) at Scope.checkBlockScopedCollisions (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:398:27) at Scope.registerBinding (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:592:16) at Scope.registerDeclaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:516:14) at Object.Declaration (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/scope/index.js:176:36) at NodePath._call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:76:18) at NodePath.call (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:48:17) at NodePath.visit (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/path/context.js:105:12) at TraversalContext.visitQueue (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:150:16) at TraversalContext.visitMultiple (/Users/Joonas/test/with-styled-jsx-postcss/node_modules/babel-traverse/lib/context.js:103:17) @ multi ./~/next/dist/client/webpack-hot-middleware-client ./pages?entry &gt; Ready on http://localhost:3000 </code></pre></div> <p dir="auto">Everything works well with <code class="notranslate">beta.20</code> but after that nope.</p>
0
<p dir="auto">glide:4.0.0-SNAPSHOT<br> It's neither device nor Android version specific. I can't reproduce it, but it doesn't seem rare when looking at crash numbers.<br> In this case it happened when returning from Activity A to Activity B and Activity B contains the animation. It possible that the ImageViews visibility state is changed shortly after returning to Activity B.</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public void setState(State state) { mState = state; if (state == State.WORKING) { setVisibility(VISIBLE); mIntroContainer.setVisibility(GONE); mEmptyContainer.setVisibility(GONE); mWorkingContainer.setVisibility(VISIBLE); // android:id=&quot;@+id/working_overlay&quot; Glide.with(getContext()) .load(COFFEE_ANIM_ASSET) .apply(RequestOptions.formatOf(DecodeFormat.PREFER_RGB_565)) .apply(RequestOptions.placeholderOf(R.drawable.sdmanimation)) .into(mWorkingAnimation); // android:id=&quot;@+id/iv_working_animation&quot; } else { Glide.with(getContext()).clear(mWorkingAnimation); mWorkingContainer.setVisibility(GONE); if (state == State.INTRO) { setVisibility(VISIBLE); mEmptyContainer.setVisibility(GONE); mIntroContainer.setVisibility(VISIBLE); } else if (state == State.NORESULTS) { setVisibility(VISIBLE); mIntroContainer.setVisibility(GONE); mEmptyContainer.setVisibility(VISIBLE); } else if (state == State.GONE) { setVisibility(GONE); mIntroContainer.setVisibility(GONE); mEmptyContainer.setVisibility(GONE); } } }"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">setState</span>(<span class="pl-smi">State</span> <span class="pl-s1">state</span>) { <span class="pl-s1">mState</span> = <span class="pl-s1">state</span>; <span class="pl-k">if</span> (<span class="pl-s1">state</span> == <span class="pl-smi">State</span>.<span class="pl-c1">WORKING</span>) { <span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); <span class="pl-s1">mIntroContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mEmptyContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mWorkingContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); <span class="pl-c">// android:id="@+id/working_overlay"</span> <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getContext</span>()) .<span class="pl-en">load</span>(<span class="pl-c1">COFFEE_ANIM_ASSET</span>) .<span class="pl-en">apply</span>(<span class="pl-smi">RequestOptions</span>.<span class="pl-en">formatOf</span>(<span class="pl-smi">DecodeFormat</span>.<span class="pl-c1">PREFER_RGB_565</span>)) .<span class="pl-en">apply</span>(<span class="pl-smi">RequestOptions</span>.<span class="pl-en">placeholderOf</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">sdmanimation</span>)) .<span class="pl-en">into</span>(<span class="pl-s1">mWorkingAnimation</span>); <span class="pl-c">// android:id="@+id/iv_working_animation"</span> } <span class="pl-k">else</span> { <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getContext</span>()).<span class="pl-en">clear</span>(<span class="pl-s1">mWorkingAnimation</span>); <span class="pl-s1">mWorkingContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-k">if</span> (<span class="pl-s1">state</span> == <span class="pl-smi">State</span>.<span class="pl-c1">INTRO</span>) { <span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); <span class="pl-s1">mEmptyContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mIntroContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); } <span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-s1">state</span> == <span class="pl-smi">State</span>.<span class="pl-c1">NORESULTS</span>) { <span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); <span class="pl-s1">mIntroContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mEmptyContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">VISIBLE</span>); } <span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-s1">state</span> == <span class="pl-smi">State</span>.<span class="pl-c1">GONE</span>) { <span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mIntroContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); <span class="pl-s1">mEmptyContainer</span>.<span class="pl-en">setVisibility</span>(<span class="pl-c1">GONE</span>); } } }</pre></div> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;LinearLayout android:id=&quot;@+id/working_overlay&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; android:layout_gravity=&quot;center&quot; android:gravity=&quot;center&quot; android:orientation=&quot;vertical&quot; android:padding=&quot;16dp&quot; android:visibility=&quot;gone&quot; tools:visibility=&quot;visible&quot;&gt; &lt;ImageView android:id=&quot;@+id/iv_working_animation&quot; android:layout_width=&quot;200dp&quot; android:layout_height=&quot;200dp&quot; android:padding=&quot;5dp&quot; android:src=&quot;@drawable/sdmanimation&quot;/&gt; &lt;/LinearLayout&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">LinearLayout</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/working_overlay<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">orientation</span>=<span class="pl-s"><span class="pl-pds">"</span>vertical<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">padding</span>=<span class="pl-s"><span class="pl-pds">"</span>16dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">visibility</span>=<span class="pl-s"><span class="pl-pds">"</span>gone<span class="pl-pds">"</span></span> <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">visibility</span>=<span class="pl-s"><span class="pl-pds">"</span>visible<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">ImageView</span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/iv_working_animation<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>200dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>200dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">padding</span>=<span class="pl-s"><span class="pl-pds">"</span>5dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@drawable/sdmanimation<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">LinearLayout</span>&gt;</pre></div> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Caused by: java.lang.NullPointerException: Attempt to read from field 'int com.bumptech.glide.gifdecoder.GifHeader.frameCount' on a null object reference at com.bumptech.glide.gifdecoder.GifDecoder.getFrameCount(GifDecoder.java:262) at com.bumptech.glide.load.resource.gif.GifFrameLoader.getFrameCount(GifFrameLoader.java:139) at com.bumptech.glide.load.resource.gif.GifDrawable.startRunning(GifDrawable.java:166) at com.bumptech.glide.load.resource.gif.GifDrawable.start(GifDrawable.java:154) at com.bumptech.glide.request.target.ImageViewTarget.onStart(ImageViewTarget.java:102) at com.bumptech.glide.manager.TargetTracker.onStart(TargetTracker.java:31) at com.bumptech.glide.RequestManager.onStart(RequestManager.java:245) at com.bumptech.glide.manager.ActivityFragmentLifecycle.onStart(ActivityFragmentLifecycle.java:51) at com.bumptech.glide.manager.SupportRequestManagerFragment.onStart(SupportRequestManagerFragment.java:175) at android.support.v4.app.Fragment.performStart(Fragment.java:1986) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1102) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1230) at android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2047) at android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:176) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:553) at eu.thedarken.sdm.SDMServiceActivity.onStart(SDMServiceActivity.java:79) at eu.thedarken.sdm.SDMMainActivity.onStart(SDMMainActivity.java:155) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236) at android.app.Activity.performStart(Activity.java:6006) at android.app.Activity.performRestart(Activity.java:6063) at android.app.Activity.performResume(Activity.java:6068) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) "><pre class="notranslate"><span class="pl-en">Caused</span> <span class="pl-pds">by</span>: <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-v">NullPointerException</span>: <span class="pl-v">Attempt</span> <span class="pl-en">to</span> <span class="pl-en">read</span> <span class="pl-en">from</span> <span class="pl-en">field</span> <span class="pl-s">'int com.bumptech.glide.gifdecoder.GifHeader.frameCount'</span> <span class="pl-en">on</span> <span class="pl-en">a</span> <span class="pl-en">null</span> <span class="pl-en">object</span> <span class="pl-en">reference</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">gifdecoder</span><span class="pl-kos">.</span><span class="pl-en">GifDecoder</span><span class="pl-kos">.</span><span class="pl-en">getFrameCount</span><span class="pl-kos">(</span><span class="pl-v">GifDecoder</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:262</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">resource</span><span class="pl-kos">.</span><span class="pl-en">gif</span><span class="pl-kos">.</span><span class="pl-en">GifFrameLoader</span><span class="pl-kos">.</span><span class="pl-en">getFrameCount</span><span class="pl-kos">(</span><span class="pl-v">GifFrameLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:139</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">resource</span><span class="pl-kos">.</span><span class="pl-en">gif</span><span class="pl-kos">.</span><span class="pl-en">GifDrawable</span><span class="pl-kos">.</span><span class="pl-en">startRunning</span><span class="pl-kos">(</span><span class="pl-v">GifDrawable</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:166</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">resource</span><span class="pl-kos">.</span><span class="pl-en">gif</span><span class="pl-kos">.</span><span class="pl-en">GifDrawable</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-v">GifDrawable</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:154</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">.</span><span class="pl-en">target</span><span class="pl-kos">.</span><span class="pl-en">ImageViewTarget</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">ImageViewTarget</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:102</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">manager</span><span class="pl-kos">.</span><span class="pl-en">TargetTracker</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">TargetTracker</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:31</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">RequestManager</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">RequestManager</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:245</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">manager</span><span class="pl-kos">.</span><span class="pl-en">ActivityFragmentLifecycle</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">ActivityFragmentLifecycle</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:51</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">manager</span><span class="pl-kos">.</span><span class="pl-en">SupportRequestManagerFragment</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">SupportRequestManagerFragment</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:175</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Fragment</span><span class="pl-kos">.</span><span class="pl-en">performStart</span><span class="pl-kos">(</span><span class="pl-v">Fragment</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1986</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentManagerImpl</span><span class="pl-kos">.</span><span class="pl-en">moveToState</span><span class="pl-kos">(</span><span class="pl-v">FragmentManager</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1102</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentManagerImpl</span><span class="pl-kos">.</span><span class="pl-en">moveToState</span><span class="pl-kos">(</span><span class="pl-v">FragmentManager</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1248</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentManagerImpl</span><span class="pl-kos">.</span><span class="pl-en">moveToState</span><span class="pl-kos">(</span><span class="pl-v">FragmentManager</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1230</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentManagerImpl</span><span class="pl-kos">.</span><span class="pl-en">dispatchStart</span><span class="pl-kos">(</span><span class="pl-v">FragmentManager</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:2047</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentController</span><span class="pl-kos">.</span><span class="pl-en">dispatchStart</span><span class="pl-kos">(</span><span class="pl-v">FragmentController</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:176</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">support</span><span class="pl-kos">.</span><span class="pl-en">v4</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">FragmentActivity</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">FragmentActivity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:553</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">eu</span><span class="pl-kos">.</span><span class="pl-en">thedarken</span><span class="pl-kos">.</span><span class="pl-en">sdm</span><span class="pl-kos">.</span><span class="pl-en">SDMServiceActivity</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">SDMServiceActivity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:79</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">eu</span><span class="pl-kos">.</span><span class="pl-en">thedarken</span><span class="pl-kos">.</span><span class="pl-en">sdm</span><span class="pl-kos">.</span><span class="pl-en">SDMMainActivity</span><span class="pl-kos">.</span><span class="pl-en">onStart</span><span class="pl-kos">(</span><span class="pl-v">SDMMainActivity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:155</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Instrumentation</span><span class="pl-kos">.</span><span class="pl-en">callActivityOnStart</span><span class="pl-kos">(</span><span class="pl-v">Instrumentation</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1236</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Activity</span><span class="pl-kos">.</span><span class="pl-en">performStart</span><span class="pl-kos">(</span><span class="pl-v">Activity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:6006</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Activity</span><span class="pl-kos">.</span><span class="pl-en">performRestart</span><span class="pl-kos">(</span><span class="pl-v">Activity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:6063</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">Activity</span><span class="pl-kos">.</span><span class="pl-en">performResume</span><span class="pl-kos">(</span><span class="pl-v">Activity</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:6068</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">performResumeActivity</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:2975</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">handleResumeActivity</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:3017</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span>$H<span class="pl-kos">.</span><span class="pl-en">handleMessage</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1347</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Handler</span><span class="pl-kos">.</span><span class="pl-en">dispatchMessage</span><span class="pl-kos">(</span><span class="pl-v">Handler</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:102</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Looper</span><span class="pl-kos">.</span><span class="pl-en">loop</span><span class="pl-kos">(</span><span class="pl-v">Looper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:135</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:5254</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invoke</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invoke</span><span class="pl-kos">(</span><span class="pl-v">Method</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:372</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span>$MethodAndArgsCaller<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:903</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:698</span><span class="pl-kos">)</span> </pre></div>
<p dir="auto">v 4.4.0</p> <p dir="auto">N/A</p> <p dir="auto">LG K10 Android M</p> <p dir="auto">When adding new item in my RecyclerView I place it at the very top of the list (index 0). In my first attempt to add new items everything is good but in my second attempt to add new item I get some image to my CardView although I dont have any image include on that item. I also call notifyDataSetChanged() after adding new item at the top so that adapter position is always up to date.<br> This is what on my RecyclerView.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" //Set all announcement data void setAnnouncementPost(final String su, final String title, final String description, final String time, final String thumbnail, final String imgUri, final String imgThumbnail){ //Stop shimmering the item if any of the data becomes available if (!su.isEmpty()) { new Handler().postDelayed(new Runnable() { @Override public void run() { shimmerPost.stopShimmerAnimation(); mSuDP.setEnabled(true); mSU.setBackground(null); mSU.setText(su); mSU.setTextColor(Color.WHITE); post.setBackground(null); post.setTextColor(Color.WHITE); mtimePostedTxtView.setBackground(null); mtimePostedTxtView.setText(time); mtimePostedTxtView.setTextColor(Color.WHITE); mtitleTxtView.setBackground(null); mtitleTxtView.setText(title); mtitleTxtView.setTextColor(Color.WHITE); mdescriptionTxtView.setBackground(null); mdescriptionTxtView.setText(description); mdescriptionTxtView.setTextColor(Color.WHITE); /* Set post images */ //Set the user's profile picture if (!isDetached &amp;&amp; context != null) GlideApp.with(context) .load(thumbnail) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;Drawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;Drawable&gt; target, boolean isFirstResource) { return false; } @Override public boolean onResourceReady(Drawable resource, Object model, Target&lt;Drawable&gt; target, DataSource dataSource, boolean isFirstResource) { return false; } }) .into(mSuDP); //Check if user includes some photo if (imgThumbnail != null &amp;&amp; imgUri != null){ mRelative.setVisibility(View.VISIBLE); //Set any announcement picture if (!isDetached) if (imgThumbnail.contains(&quot;.jpg&quot;) &amp;&amp; imgUri.contains(&quot;.jpg&quot;)) GlideApp.with(context) .load(imgUri) .thumbnail(GlideApp.with(context).load(imgThumbnail)) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;Drawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;Drawable&gt; target, boolean isFirstResource) { //If Log In forms is hidden then Progress should be visible return false; } @Override public boolean onResourceReady(Drawable resource, Object model, Target&lt;Drawable&gt; target, DataSource dataSource, boolean isFirstResource) { mProgress.setVisibility(View.GONE); return false; } }) .into(mImage); } else if (imgUri != null &amp;&amp; imgUri.contains(&quot;.gif&quot;)){ mRelative.setVisibility(View.VISIBLE); //Set any announcement picture if (!isDetached) GlideApp.with(context) .asGif() .load(imgUri) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;GifDrawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;GifDrawable&gt; target, boolean isFirstResource) { return false; } @Override public boolean onResourceReady(GifDrawable resource, Object model, Target&lt;GifDrawable&gt; target, DataSource dataSource, boolean isFirstResource) { mProgress.setVisibility(View.GONE); return false; } }) .into(mImage); } leftBmb.setVisibility(View.VISIBLE); mReactions.setVisibility(View.VISIBLE); } },2000); } }"><pre class="notranslate"><code class="notranslate"> //Set all announcement data void setAnnouncementPost(final String su, final String title, final String description, final String time, final String thumbnail, final String imgUri, final String imgThumbnail){ //Stop shimmering the item if any of the data becomes available if (!su.isEmpty()) { new Handler().postDelayed(new Runnable() { @Override public void run() { shimmerPost.stopShimmerAnimation(); mSuDP.setEnabled(true); mSU.setBackground(null); mSU.setText(su); mSU.setTextColor(Color.WHITE); post.setBackground(null); post.setTextColor(Color.WHITE); mtimePostedTxtView.setBackground(null); mtimePostedTxtView.setText(time); mtimePostedTxtView.setTextColor(Color.WHITE); mtitleTxtView.setBackground(null); mtitleTxtView.setText(title); mtitleTxtView.setTextColor(Color.WHITE); mdescriptionTxtView.setBackground(null); mdescriptionTxtView.setText(description); mdescriptionTxtView.setTextColor(Color.WHITE); /* Set post images */ //Set the user's profile picture if (!isDetached &amp;&amp; context != null) GlideApp.with(context) .load(thumbnail) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;Drawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;Drawable&gt; target, boolean isFirstResource) { return false; } @Override public boolean onResourceReady(Drawable resource, Object model, Target&lt;Drawable&gt; target, DataSource dataSource, boolean isFirstResource) { return false; } }) .into(mSuDP); //Check if user includes some photo if (imgThumbnail != null &amp;&amp; imgUri != null){ mRelative.setVisibility(View.VISIBLE); //Set any announcement picture if (!isDetached) if (imgThumbnail.contains(".jpg") &amp;&amp; imgUri.contains(".jpg")) GlideApp.with(context) .load(imgUri) .thumbnail(GlideApp.with(context).load(imgThumbnail)) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;Drawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;Drawable&gt; target, boolean isFirstResource) { //If Log In forms is hidden then Progress should be visible return false; } @Override public boolean onResourceReady(Drawable resource, Object model, Target&lt;Drawable&gt; target, DataSource dataSource, boolean isFirstResource) { mProgress.setVisibility(View.GONE); return false; } }) .into(mImage); } else if (imgUri != null &amp;&amp; imgUri.contains(".gif")){ mRelative.setVisibility(View.VISIBLE); //Set any announcement picture if (!isDetached) GlideApp.with(context) .asGif() .load(imgUri) .placeholder(R.color.icon_not_selected) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .listener(new RequestListener&lt;GifDrawable&gt;() { @Override public boolean onLoadFailed(@Nullable GlideException e, Object model, Target&lt;GifDrawable&gt; target, boolean isFirstResource) { return false; } @Override public boolean onResourceReady(GifDrawable resource, Object model, Target&lt;GifDrawable&gt; target, DataSource dataSource, boolean isFirstResource) { mProgress.setVisibility(View.GONE); return false; } }) .into(mImage); } leftBmb.setVisibility(View.VISIBLE); mReactions.setVisibility(View.VISIBLE); } },2000); } } </code></pre></div> <p dir="auto">I think the main causes would be "notifyDataSetChanged()" since it give RecyclerView.NO_POSITION in every call. Also I get repetitive "Bitmap may cause graphical corruption!" logs if the item loaded asGif() is at the bottom or not yet visible on the screen but when it is visible it stop throwing logs and again if I scroll where it is no longer visible it throws again those message in logs.</p>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>9.2.1, 11.2.3</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>win7, win 10</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>None</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">window.setSize should set the height according to input</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Height is different upto +- 3 pixels</p> <h3 dir="auto">To Reproduce</h3> <ul dir="auto"> <li>Open any window</li> <li>Change the height using window.setSize</li> <li>Read the height using window.getSize</li> </ul> <p dir="auto">Below is the code and output of running the fiddle on my machine with 100% and 125% DPI scaling</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mainWindow.setSize(800, 750) console.log(mainWindow.getSize())"><pre class="notranslate"><span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">setSize</span><span class="pl-kos">(</span><span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">750</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">getSize</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div> <h4 dir="auto">100% DPI</h4> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="12:22:11 PMElectron v11.1.1 started. **12:22:11 PM[ 800, 750 ]**"><pre class="notranslate">12:22:11 PMElectron v11.1.1 started. <span class="pl-k">**</span>12:22:11 PM[ 800, 750 ]<span class="pl-k">**</span></pre></div> <h4 dir="auto">125% DPI</h4> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="12:23:11 PMElectron v11.1.1 started. **12:23:12 PM[ 800, 751 ]**"><pre class="notranslate">12:23:11 PMElectron v11.1.1 started. <span class="pl-k">**</span>12:23:12 PM[ 800, 751 ]<span class="pl-k">**</span></pre></div>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li> 11.2.3 </li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li> Windows 10 20H2 </li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> unknow </li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">setBounds</code> to output of <code class="notranslate">getBounds</code> makes no effect to BrowserWindows size</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><code class="notranslate">setBounds</code> to output of <code class="notranslate">getBounds</code> makes BrowserWindows size larger every time <code class="notranslate">setBounds</code> called</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">main.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { app, BrowserWindow } = require('electron') function createWindow () { const win = new BrowserWindow({ width: 801, height: 601, webPreferences: { nodeIntegration: true } }) win.loadFile('index.html') let bounds = null win.on('minimize', () =&gt; { bounds = win.getBounds() }) win.on('restore', () =&gt; { win.setBounds(bounds) console.log(win.getBounds()) }) } app.whenReady().then(createWindow) app.on('window-all-closed', () =&gt; { if (process.platform !== 'darwin') { app.quit() } }) app.on('activate', () =&gt; { if (BrowserWindow.getAllWindows().length === 0) { createWindow() } })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> app<span class="pl-kos">,</span> BrowserWindow <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span> <span class="pl-k">function</span> <span class="pl-en">createWindow</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">801</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">601</span><span class="pl-kos">,</span> <span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span> <span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">loadFile</span><span class="pl-kos">(</span><span class="pl-s">'index.html'</span><span class="pl-kos">)</span> <span class="pl-k">let</span> <span class="pl-s1">bounds</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'minimize'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">bounds</span> <span class="pl-c1">=</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">getBounds</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'restore'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">setBounds</span><span class="pl-kos">(</span><span class="pl-s1">bounds</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">getBounds</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">whenReady</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">createWindow</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'window-all-closed'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">platform</span> <span class="pl-c1">!==</span> <span class="pl-s">'darwin'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">quit</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'activate'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">BrowserWindow</span><span class="pl-kos">.</span><span class="pl-en">getAllWindows</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">===</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">createWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">index.html</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;script-src 'self' 'unsafe-inline';&quot; /&gt; &lt;/head&gt; &lt;body style=&quot;background: white;&quot;&gt; &lt;h1&gt;Hello World!&lt;/h1&gt; &lt;p&gt; We are using node &lt;script&gt;document.write(process.versions.node)&lt;/script&gt;, Chrome &lt;script&gt;document.write(process.versions.chrome)&lt;/script&gt;, and Electron &lt;script&gt;document.write(process.versions.electron)&lt;/script&gt;. &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; "><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">charset</span>="<span class="pl-s">UTF-8</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">meta</span> <span class="pl-c1">http-equiv</span>="<span class="pl-s">Content-Security-Policy</span>" <span class="pl-c1">content</span>="<span class="pl-s">script-src 'self' 'unsafe-inline';</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span> <span class="pl-c1">style</span>="<span class="pl-s">background: white;</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> We are using node <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">versions</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">)</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>, Chrome <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">versions</span><span class="pl-kos">.</span><span class="pl-c1">chrome</span><span class="pl-kos">)</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>, and Electron <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">versions</span><span class="pl-kos">.</span><span class="pl-c1">electron</span><span class="pl-kos">)</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>. <span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16091562/107219061-81573680-6a4b-11eb-90dd-c02aefc0f322.png"><img src="https://user-images.githubusercontent.com/16091562/107219061-81573680-6a4b-11eb-90dd-c02aefc0f322.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
1
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let obj = { foo: 'foo', bar: 'bar' }; // outputs: let obj = { foo: 'foo', bar: 'bar' };"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">'bar'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// outputs:</span> <span class="pl-k">let</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">'bar'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">but:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let obj = { foo: 'foo', bar: 'bar', }; // outputs: let obj = { foo: 'foo', bar: 'bar' };"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">'bar'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// outputs:</span> <span class="pl-k">let</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">'bar'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">This is a super critical high-priority bug, I'm super angry at you <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sebmck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sebmck">@sebmck</a>. Why are you destroying my life? I hate you with every cell in my body and hope that you get hit by a bus. <img class="emoji" title=":trollface:" alt=":trollface:" src="https://github.githubassets.com/images/icons/emoji/trollface.png" height="20" width="20" align="absmiddle"></p>
<p dir="auto">Super low priority.</p> <p dir="auto">This works as expected:<br> Input:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var foo = { bar: true }"><pre class="notranslate"><code class="notranslate">var foo = { bar: true } </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var foo = { bar: true };"><pre class="notranslate"><code class="notranslate">"use strict"; var foo = { bar: true }; </code></pre></div> <p dir="auto">However, adding a trailing comma makes the last linebreak disappear:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var foo = { bar: true, }"><pre class="notranslate"><code class="notranslate">var foo = { bar: true, } </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var foo = { bar: true };"><pre class="notranslate"><code class="notranslate">"use strict"; var foo = { bar: true }; </code></pre></div> <p dir="auto">REPL: <a href="http://babeljs.io/repl/#?experimental=true&amp;evaluate=true&amp;loose=true&amp;spec=false&amp;playground=true&amp;code=var%20foo%20%3D%20%7B%0A%20%20bar%3A%20true%2C%0A%7D" rel="nofollow">http://babeljs.io/repl/#?experimental=true&amp;evaluate=true&amp;loose=true&amp;spec=false&amp;playground=true&amp;code=var%20foo%20%3D%20%7B%0A%20%20bar%3A%20true%2C%0A%7D</a></p>
1