text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.1-f160547f47</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19729:21)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19574:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br> at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br> at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br> at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br> at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br> at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Profiling <a href="https://recharts.org/en-US/api/LineChart" rel="nofollow">recharts library</a></li> <li>Filtered on commits greater than 3s</li> <li>Walking through the commits doing a next &gt; next</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.1-f160547f47</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19729:21)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19594:26)<br> at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br> at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br> at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br> at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br> at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br> at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
1
<p dir="auto">I know this looks like a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5684452" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/1636" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/1636/hovercard" href="https://github.com/pandas-dev/pandas/issues/1636">#1636</a>, but even with pandas 0.8.1, I don't get the expected plotting behaviour:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: from numpy import arange In [2]: import matplotlib.pyplot as plt In [3]: import pandas In [4]: pandas.__version__ Out[4]: '0.8.1' In [5]: plt.figure() Out[5]: &lt;matplotlib.figure.Figure at 0x33afd50&gt; In [6]: plt.plot(arange(12), arange(12), color='green') # this line is green Out[6]: [&lt;matplotlib.lines.Line2D at 0x337c150&gt;] In [7]: pandas.Series(arange(12) + 1).plot(color='green') # this line is blue Out[7]: &lt;matplotlib.axes.AxesSubplot at 0x33c80d0&gt;"><pre class="notranslate"><code class="notranslate">In [1]: from numpy import arange In [2]: import matplotlib.pyplot as plt In [3]: import pandas In [4]: pandas.__version__ Out[4]: '0.8.1' In [5]: plt.figure() Out[5]: &lt;matplotlib.figure.Figure at 0x33afd50&gt; In [6]: plt.plot(arange(12), arange(12), color='green') # this line is green Out[6]: [&lt;matplotlib.lines.Line2D at 0x337c150&gt;] In [7]: pandas.Series(arange(12) + 1).plot(color='green') # this line is blue Out[7]: &lt;matplotlib.axes.AxesSubplot at 0x33c80d0&gt; </code></pre></div>
<p dir="auto">This bug is easy to reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def printA(group): print group.A.values[0] return 0 pandas.DataFrame({'A': [0,0,1,1], 'B': [0,1,0,1]}).groupby('A').apply(printA)"><pre class="notranslate"><code class="notranslate">def printA(group): print group.A.values[0] return 0 pandas.DataFrame({'A': [0,0,1,1], 'B': [0,1,0,1]}).groupby('A').apply(printA) </code></pre></div> <p dir="auto">This should print</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 1"><pre class="notranslate"><code class="notranslate">0 1 </code></pre></div> <p dir="auto">and return a <code class="notranslate">Series</code> containing two zeroes. Although it does return the expected <code class="notranslate">Series</code>, it prints</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 0 1"><pre class="notranslate"><code class="notranslate">0 0 1 </code></pre></div> <p dir="auto">So, the function <code class="notranslate">printA</code> is being applied to the first group twice. This doesn't seem to affect the eventual returned result of apply, but it duplicates any side effects, and if <code class="notranslate">printA</code> performed some expensive computation, it would increased the time to completion.</p>
0
<p dir="auto">It looks like the way to define <code class="notranslate">InkWell</code> is to put it at the top of the stack so that we can see the ripple effect and the taps are captured by the <code class="notranslate">InkWell</code> widget.</p> <p dir="auto">Im my case I have nested levels of containers each with their own <code class="notranslate">InkWells</code>. Now because of the way <code class="notranslate">InkWells</code> are designed, I can't have the inner container <code class="notranslate">InkWell</code> respond to taps because the Outer container <code class="notranslate">InkWell</code> is always on top of everything and prevents the tap being received by the Inner Container.</p> <p dir="auto">Does anyone have a solution to this problem ? Below is a piece of code demonstrating this issue</p> <p dir="auto"><a href="https://gist.github.com/manujbahl/d0ffaa1607f3b4ae8758bbae7378e469">https://gist.github.com/manujbahl/d0ffaa1607f3b4ae8758bbae7378e469</a></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; main() { runApp(new TestSample()); } class TestSample extends StatelessWidget{ @override Widget build(BuildContext context) { var widget = new MaterialApp( home: new Scaffold( body: new Center( child: new OuterContainerStack(), ) ), ); return widget; } } class OuterContainerStack extends StatelessWidget { @override Widget build(BuildContext context) { return new Stack( children: &lt;Widget&gt;[ new OuterContainer(), new Positioned.fill( child: new Material( color: Colors.transparent, child:new InkWell( onTap: () { print(&quot;Outer Container&quot;); } ) ) ) ], ); } } class OuterContainer extends StatelessWidget { @override Widget build(BuildContext context) { return new Container( width: 300.0, height: 300.0, color: Colors.blueAccent, child: new Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: &lt;Widget&gt;[ new InnerContainerStack() ], ), ); } } class InnerContainerStack extends StatelessWidget { @override Widget build(BuildContext context) { return new Stack( children: &lt;Widget&gt;[ new InnerContainer(), new Positioned.fill( child: new Material( color: Colors.transparent, child:new InkWell( onTap: () { print(&quot;Inner Container&quot;); } ) ) ) ], ); } } class InnerContainer extends StatelessWidget { @override Widget build(BuildContext context) { return new Container( width: 200.0, height: 200.0, color: Colors.redAccent ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-en">main</span>() { <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">TestSample</span>()); } <span class="pl-k">class</span> <span class="pl-c1">TestSample</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span>{ <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">var</span> widget <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">OuterContainerStack</span>(), ) ), ); <span class="pl-k">return</span> widget; } } <span class="pl-k">class</span> <span class="pl-c1">OuterContainerStack</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">OuterContainer</span>(), <span class="pl-k">new</span> <span class="pl-c1">Positioned</span>.<span class="pl-en">fill</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Material</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.transparent, child<span class="pl-k">:</span><span class="pl-k">new</span> <span class="pl-c1">InkWell</span>( onTap<span class="pl-k">:</span> () { <span class="pl-en">print</span>(<span class="pl-s">"Outer Container"</span>); } ) ) ) ], ); } } <span class="pl-k">class</span> <span class="pl-c1">OuterContainer</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( width<span class="pl-k">:</span> <span class="pl-c1">300.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">300.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blueAccent, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>( mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.center, crossAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">CrossAxisAlignment</span>.center, children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">InnerContainerStack</span>() ], ), ); } } <span class="pl-k">class</span> <span class="pl-c1">InnerContainerStack</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>( children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[ <span class="pl-k">new</span> <span class="pl-c1">InnerContainer</span>(), <span class="pl-k">new</span> <span class="pl-c1">Positioned</span>.<span class="pl-en">fill</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Material</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.transparent, child<span class="pl-k">:</span><span class="pl-k">new</span> <span class="pl-c1">InkWell</span>( onTap<span class="pl-k">:</span> () { <span class="pl-en">print</span>(<span class="pl-s">"Inner Container"</span>); } ) ) ) ], ); } } <span class="pl-k">class</span> <span class="pl-c1">InnerContainer</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( width<span class="pl-k">:</span> <span class="pl-c1">200.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">200.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.redAccent ); } }</pre></div>
<p dir="auto">Internal: b/151678927</p> <p dir="auto">Pictured: two ink wells, one for the card, and one for the smaller rectangular widget at the center of the card. The smaller rectangular widget has been tapped. The current Flutter behavior is on pictured to the left, the ideal behavior is pictured to the right.</p> <p dir="auto">In Android, by default, ancestors do not respond/ripple when a descendant responds/ripples i.e. it follows the ideal behavior pictured to the right.</p> <p dir="auto">Reasoning: say the descendant is a button, it does not make sense for the ancestor to ripple as tapping the button will not activate the <code class="notranslate">onTap</code> for the ancestor.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9077461/35674273-025e943e-07a9-11e8-80a0-df31f6367b02.png"><img src="https://user-images.githubusercontent.com/9077461/35674273-025e943e-07a9-11e8-80a0-df31f6367b02.png" width="240/" style="max-width: 100%;"></a> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9077461/35674276-03731c32-07a9-11e8-89e4-af0e62550d9b.png"><img src="https://user-images.githubusercontent.com/9077461/35674276-03731c32-07a9-11e8-89e4-af0e62550d9b.png" width="240/" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Run the sample code below, click the center of the card and two ripples will be generated for both ink response widgets. The ideal situation can be replicated by setting the ancestor <code class="notranslate">InkWell.onTap</code> to null, as annotated in the code.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import &quot;package:flutter/material.dart&quot;; void main() { runApp(new MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new Scaffold( appBar: new AppBar( title: const Text(&quot;Bug&quot;), ), body: new Card( child: new Container( height: 100.0, child: new InkWell( onTap: () =&gt; print(&quot;Set this onTap to null for ideal behavior&quot;), child: new Center( child: new InkWell( onTap: () {}, child: new Container( width: 50.0, height: 50.0, ), ), ), ), ), ), ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"package:flutter/material.dart"</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>()); } <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( appBar<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AppBar</span>( title<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Text</span>(<span class="pl-s">"Bug"</span>), ), body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Card</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( height<span class="pl-k">:</span> <span class="pl-c1">100.0</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InkWell</span>( onTap<span class="pl-k">:</span> () <span class="pl-k">=&gt;</span> <span class="pl-en">print</span>(<span class="pl-s">"Set this onTap to null for ideal behavior"</span>), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InkWell</span>( onTap<span class="pl-k">:</span> () {}, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( width<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">50.0</span>, ), ), ), ), ), ), ), ); } }</pre></div> <h2 dir="auto">Logs</h2> <p dir="auto">Running flutter run and flutter analyze did not output anything.</p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">Paste the output of running <code class="notranslate">flutter doctor</code> here.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en-NZ, channel unknown) • Flutter at /Users/gnawf/flutter • Framework revision 6a42ed3f55 (3 weeks ago), 2018-01-12 15:12:26 -0800 • Engine revision 05fe72d068 • Tools Dart version 2.0.0-dev.16.0 • Engine Dart version 2.0.0-edge.28757928b47b192efcec082c78258102beb03f78 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.3) • Android SDK at /usr/local/opt/android-sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 26.0.3 • ANDROID_HOME = /usr/local/opt/android-sdk/ • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java • Java version Java(TM) SE Runtime Environment (build 1.8.0_144-b01) [-] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b ✗ Your Mac needs to enabled for developer mode before using Xcode for the first time. Run 'sudo DevToolsSecurity -enable' to enable developer mode. ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.3.1 [✗] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [✓] IntelliJ IDEA Community Edition (version 2017.3.3) • Flutter plugin version 21.0.3 • Dart plugin version 173.4301.22 [✓] Connected devices • iPhone 8 • 533B1ADF-56E5-4A63-9319-1F704E8845E0 • ios • iOS 11.2 (simulator)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en-NZ, channel unknown) • Flutter at /Users/gnawf/flutter • Framework revision 6a42ed3f55 (3 weeks ago), 2018-01-12 15:12:26 -0800 • Engine revision 05fe72d068 • Tools Dart version 2.0.0-dev.16.0 • Engine Dart version 2.0.0-edge.28757928b47b192efcec082c78258102beb03f78 [✓] Android toolchain - develop for Android devices (Android SDK 26.0.3) • Android SDK at /usr/local/opt/android-sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 26.0.3 • ANDROID_HOME = /usr/local/opt/android-sdk/ • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java • Java version Java(TM) SE Runtime Environment (build 1.8.0_144-b01) [-] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b ✗ Your Mac needs to enabled for developer mode before using Xcode for the first time. Run 'sudo DevToolsSecurity -enable' to enable developer mode. ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.3.1 [✗] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.io/setup/#android-setup for detailed instructions). [✓] IntelliJ IDEA Community Edition (version 2017.3.3) • Flutter plugin version 21.0.3 • Dart plugin version 173.4301.22 [✓] Connected devices • iPhone 8 • 533B1ADF-56E5-4A63-9319-1F704E8845E0 • ios • iOS 11.2 (simulator) </code></pre></div>
1
<h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:\Windows\system32&gt; flutter doctor Checking Dart SDK version... Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a... Unzipping Dart SDK... Updating flutter tool... Downloading Material fonts... 2.7s Downloading package sky_engine... 1.7s Downloading common tools... 4.1s Downloading windows-x64 tools... 17.7s Downloading android-arm-profile/windows-x64 tools... 2.2s Downloading android-arm-release/windows-x64 tools... 2.2s Downloading android-arm64-profile/windows-x64 tools... 2.5s Downloading android-arm64-release/windows-x64 tools... 2.4s Downloading android-x86 tools... 10.4s Downloading android-x64 tools... 10.9s Downloading android-arm tools... 9.2s Downloading android-arm-profile tools... 6.7s Downloading android-arm-release tools... 7.2s Downloading android-arm64 tools... 6.5s Downloading android-arm64-profile tools... 6.1s Downloading android-arm64-release tools... 6.0s Downloading Gradle Wrapper... 1.0s Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK 19.1.0) [√] Android Studio (version 3.0) [!] IntelliJ IDEA Community Edition (version 2017.3) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [!] VS Code (version 1.21.0) CreateProcessW failed 193 Oops; flutter has exited unexpectedly. Sending crash report to Google. Crash report sent (report ID: 14e926ccf48bfd1a) CreateProcessW failed 193 Crash report written to C:\Windows\System32\flutter_02.log; please let us know at https://github.com/flutter/flutter/issues. &gt; For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/)."><pre class="notranslate"><code class="notranslate">Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:\Windows\system32&gt; flutter doctor Checking Dart SDK version... Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a... Unzipping Dart SDK... Updating flutter tool... Downloading Material fonts... 2.7s Downloading package sky_engine... 1.7s Downloading common tools... 4.1s Downloading windows-x64 tools... 17.7s Downloading android-arm-profile/windows-x64 tools... 2.2s Downloading android-arm-release/windows-x64 tools... 2.2s Downloading android-arm64-profile/windows-x64 tools... 2.5s Downloading android-arm64-release/windows-x64 tools... 2.4s Downloading android-x86 tools... 10.4s Downloading android-x64 tools... 10.9s Downloading android-arm tools... 9.2s Downloading android-arm-profile tools... 6.7s Downloading android-arm-release tools... 7.2s Downloading android-arm64 tools... 6.5s Downloading android-arm64-profile tools... 6.1s Downloading android-arm64-release tools... 6.0s Downloading Gradle Wrapper... 1.0s Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK 19.1.0) [√] Android Studio (version 3.0) [!] IntelliJ IDEA Community Edition (version 2017.3) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [!] VS Code (version 1.21.0) CreateProcessW failed 193 Oops; flutter has exited unexpectedly. Sending crash report to Google. Crash report sent (report ID: 14e926ccf48bfd1a) CreateProcessW failed 193 Crash report written to C:\Windows\System32\flutter_02.log; please let us know at https://github.com/flutter/flutter/issues. &gt; For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/). </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Trying to install Flutter in Windows 10 Machine. Clone the repo and added path and<br> run <code class="notranslate">flutter doctor </code> it downloaded sdk and getting error. deleted the cache folder in bin and retried but same error.</p> <h2 dir="auto">Logs</h2> <p dir="auto">same as <code class="notranslate">flutter doctor -V</code></p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Updating flutter tool.... CreateProcessW failed 193 CreateProcessW failed 193 CreateProcessW failed 193 %1 is not a valid Win32 application. Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... Waiting for 0 seconds, press CTRL+C to quit ..."><pre class="notranslate"><code class="notranslate">Updating flutter tool.... CreateProcessW failed 193 CreateProcessW failed 193 CreateProcessW failed 193 %1 is not a valid Win32 application. Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... Waiting for 0 seconds, press CTRL+C to quit ... </code></pre></div> <blockquote> <p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p> </blockquote>
1
<p dir="auto">Right now, every time Renderer needs to switch the brush colors, it does the following:</p> <ol dir="auto"> <li>get the <code class="notranslate">TextColor</code> from the attribute run</li> <li>get the RGB value of the color from the color table</li> <li>pass that to <code class="notranslate">Engine::UpdateDrawingBrushes</code></li> </ol> <p dir="auto">Step 2 is lossy, and is the source of a class of bugs I'll call "ConPTY narrowing" bugs. In addition, there's a step where <code class="notranslate">VtEngine</code> needs to <em>know the color table</em> to do a translation from RGB back into indexed color.</p> <p dir="auto"><strong>"narrowing" bugs</strong></p> <table role="table"> <thead> <tr> <th>application output</th> <th>conpty sends</th> <th>why</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">\e[38;2;22;198;12m</code></td> <td><code class="notranslate">\e[92m</code></td> <td>RGB(22, 198, 12) matches color index 10 in Campbell</td> </tr> <tr> <td><code class="notranslate">\e[38;5;127m</code></td> <td><code class="notranslate">\e[38;2;175;0;175m</code></td> <td>the xterm-256color color palette gets translated into RGB because Campbell only covers 0-16</td> </tr> <tr> <td><code class="notranslate">\e[38;2;12;12;12m</code></td> <td><code class="notranslate">\e[30m</code></td> <td>RGB(12, 12, 12) matches index 0 in Campbell <em>and index 0 is the default color</em> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="372725082" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/293" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/293/hovercard" href="https://github.com/microsoft/terminal/issues/293">#293</a>)</td> </tr> </tbody> </table> <p dir="auto">If Renderer passed the TextColor directly to the Engine, Xterm256Engine could pass through all indexed colors unchanged, and XtermEngine and WinTelnetEngine could flatten to the 16-color space.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="502958810" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3076" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3076/hovercard" href="https://github.com/microsoft/terminal/issues/3076">#3076</a> is caused by us doing early unpacking of colors and boldness; deferring until later will yield an improvement in preservation of underline status.</li> </ul>
<p dir="auto">Pressing the settings-button does not open the settings tab. Instead it opens a .json file in Visual Studio 2019.<br> OS: Windows 10 Pro 1903 (Build 18362.418)<br> Windows Terminal Version 0.5.2762.0</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aantono" rel="nofollow">Alex Antonov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6261?redirect=false" rel="nofollow">SPR-6261</a></strong> and commented</p> <p dir="auto">Provide interface definition model for generating HTTP client interface proxies wrapping RestTemplates.</p> <p dir="auto">Code implementation to follow.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398171201" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16747" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16747/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16747">#16747</a> Introduce proxy-based REST client similar to HttpInvokerProxyFactoryBean (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095442" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10477" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10477/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10477">#10477</a> Spring REST <code class="notranslate">@MVC</code>: Add support for google Protocol Buffers resource representation format (<em><strong>"supersedes"</strong></em>)</li> </ul> <p dir="auto">3 votes, 12 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=fenrir" rel="nofollow">Donny A. Wijaya</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6464?redirect=false" rel="nofollow">SPR-6464</a></strong> and commented</p> <p dir="auto">Geert Pante submitted the codes for this issue at: <a href="https://jira.spring.io/browse/MOD-458" rel="nofollow">MOD-458</a>.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC2</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=73939&amp;highlight=flash+scope" rel="nofollow">http://forum.springsource.org/showthread.php?t=73939&amp;highlight=flash+scope</a></p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/16259/FlashScope.java" rel="nofollow">FlashScope.java</a> (<em>675 bytes</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16260/FlashScopeFilter.java" rel="nofollow">FlashScopeFilter.java</a> (<em>1.16 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398071317" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7346" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7346/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7346">#7346</a> There is no way to display success message(s). (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398057903" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5775" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5775/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5775">#5775</a> Provide better options to specify attributes on a redirect (<em><strong>"supersedes"</strong></em>)</li> </ul> <p dir="auto">31 votes, 29 watchers</p>
0
<p dir="auto">I've seen that v1.11 will be introducing aliases for different histogram binning optimization methods. I'm really looking forward to this feature, so thank you for implementing this!</p> <p dir="auto">My question is how these methods will interact with the range parameter (this is not currently documented).</p> <ul dir="auto"> <li>If the range is within (min, max), I imagine that the data sent to the binning method is restricted to this range.</li> <li>If the range is extends beyond (min, max), I am not sure how this would be handled. Will methods that return a binwidth fill the entire range according to this binwidth? And will methods that return a number of bins be forced to expand their binwidth to cover the full range?</li> </ul>
<p dir="auto">Travis CI has become too slow, simple PRs can take overnight to finish. Some of that is probably extra testing on the part of NumPy, OTOH, I look at the stats and active opensource builds are <a href="https://www.traviscistatus.com/" rel="nofollow">capped at 550 with a backlog of 10K</a> That doesn't seem healthy.</p>
0
<p dir="auto">We need a general purpose FFI that can call any C library, using either tcc or clang.</p> <p dir="auto">Suggested interface:</p> <p dir="auto">loadc("libpcre") # loads the C library, reading headers and all<br> /* the namespace libpcre could be used to avoid naming clashes _/<br> pcre_compile("foo\s_bar", PCRE_CASELESS, ...)</p>
<p dir="auto">Long conversation with Jeff. Part of the discussion was around structs. We concluded that the main goal here is maximum compatibility with C. A <code class="notranslate">struct</code> is similar to a composite type (which we discussed renaming to <code class="notranslate">class</code> instead of <code class="notranslate">type</code>) except that it has immediate value semantics:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Foo bar::Int32 baz::Int32 end julia&gt; foo = Foo(1,2) Foo(1,2) julia&gt; foo2 = foo Foo(1,2) julia&gt; foo2.bar = 3 3 julia&gt; foo2 Foo(3,2) julia&gt; foo Foo(1,2)"><pre class="notranslate"><code class="notranslate">struct Foo bar::Int32 baz::Int32 end julia&gt; foo = Foo(1,2) Foo(1,2) julia&gt; foo2 = foo Foo(1,2) julia&gt; foo2.bar = 3 3 julia&gt; foo2 Foo(3,2) julia&gt; foo Foo(1,2) </code></pre></div> <p dir="auto">This is kind of like immutability but without not allowing anything. Types like <code class="notranslate">Rational</code> and <code class="notranslate">Complex</code> would be structs rather than classes. However, we don't go as far as preventing reaching in and changing a field value. If you want to do that, you can, but don't. It's rude. So we have immutability by convention.</p> <p dir="auto">A couple more things about structs:</p> <ul dir="auto"> <li>struct fields must be typed</li> <li>struct fields can only be bits types, other struct types, or refs</li> <li>a ref is a pointer to the data part of a bits types or a struct type</li> </ul> <p dir="auto">Think of <code class="notranslate">Ref</code> like a C pointer in a struct — and it can be passed to C as-is since it points to the actual data part. However, if you look at the word before what the pointer points to, it is a valid Julia object too, so you can program with it in Julia and then just pass it to C without having to change anything. This provides maximum compatibility with C code. You could even write a linked list struct type in Julia and then just pass it to C code and have the C code traverse the linked list without any problems. Having C code pass structures back to Julia is more of a problem, however. Maybe it's a one-way street.</p> <p dir="auto">Structs are laid out exactly the way C lays them out; they can also be stored in concrete arrays without any tags, giving C compactness and efficiency. If you do <code class="notranslate">Array(Foo,n)</code> then it is initially just filled with junk like <code class="notranslate">Array(Int32,n)</code> would be. Structs are just plain old data. They can, however, have constructors.</p> <p dir="auto">Some issues we haven't fully thought through are fixed-size array fields and struct unions. But we can worry about those later.</p>
1
<p dir="auto">We need to be able to create a reusable memory module so that memory can be shared across all <code class="notranslate">WASMModule</code>.</p> <p dir="auto">An example code that would be valid for this use case may look like:</p> <p dir="auto"><strong>entry.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import(“./abc.js”).then(abc =&gt; abc.doIt());"><pre class="notranslate"><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s1">“</span><span class="pl-kos">.</span><span class="pl-c1">/</span><span class="pl-c1">abc</span><span class="pl-kos">.</span><span class="pl-c1">js”</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">abc</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">abc</span><span class="pl-kos">.</span><span class="pl-en">doIt</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>abc.js</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { duplicateText } from “./string.cpp”; export function doIt() { console.log(duplicateText(“Hello World”)); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">duplicateText</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s1">“</span><span class="pl-kos">.</span><span class="pl-c1">/</span><span class="pl-s1">string</span><span class="pl-kos">.</span><span class="pl-c1">cpp”</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">doIt</span><span class="pl-kos">(</span><span class="pl-kos">)</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-en">duplicateText</span><span class="pl-kos">(</span><span class="pl-s1">“Hello</span> <span class="pl-v">World”</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"><em>string.cpp</em></p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern “C” const char* duplicateText(const char* text) { int len = strlen(text); char* newstr = new char[len*2 + 1]; strcpy(newstr, text); strcat(newstr, text); return newstr; }"><pre class="notranslate"><span class="pl-k">extern</span> “C” <span class="pl-k">const</span> <span class="pl-k">char</span>* <span class="pl-en">duplicateText</span>(<span class="pl-k">const</span> <span class="pl-k">char</span>* text) { <span class="pl-k">int</span> len = <span class="pl-c1">strlen</span>(text); <span class="pl-k">char</span>* newstr = <span class="pl-k">new</span> <span class="pl-k">char</span>[len*<span class="pl-c1">2</span> + <span class="pl-c1">1</span>]; <span class="pl-c1">strcpy</span>(newstr, text); <span class="pl-c1">strcat</span>(newstr, text); <span class="pl-k">return</span> newstr; }</pre></div>
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong><br> Webpack use JsonP to load other chunks. wondering whether we can load chunks by requireJs?</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br> in my case, i want to share common chunks among different compilations, and assets from different compilations maybe used in the same page. since we use JsonP to load chunks, the output.chunkLoadingGlobal from certain compilation will be set in common chunk files. so between different compilations , we wont get common chunks exactly the same, and common share is failed.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong><br> maybe supply a option that splitChunks can be loaded by AMD, so the splitChunks dont have to set some logic related to the main chunk. so we can share among compilations</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong><br> sorry,i would like to but maybe not qualified.</p>
0
<ul dir="auto"> <li>VSCode Version:0.10.11</li> <li>OS Version:Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open powershell and cd to a existing project folder</li> <li>run "code ."</li> <li>Try to rename an existing folder</li> </ol> <p dir="auto">VSCode return an error "Operation not permtited".</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/593137/14441479/53d1b80c-000b-11e6-8ec2-7a1f8161381e.png"><img src="https://cloud.githubusercontent.com/assets/593137/14441479/53d1b80c-000b-11e6-8ec2-7a1f8161381e.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 2012 R2</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open project and do some work</li> <li>Update a npm package. e.g. <code class="notranslate">npm i -D typescript</code></li> </ol> <p dir="auto">It errors with:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm ERR! Error: EPERM: operation not permitted, rename 'E:\hwong\p4\projects\pandash\node_modules\typescript' -&gt; 'E:\hwong\p4\projects\pandash\node_modules\.typescript.DELETE'"><pre class="notranslate">npm ERR<span class="pl-k">!</span> Error: EPERM: operation not permitted, rename <span class="pl-s"><span class="pl-pds">'</span>E:\hwong\p4\projects\pandash\node_modules\typescript<span class="pl-pds">'</span></span> -<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">'</span>E:\hwong\p4\projects\pandash\node_modules\.typescript.DELETE<span class="pl-pds">'</span></span></pre></div> <p dir="auto">Once I close VSCode and retry <code class="notranslate">npm i -D typescript</code>, it works fine.</p>
1
<p dir="auto">Hello<br> <a href="https://superset.apache.org/" rel="nofollow">https://superset.apache.org/</a> is having problems. On the right side of the pages there are scroll bars. I am not able to scroll the Text down.</p>
<h2 dir="auto">Screenshot</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155305469-ce03e338-8689-401d-a174-13ee9167a841.png"><img src="https://user-images.githubusercontent.com/63287675/155305469-ce03e338-8689-401d-a174-13ee9167a841.png" alt="Screenshot 2022-02-23 at 11 52 18" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155305680-c74d1da7-fc5f-4398-b6d3-8bbb9b84e3b3.png"><img src="https://user-images.githubusercontent.com/63287675/155305680-c74d1da7-fc5f-4398-b6d3-8bbb9b84e3b3.png" alt="Screenshot 2022-02-23 at 11 53 46" style="max-width: 100%;"></a></p> <h2 dir="auto">Description</h2> <p dir="auto">Element on screenshot are preventing page to scroll down.</p> <h2 dir="auto">Design input</h2> <p dir="auto">It can be solve by setting <code class="notranslate">position: fixed</code> to this element.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155306169-f497193a-2f7f-4069-82e3-1d187bdc24d3.png"><img src="https://user-images.githubusercontent.com/63287675/155306169-f497193a-2f7f-4069-82e3-1d187bdc24d3.png" alt="Screenshot 2022-02-23 at 11 56 24" style="max-width: 100%;"></a></p>
1
<p dir="auto">It's needed for things like an <code class="notranslate">Any</code> type, or safe dynamic loading.</p> <p dir="auto">It basically needs to be an generic intrinsic that returns some kind of data structure that uniquely identifies the generic type it has been instantiated with. Ideally it also includes information about the crate itself and it's meta data, so that two different named and/or versioned crates with the same type result in different <code class="notranslate">TypeID</code>s.</p> <p dir="auto">Currently, the static pointers to type descriptors can be kinda used for this, but there is no guarantee that a type descriptor can not be duplicated, so using them for this purpose is incorrect.</p> <p dir="auto">Possible usage could look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn same_types&lt;T, U&gt;() -&gt; bool { let type_id_t = intrinsics::type_id::&lt;T&gt;(); let type_id_u = intrinsics::type_id::&lt;U&gt;(); type_id_t == type_id_u } fn main() { assert!(same_types::&lt;uint, uint&gt;()); let type_id = intrinsics::type_id::&lt;std::util::Void&gt;(); assert!(type_id.path().to_str() == &quot;&lt;6df45e453&gt;::std::util::Void&quot;); assert!(type_id.crate().name() == &quot;std&quot;); assert!(type_id.crate().version() == &quot;1.0&quot;); assert!(type_id.crate().hash() == &quot;6df45e453&quot;); }"><pre class="notranslate"><code class="notranslate">fn same_types&lt;T, U&gt;() -&gt; bool { let type_id_t = intrinsics::type_id::&lt;T&gt;(); let type_id_u = intrinsics::type_id::&lt;U&gt;(); type_id_t == type_id_u } fn main() { assert!(same_types::&lt;uint, uint&gt;()); let type_id = intrinsics::type_id::&lt;std::util::Void&gt;(); assert!(type_id.path().to_str() == "&lt;6df45e453&gt;::std::util::Void"); assert!(type_id.crate().name() == "std"); assert!(type_id.crate().version() == "1.0"); assert!(type_id.crate().hash() == "6df45e453"); } </code></pre></div> <p dir="auto">See also <a href="https://gist.github.com/Kimundi/6802198">https://gist.github.com/Kimundi/6802198</a> for some prototype implementation of a <code class="notranslate">TypeID</code> using type descriptors.</p>
<p dir="auto">I discussed this briefly with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aturon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aturon">@aturon</a>, but I thought I would submit an issue to track the discussion.</p> <p dir="auto">I have been trying to implement an equivalent to Java's thread park / unpark using #[thread_local] but it requires being able to run some cleanup code when the thread exits. This currently isn't possible but should be with a little help from rust's thread support.</p>
0
<p dir="auto">I am using CentOS 7 and Anaconda 2. Recently, I updated the matplotlib package using <code class="notranslate">conda</code>, if I type<br> <code class="notranslate">import matplotlib.pyplot as plt</code>, the python interpreter will complain about</p> <blockquote> <p dir="auto">This application failed to start because it could not find or load the Qt platform plugin "xcb".<br> Reinstalling the application may fix this problem</p> </blockquote> <p dir="auto">I tried to remove <code class="notranslate">pyqt</code> and then reinstall the package, but that does not help. Finally I have to remove the<br> entire Anaconda install and reinstall Anaconda.</p> <p dir="auto">Is there a better way to solve this problem?</p>
<p dir="auto">When I try to run anaconda-navigator I get the following message:</p> <p dir="auto">This application failed to start because it could not find or load the Qt platform plugin "xcb"<br> in "".</p> <p dir="auto">Available platform plugins are: minimal, offscreen, xcb.</p> <p dir="auto">Reinstalling the application may fix this problem.<br> Aborted (core dumped)</p> <p dir="auto">I have no clue how to fix this and googling hasn't helped at all. This is my first install of Anaconda.</p>
1
<p dir="auto"><strong>Original</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var constructorTestObject = new constructorTestClass(1, 'string', true, 2); constructorTestObject.arg\u0031 = 1; constructorTestObject.arg2 = 'string'; constructorTestObject.arg\u0033 = true; constructorTestObject.arg4 = 2;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">constructorTestObject</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">constructorTestClass</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">'string'</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">constructorTestObject</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0031</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">constructorTestObject</span><span class="pl-kos">.</span><span class="pl-c1">arg2</span> <span class="pl-c1">=</span> <span class="pl-s">'string'</span><span class="pl-kos">;</span> <span class="pl-s1">constructorTestObject</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0033</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-s1">constructorTestObject</span><span class="pl-kos">.</span><span class="pl-c1">arg4</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expect</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var constructorTestClass = (function () { function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) { this.arg1 = arg1; this.arg\u0032 = arg\u0032; this.arg\u0033 = arg\u0033; this.arg4 = arg4; } return constructorTestClass; }());"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">constructorTestClass</span> <span class="pl-c1">=</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-k">function</span> <span class="pl-s1">constructorTestClass</span><span class="pl-kos">(</span><span class="pl-s1">arg1</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">,</span> <span class="pl-s1">arg4</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">arg1</span> <span class="pl-c1">=</span> <span class="pl-s1">arg1</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0032</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0033</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg4</span> <span class="pl-c1">=</span> <span class="pl-s1">arg4</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">constructorTestClass</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"><strong>Actual</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var constructorTestClass = (function () { function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) { this.arg1 = arg1; this.arg2 = arg\u0032; this.arg3 = arg\u0033; this.arg4 = arg4; } return constructorTestClass; }());"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">constructorTestClass</span> <span class="pl-c1">=</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-k">function</span> <span class="pl-s1">constructorTestClass</span><span class="pl-kos">(</span><span class="pl-s1">arg1</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">,</span> <span class="pl-s1">arg4</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">arg1</span> <span class="pl-c1">=</span> <span class="pl-s1">arg1</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg2</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg3</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg4</span> <span class="pl-c1">=</span> <span class="pl-s1">arg4</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">constructorTestClass</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> <ul dir="auto"> <li>escapedIdentifiers.js</li> </ul>
<p dir="auto"><strong>Expected</strong>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module moduleType\u0032 { export var baz2: number; } //// [escapedIdentifiers.js] var moduleType\u0032; (function (moduleType2) { })(moduleType\u0032 || (moduleType\u0032 = {}));"><pre class="notranslate"><span class="pl-smi">module</span> <span class="pl-s1">moduleType\u0032</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">baz2</span>: <span class="pl-s1">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">//// [escapedIdentifiers.js]</span> <span class="pl-k">var</span> <span class="pl-s1">moduleType\u0032</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-s1">moduleType2</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">moduleType\u0032</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">moduleType\u0032</span> <span class="pl-c1">=</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>Actual</strong>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module moduleType\u0032 { export var baz2: number; } //// [escapedIdentifiers.js] var moduleType2; (function (moduleType\u0032) { })(moduleType2 || (moduleType2 = {}));"><pre class="notranslate"><span class="pl-smi">module</span> <span class="pl-s1">moduleType\u0032</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">baz2</span>: <span class="pl-s1">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">//// [escapedIdentifiers.js]</span> <span class="pl-k">var</span> <span class="pl-s1">moduleType2</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-s1">moduleType\u0032</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">moduleType2</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">moduleType2</span> <span class="pl-c1">=</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">And in property names:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// constructors class constructorTestClass { constructor (public arg1: number,public arg\u0032: string,public arg\u0033: boolean,public arg4: number) { } }"><pre class="notranslate"><span class="pl-c">// constructors</span> <span class="pl-k">class</span> <span class="pl-s1">constructorTestClass</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span> <span class="pl-kos">(</span><span class="pl-s1">public</span> <span class="pl-s1">arg1</span>: <span class="pl-s1">number</span><span class="pl-kos">,</span><span class="pl-s1">public</span> <span class="pl-s1">arg\u0032</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span><span class="pl-s1">public</span> <span class="pl-s1">arg\u0033</span>: <span class="pl-s1">boolean</span><span class="pl-kos">,</span><span class="pl-s1">public</span> <span class="pl-s1">arg4</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></pre></div> <p dir="auto">Expected:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// constructors var constructorTestClass = (function () { function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) { this.arg1 = arg1; this.arg\u0032 = arg\u0032; this.arg\u0033 = arg\u0033; this.arg4 = arg4; } return constructorTestClass; }());"><pre class="notranslate"><span class="pl-c">// constructors</span> <span class="pl-k">var</span> <span class="pl-s1">constructorTestClass</span> <span class="pl-c1">=</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-k">function</span> <span class="pl-s1">constructorTestClass</span><span class="pl-kos">(</span><span class="pl-s1">arg1</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">,</span> <span class="pl-s1">arg4</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">arg1</span> <span class="pl-c1">=</span> <span class="pl-s1">arg1</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0032</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg\u0033</span> <span class="pl-c1">=</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg4</span> <span class="pl-c1">=</span> <span class="pl-s1">arg4</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">constructorTestClass</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">Actual:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// constructors var constructorTestClass = (function () { function constructorTestClass(arg1, arg\u0032, arg\u0033, arg4) { this.arg1 = arg1; this.arg2 = arg2; this.arg3 = arg3; this.arg4 = arg4; } return constructorTestClass; }());"><pre class="notranslate"><span class="pl-c">// constructors</span> <span class="pl-k">var</span> <span class="pl-s1">constructorTestClass</span> <span class="pl-c1">=</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-k">function</span> <span class="pl-s1">constructorTestClass</span><span class="pl-kos">(</span><span class="pl-s1">arg1</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0032</span><span class="pl-kos">,</span> <span class="pl-s1">arg\u0033</span><span class="pl-kos">,</span> <span class="pl-s1">arg4</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">arg1</span> <span class="pl-c1">=</span> <span class="pl-s1">arg1</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg2</span> <span class="pl-c1">=</span> <span class="pl-s1">arg2</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg3</span> <span class="pl-c1">=</span> <span class="pl-s1">arg3</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arg4</span> <span class="pl-c1">=</span> <span class="pl-s1">arg4</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">constructorTestClass</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">Failed tests:</p> <ul dir="auto"> <li>escapedIdentifiers</li> </ul>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The FigureCanvasBase defines the signatures of various event handlers, such as <code class="notranslate">motion_notify_event(self, x, y, guiEvent=None)</code>. The qt and wx backends define their own handlers in a GUI-specific fashion (<code class="notranslate">mouseMoveEvent(self, event)</code> for qt (which is the only toolkit to use a subclassing approach), <code class="notranslate">_onMotion(self, evt)</code> + <code class="notranslate">Bind(wx.EVT_MOTION, self._onMotion)</code> for wx); as such, one can programatically trigger an event in a backend-independent fashion on a qt or wx canvas by calling its <code class="notranslate">motion_notify_event</code> method.</p> <p dir="auto">On the other hand, the gtk3 and tk backends, which use a registration approach like wx, <em>redefine</em> <code class="notranslate">motion_notify_event</code> to have a different signature that matches what the GUI toolkit expects. The signature of <code class="notranslate">motion_notify_event</code> is <code class="notranslate">(self, widget, event)</code> on gtk3, and <code class="notranslate">(self, event)</code> on tk.</p> <p dir="auto">Instead, these handlers should be made private (similarly to how the wx backend does), so that calling <code class="notranslate">canvas.motion_notify_event(x, y)</code> truly works in a backend-independent fashion. (Of course, a proper deprecation period can be implemented by temporarily making these methods take <code class="notranslate">*args</code> and dispatch accordingly.)</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Matplotlib version: master/any</li> </ul>
<p dir="auto"><code class="notranslate">FigureCanvas.motion_notify_event</code> and other event handlers have different signatures across backends:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/matplotlib/backends/backend_gtk.py 321: def motion_notify_event(self, widget, event): lib/matplotlib/backends/backend_tkagg.py 386: def motion_notify_event(self, event): lib/matplotlib/backends/backend_gtk3.py 263: def motion_notify_event(self, widget, event):"><pre class="notranslate"><code class="notranslate">lib/matplotlib/backend_bases.py 1893: def motion_notify_event(self, x, y, guiEvent=None): lib/matplotlib/backends/backend_gtk.py 321: def motion_notify_event(self, widget, event): lib/matplotlib/backends/backend_tkagg.py 386: def motion_notify_event(self, event): lib/matplotlib/backends/backend_gtk3.py 263: def motion_notify_event(self, widget, event): </code></pre></div> <p dir="auto">Note that the default signature is written in such a way that one can programmatically trigger an event on the canvas <em>without</em> having to instantiate a native event object, which may be tricky (yes, you could always mock the event but that's obviously not optimal). It would be preferrable if all backends kept the same signature (which would probably involve breaking backcompat).</p>
1
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">In the file 【axios/lib/core/mergeConfig.js】. the 'url ' has existed in 'valueFromConfig2Keys' and 'defaultToConfig2Keys'</p> <p dir="auto">By the way, I think the 'params' shoud exist in 'valueFromConfig2Keys' BUT NOT IN 'mergeDeepPropertiesKeys'</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var valueFromConfig2Keys = ['url', 'method', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; var defaultToConfig2Keys = [ 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', 'maxBodyLength', 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' ];"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">valueFromConfig2Keys</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'url'</span><span class="pl-kos">,</span> <span class="pl-s">'method'</span><span class="pl-kos">,</span> <span class="pl-s">'data'</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">mergeDeepPropertiesKeys</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'headers'</span><span class="pl-kos">,</span> <span class="pl-s">'auth'</span><span class="pl-kos">,</span> <span class="pl-s">'proxy'</span><span class="pl-kos">,</span> <span class="pl-s">'params'</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">defaultToConfig2Keys</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-s">'baseURL'</span><span class="pl-kos">,</span> <span class="pl-s">'url'</span><span class="pl-kos">,</span> <span class="pl-s">'transformRequest'</span><span class="pl-kos">,</span> <span class="pl-s">'transformResponse'</span><span class="pl-kos">,</span> <span class="pl-s">'paramsSerializer'</span><span class="pl-kos">,</span> <span class="pl-s">'timeout'</span><span class="pl-kos">,</span> <span class="pl-s">'withCredentials'</span><span class="pl-kos">,</span> <span class="pl-s">'adapter'</span><span class="pl-kos">,</span> <span class="pl-s">'responseType'</span><span class="pl-kos">,</span> <span class="pl-s">'xsrfCookieName'</span><span class="pl-kos">,</span> <span class="pl-s">'xsrfHeaderName'</span><span class="pl-kos">,</span> <span class="pl-s">'onUploadProgress'</span><span class="pl-kos">,</span> <span class="pl-s">'onDownloadProgress'</span><span class="pl-kos">,</span> <span class="pl-s">'maxContentLength'</span><span class="pl-kos">,</span> <span class="pl-s">'maxBodyLength'</span><span class="pl-kos">,</span> <span class="pl-s">'validateStatus'</span><span class="pl-kos">,</span> <span class="pl-s">'maxRedirects'</span><span class="pl-kos">,</span> <span class="pl-s">'httpAgent'</span><span class="pl-kos">,</span> <span class="pl-s">'httpsAgent'</span><span class="pl-kos">,</span> <span class="pl-s">'cancelToken'</span><span class="pl-kos">,</span> <span class="pl-s">'socketPath'</span><span class="pl-kos">,</span> <span class="pl-s">'responseEncoding'</span> <span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Describe the bug</h4> <p dir="auto">Axios depends on follow-redirects version 1.14.4.</p> <p dir="auto">There's a CVE that allows cookie exposure through redirects (described <a href="https://huntr.dev/bounties/fc524e4b-ebb6-427d-ab67-a64181020406/" rel="nofollow">here</a>). This CVE was fixed in follow-redirects v1.14.17.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">Run a vulnerability scan</p> <h4 dir="auto">Expected behavior</h4> <p dir="auto">Depend on follow-redirects v1.14.17 or later.</p> <h4 dir="auto">Environment</h4> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1095413168" data-permission-text="Title is private" data-url="https://github.com/follow-redirects/follow-redirects/issues/183" data-hovercard-type="issue" data-hovercard-url="/follow-redirects/follow-redirects/issues/183/hovercard" href="https://github.com/follow-redirects/follow-redirects/issues/183">follow-redirects/follow-redirects#183</a></p>
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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Router.push has {scroll:false} option like Link component for back to previous scroll position</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Router.push has no {scroll:false} option</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <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></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Hello. I try to insert a html comment in the _document, but when rendering a page, the comment falls into the text in body. Is there a solution to the problem?</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.0</td> </tr> <tr> <td>node</td> <td>9.5.0</td> </tr> <tr> <td>OS</td> <td>win 10</td> </tr> <tr> <td>browser</td> <td>chrome 64</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</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/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</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/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</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/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.4.5 (cliffs) kombu:4.6.10 py:3.7.5 billiard:3.6.3.0 py-amqp:2.6.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.3.0-59-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled broker_url: 'amqp://guest:********@localhost:5672//' task_default_queue: 'default' task_queue_max_priority: 100 task_default_priority: 5 worker_prefetch_multiplier: 1 task_acks_late: True"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.5 (cliffs) kombu:4.6.10 py:3.7.5 billiard:3.6.3.0 py-amqp:2.6.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.3.0-59-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled broker_url: 'amqp://guest:********@localhost:5672//' task_default_queue: 'default' task_queue_max_priority: 100 task_default_priority: 5 worker_prefetch_multiplier: 1 task_acks_late: True </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.7.5</li> <li><strong>Minimal Celery Version</strong>: 4.4.2 or master</li> <li><strong>Minimal Kombu Version</strong>: 4.6.10</li> <li><strong>Minimal Broker Version</strong>: rabbitmq 3.8.2</li> <li><strong>Minimal Result Backend Version</strong>: N/A</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Linux-5.3.0-59-generic-x86_64-with-Ubuntu-19.10-eoan 2020-06-18 10:30:24</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.6.0 billiard==3.6.3.0 celery==4.4.5 future==0.18.2 importlib-metadata==1.6.1 kombu==4.6.10 pika==1.1.0 pytz==2020.1 vine==1.3.0 zipp==3.1.0"><pre class="notranslate"><code class="notranslate">amqp==2.6.0 billiard==3.6.3.0 celery==4.4.5 future==0.18.2 importlib-metadata==1.6.1 kombu==4.6.10 pika==1.1.0 pytz==2020.1 vine==1.3.0 zipp==3.1.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> app.py : </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import celery import time app = celery.Celery(&quot;app&quot;, broker=&quot;amqp://guest:guest@localhost//&quot;) app.conf.task_default_queue = &quot;default&quot; app.conf.task_queue_max_priority = 100 app.conf.task_default_priority = 5 app.conf.worker_prefetch_multiplier = 1 app.conf.task_acks_late = True @app.task def dummy_low(): time.sleep(5) print(&quot;dummy_low.&quot;) @app.task def dummy_high(): time.sleep(5) print(&quot;dummy_high.&quot;) def main(): print(&quot;Creating low prio tasks...&quot;) for i in range(2000): dummy_low.apply_async(priority=5) print(&quot;Adding high prio task chain...&quot;) tasks = dummy_high.si() for i in range(100): tasks = tasks | dummy_high.si() tasks.apply_async(priority=8) if __name__ == &quot;__main__&quot;: main() "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-v">Celery</span>(<span class="pl-s">"app"</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">"amqp://guest:guest@localhost//"</span>) <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_default_queue</span> <span class="pl-c1">=</span> <span class="pl-s">"default"</span> <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_queue_max_priority</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_default_priority</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span> <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">worker_prefetch_multiplier</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_acks_late</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">dummy_low</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">5</span>) <span class="pl-en">print</span>(<span class="pl-s">"dummy_low."</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">dummy_high</span>(): <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">5</span>) <span class="pl-en">print</span>(<span class="pl-s">"dummy_high."</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-en">print</span>(<span class="pl-s">"Creating low prio tasks..."</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-c1">2000</span>): <span class="pl-s1">dummy_low</span>.<span class="pl-en">apply_async</span>(<span class="pl-s1">priority</span><span class="pl-c1">=</span><span class="pl-c1">5</span>) <span class="pl-en">print</span>(<span class="pl-s">"Adding high prio task chain..."</span>) <span class="pl-s1">tasks</span> <span class="pl-c1">=</span> <span class="pl-s1">dummy_high</span>.<span class="pl-en">si</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-c1">100</span>): <span class="pl-s1">tasks</span> <span class="pl-c1">=</span> <span class="pl-s1">tasks</span> <span class="pl-c1">|</span> <span class="pl-s1">dummy_high</span>.<span class="pl-en">si</span>() <span class="pl-s1">tasks</span>.<span class="pl-en">apply_async</span>(<span class="pl-s1">priority</span><span class="pl-c1">=</span><span class="pl-c1">8</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-en">main</span>()</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">High priority tasks are executed before the low priority tasks.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Only one (the first of the chain) high priority task is executed right away. The others are not priorized and thus not executed before the end of the low-priority tasks.</p> <p dir="auto">Please note that this <strong>doesn't happen with non-chained tasks or with grouped tasks.</strong> (with non-chained tasks or grouped tasks, priorities are respected.)</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <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/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br> for similar or identical feature requests.</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/celery/celery/pulls?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br> for existing proposed implementations of this feature.</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/celery/celery/commits/master">commit log</a><br> to find out if the if the same feature was already implemented in the<br> master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">I would like to be able to access arbitrary AMQP message properties (e.g. <code class="notranslate">user-id</code>) within my tasks.</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">If the message received from the transport has a <code class="notranslate">properties</code> attribute, a reference to the value should be available in the <code class="notranslate">app.task.Context</code> instance available as <code class="notranslate">self.request</code> in a bound task. If there is no <code class="notranslate">properties</code> attribute, the new <code class="notranslate">Context</code> attribute may be set to <code class="notranslate">None</code>.</p> <h2 dir="auto">Proposed UI/UX</h2> <p dir="auto">The new attribute in <code class="notranslate">app.task.Context</code> might be named <code class="notranslate">properties</code>.</p> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">Application-defined headers are already available to the task, but some functionality may be provided through broker interactions which cannot be replicated using application-defined headers (e.g. RabbitMQ's validated User-ID).<br> Another option would be to expose each of the remaining AMQP 0-9-1 message properties on the <code class="notranslate">app.task.Context</code> object similar to <code class="notranslate">reply_to</code>. This would have the disadvantage of introducing broker-specific logic.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7839?redirect=false" rel="nofollow">SPR-7839</a></strong> and commented</p> <p dir="auto">This is effecting the mvc-showcase sample after upgrading from 3.0.4 to 3.0.5.</p> <p dir="auto">In the failing scenario, I'm attempting to bind to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public class JavaBean { private NestedBean nested; } public class NestedBean { private String foo; private List&lt;NestedBean&gt; list; private Map&lt;String, NestedBean&gt; map; }"><pre class="notranslate"><code class="notranslate">public class JavaBean { private NestedBean nested; } public class NestedBean { private String foo; private List&lt;NestedBean&gt; list; private Map&lt;String, NestedBean&gt; map; } </code></pre></div> <p dir="auto">(Note: getters and setters have been omitted for brevity)</p> <p dir="auto">The actual binding expression is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://localhost:8080/mvc-showcase/convert/bean?nested.foo=bar&amp;nested.list[0].foo=baz&amp;nested.map[key].list[0].foo=bip"><pre class="notranslate"><code class="notranslate">http://localhost:8080/mvc-showcase/convert/bean?nested.foo=bar&amp;nested.list[0].foo=baz&amp;nested.map[key].list[0].foo=bip </code></pre></div> <p dir="auto">During binding, the "nested" property is initially null and the expectation is "auto-grow" behavior will kick-in.</p> <p dir="auto">The stack trace of the runtime exception that is thrown is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.springframework.beans.NullValueInNestedPathException: Invalid property 'nested.map[key]' of bean class [org.springframework.samples.mvc.convert.JavaBean]: Could not determine property type for auto-growing a default value org.springframework.beans.BeanWrapperImpl.createDefaultPropertyValue(BeanWrapperImpl.java:601) org.springframework.beans.BeanWrapperImpl.setDefaultValue(BeanWrapperImpl.java:593) org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:558) org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:532) org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:533) org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76) org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:673) org.springframework.validation.DataBinder.doBind(DataBinder.java:569) org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:191) org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:110) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:736) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doBind(HandlerMethodInvoker.java:805) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:359) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.springframework.samples.mvc.flash.FlashMapFilter.doFilterInternal(FlashMapFilter.java:33) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) "><pre class="notranslate"><code class="notranslate">org.springframework.beans.NullValueInNestedPathException: Invalid property 'nested.map[key]' of bean class [org.springframework.samples.mvc.convert.JavaBean]: Could not determine property type for auto-growing a default value org.springframework.beans.BeanWrapperImpl.createDefaultPropertyValue(BeanWrapperImpl.java:601) org.springframework.beans.BeanWrapperImpl.setDefaultValue(BeanWrapperImpl.java:593) org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:558) org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:532) org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:533) org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76) org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:673) org.springframework.validation.DataBinder.doBind(DataBinder.java:569) org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:191) org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:110) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:736) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doBind(HandlerMethodInvoker.java:805) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:359) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.springframework.samples.mvc.flash.FlashMapFilter.doFilterInternal(FlashMapFilter.java:33) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108524" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12370" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12370/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12370">#12370</a> Regression binding to nested properties on map values with auto-grow (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bosmon" rel="nofollow">Antranig Basman</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2981?redirect=false" rel="nofollow">SPR-2981</a></strong>* and commented</p> <p dir="auto">When making large numbers of instantiations, in particular at short scopes such as within an HTTP request, Spring core performance can become a bottleneck. Note that this appears to be an orthogonal problem to that referred to in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398072320" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7460" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7460/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7460">#7460</a> since this affects singleton and non-singleton beans alike, even (and, actually especially) in a single-threaded context. This is suggested also by the fact that this speed test is affected relatively little by the change from Spring 1.2.8 to 2.0.1 (slows by around 4%)</p> <p dir="auto">There is a test project in our SVN tagged at <a href="https://saffron.caret.cam.ac.uk/svn/projects/TestRSAC/tags/J-ServletUtil-1.2" rel="nofollow">https://saffron.caret.cam.ac.uk/svn/projects/TestRSAC/tags/J-ServletUtil-1.2</a> which demonstrates the issue. A modest-sized container (30 beans with varying numbers of properties from 1 to 13) is fired up in various versions of Spring, and is subjected to repeated cycles of a fetch of the most derived bean followed by a call to destroySingletons(). This stabilises in the region of 8ms per instantiation of the bean set (for these 30 beans, on a fairly modest laptop). This would obviously be an unacceptable per-request overhead if occuring on each HTTP cycle.</p> <p dir="auto">It's worth comparing this much lower figure with that of the 6-bean container in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398072320" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7460" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7460/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7460">#7460</a> - I think much of the difference lies in the considerably greater number of properties (some of which require conversion) on the beans in this test, which is more representative of a real-world container. For comparison purposes a run with a SINGLE leaf bean instantiates the container in only 22 microseconds, more than 400 times faster - demonstrating that the overhead is really a per-bean one, and strongly penalising beans with larger and more complex property sets.</p> <p dir="auto">Profiling suggests that around 30% of the time is being lost in Sun introspection code, and a further 30% in instantiation of BeanWrapperImpl objects, which appear to be fabricated in a complete fresh set for every property set. Synchronisation also seems to be a significant part of the overhead. Even with removal of those first two two sources of overhead, the lag from this test instantation still couldn't be overwhelmingly expected to be &lt;1ms, which is still somewhat dubious.</p> <p dir="auto">This is the main reason for development of "RSAC", a lightweight "Spring core" workalike, which sacrifices a good deal of Spring's flexibility (multi-threaded access, dynamic modifications to container heirarchy) in order to focus on the core cases of instantiations of and access to a set of beans bound to a single thread (typically within an HTTP request). Request-scope IoC has proved a big architectural benefit for the coherence and portability of RSF, and it would be marvellous if at some point we could stop maintaining RSAC and have similar capabilities within the Spring core :P - post 2.0 it now seems conceivable that this could become packaged as some new kind of Scope within Spring.</p> <p dir="auto">General notes on RSAC at <a href="http://www2.caret.cam.ac.uk/rsfwiki/Wiki.jsp?page=RSAC" rel="nofollow">http://www2.caret.cam.ac.uk/rsfwiki/Wiki.jsp?page=RSAC</a> - the key points are that most of Spring core is implemented (with the notable exceptions of constructor injection and autowiring), and since it relies on genuine Spring core for reading BeanDefinitions it is immune to upgrades in the container file format. RSAC is generally around 50-80x faster at Spring proper at instantiating the TestRSAC context file. Raw numbers follow:</p> <p dir="auto">Results (1.8Ghz Pentium M, SpeedStep engaged, JDK 1.4.2, Windows 2000)</p> <p dir="auto">Main container (requestscope.xml, 30 beans)</p> <p dir="auto">Spring 1.2.8:<br> 1000 instantations in 24695 ms: 24.695ms/instance<br> 10000 instantations in 239705 ms: 23.970ms/instance<br> Spring 2.0.1: 1000 instantations in 25296 ms: 25.296ms/instance<br> RSAC 1.2:<br> 1000 instantations in 631 ms: 0.631ms/instance<br> 10000 instantations in 4066 ms: 0.407ms/instance<br> 100000 instantations in 38085 ms: 0.381ms/instance</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(SpeedStep disengaged, maximum CPU) "><pre class="notranslate"><code class="notranslate">(SpeedStep disengaged, maximum CPU) </code></pre></div> <p dir="auto">Spring 1.2.8: 1000 instantations in 8232 ms: 8.232ms/instance<br> RSAC 1.2: 10000 instantations in 1342 ms: 0.134ms/instance</p> <p dir="auto">Tiny container (tinyrequestscope.xml, 1 bean, maximum CPU)</p> <p dir="auto">Spring 1.2.8: 1000000 instantations in 21701 ms: 0.022ms/instance<br> RSAC 1.2: 10000000 instantations in 16044 ms: 0.0016ms/instance</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077580" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8109" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8109/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8109">#8109</a> Spring Bean Factory creation of Prototype (non-singleton) beans causes serious performance degradation under load (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398072320" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7460" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7460/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7460">#7460</a> Poor performance creating non-singleton beans with many threads</li> </ul> <p dir="auto">2 votes, 5 watchers</p>
0
<p dir="auto">Hi guys, I have searched around existing <code class="notranslate">Elvis Operator</code> in TS and no result has found. That`s why I propose include this ability.</p> <p dir="auto">For example, like in C# or Groovy we can write next expression</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let result = somevalue?.name;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">somevalue</span><span class="pl-kos">?.</span><span class="pl-c1">name</span><span class="pl-kos">;</span></pre></div> <p dir="auto">it desugared to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var result = somevalue!==undefined?somevalue.name:undefined;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">somevalue</span><span class="pl-c1">!==</span><span class="pl-c1">undefined</span>?<span class="pl-s1">somevalue</span><span class="pl-kos">.</span><span class="pl-c1">name</span>:<span class="pl-c1">undefined</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Is it good idea, or it has already discussed?</p>
<h1 dir="auto">Current Status</h1> <ul dir="auto"> <li>The TC39 proposal is now at stage 3 (<g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji>)</li> <li>Implementation is in progress</li> <li>You can expect this feature in TypeScript 3.7</li> <li>We'll update here when it's available in a nightly build</li> <li>Holding off on Optional Call until its semantics are clarified at committee</li> </ul> <p dir="auto">Open questions</p> <ul dir="auto"> <li>What special-casing, if any, should <code class="notranslate">document.all</code> get?</li> </ul> <hr> <p dir="auto">C# and other languages have syntax sugar for accessing property chains where <code class="notranslate">null</code> (or in our case, <code class="notranslate">undefined</code>) might be encountered at any point in the object hierarchy.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x = { y: { z: null, q: undefined } }; console.log(x?.y?.z?.foo); // Should print 'null' console.log(x?.baz); // Still an error console.log(x.y.q?.bar); // Should print 'undefined'"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">y</span>: <span class="pl-kos">{</span> <span class="pl-c1">z</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">q</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">?.</span><span class="pl-c1">y</span><span class="pl-kos">?.</span><span class="pl-c1">z</span><span class="pl-kos">?.</span><span class="pl-c1">foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Should print 'null'</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">x</span><span class="pl-kos">?.</span><span class="pl-c1">baz</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Still an error</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">x</span><span class="pl-kos">.</span><span class="pl-c1">y</span><span class="pl-kos">.</span><span class="pl-c1">q</span><span class="pl-kos">?.</span><span class="pl-c1">bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Should print 'undefined'</span></pre></div> <p dir="auto">Need proposal on what exactly we should codegen, keeping in mind side effects of accessors.</p> <hr> <p dir="auto"><em><strong>Edit by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DanielRosenwasser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DanielRosenwasser">@DanielRosenwasser</a> February 27, 2018:</strong> This proposal is also called the "null propagation" operator.</em></p>
1
<p dir="auto">Hey</p> <p dir="auto">it might be a noob question but i tried using it in react native and all hell broke loose ... since all these are react components ... any idea why it cannot be used in react native? (i am a bit disappointed about this)</p> <p dir="auto">thanks<br> Rares</p>
<p dir="auto">version 0.14.1 produces this error:<br> Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's <code class="notranslate">render</code> method, or you have multiple copies of React loaded (details: <a href="https://fb.me/react-refs-must-have-owner" rel="nofollow">https://fb.me/react-refs-must-have-owner</a>).</p> <p dir="auto">If remove node_modules/material-ui/node_modules/react,the error isn't present.</p>
0
<p dir="auto">I've just changed a component from <code class="notranslate">class Header extends React.Component</code> to <code class="notranslate">const Header = (props) =&gt; (/*JSX here*/ )</code>.</p> <p dir="auto">Now one of my tests is failing because it can't find an instance of that component where there should be one. This line of code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Header from '../../header'; //... let header = TestUtils.findRenderedComponentWithType(myRenderedPage, Header); //I then need to simulate a click on a button that's inside the header component."><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Header</span> <span class="pl-k">from</span> <span class="pl-s">'../../header'</span><span class="pl-kos">;</span> <span class="pl-c">//...</span> <span class="pl-k">let</span> <span class="pl-s1">header</span> <span class="pl-c1">=</span> <span class="pl-v">TestUtils</span><span class="pl-kos">.</span><span class="pl-en">findRenderedComponentWithType</span><span class="pl-kos">(</span><span class="pl-s1">myRenderedPage</span><span class="pl-kos">,</span> <span class="pl-v">Header</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//I then need to simulate a click on a button that's inside the header component.</span></pre></div> <p dir="auto">Gives this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Did not find exactly one match for componentType:function Header(props) { return _react2['default'].createElement( //component implementation here ); } (found 0)"><pre class="notranslate"><code class="notranslate">Error: Did not find exactly one match for componentType:function Header(props) { return _react2['default'].createElement( //component implementation here ); } (found 0) </code></pre></div> <p dir="auto">I'm <em>guessing</em> it's because the function that I'm importing in my test file (i.e. <code class="notranslate">Header</code>) is not the same one that was used to create the component in my actual code, because each place that imports a function gets its own instance of it. Which means that the types never match according to TestUtils. And before it must have worked because ES6 classes are unique somehow, so you always import the same thing?</p> <p dir="auto">Is this expected behaviour when using functional components, or is there something I'm missing?</p>
<p dir="auto">I originally left a comment in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107717775" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4936" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/4936/hovercard" href="https://github.com/facebook/react/issues/4936">#4936</a>, but I felt this might be better as a separate issue.</p> <blockquote> <p dir="auto">I completely agree with the rationale behind no backing instances and no refs for stateless components. I want to use pure stateless components as much as possible.</p> <p dir="auto">However, I'm running into instances where testing stateless components gets tricky. For the most part, using the shallow renderer to render a stateless component has been fine. I can then make assertions on expected props and children. To reduce the duplication, I abstract out the shallow renderer process to a helper function.</p> <p dir="auto">When, I want to test events, though, I have to take a different route. If my component takes an <code class="notranslate">onClick</code> prop, then I wrap it in a class component, so I can access the DOM node to simulate my click event. Again, this isn't a huge deal because I can abstract out the wrap/render process into a helper function.</p> <p dir="auto">I bring all this up because I feel that it would be nice to have better facilities in <code class="notranslate">TestUtils</code> for stateless components. I don't think the answer is allowing <code class="notranslate">ReactDOM.findDOMNode</code> to work on stateless components because that opens up it to abuse in normal application code. Are you open to allowing extra functions in <code class="notranslate">TestUtils</code> to simplify the process of testing stateless components? Or am I creating a code smell in my testing?</p> <p dir="auto">I'd be happy to create a PR for <code class="notranslate">TestUtils</code> if you think some more helper functions for stateless components would be beneficial.</p> </blockquote>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">I want to report a bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">eslint --fix trying to break my hook)</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p> <p dir="auto">I have a very simple hook:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useEffect, useState } from 'react' export function useSwitchTab(trigger, tabsAmount, initialState = 0) { const [currentTab, setTab] = useState(initialState - 1) useEffect(() =&gt; { setTab(currentTab + 1 &gt;= tabsAmount ? 0 : currentTab + 1) }, [tabsAmount, trigger]) return [currentTab, setTab] }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span><span class="pl-kos">,</span> <span class="pl-s1">useState</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">useSwitchTab</span><span class="pl-kos">(</span><span class="pl-s1">trigger</span><span class="pl-kos">,</span> <span class="pl-s1">tabsAmount</span><span class="pl-kos">,</span> <span class="pl-s1">initialState</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-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">currentTab</span><span class="pl-kos">,</span> <span class="pl-s1">setTab</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s1">initialState</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">useEffect</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">setTab</span><span class="pl-kos">(</span><span class="pl-s1">currentTab</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-c1">&gt;=</span> <span class="pl-s1">tabsAmount</span> ? <span class="pl-c1">0</span> : <span class="pl-s1">currentTab</span> <span class="pl-c1">+</span> <span class="pl-c1">1</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">tabsAmount</span><span class="pl-kos">,</span> <span class="pl-s1">trigger</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-s1">currentTab</span><span class="pl-kos">,</span> <span class="pl-s1">setTab</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">If props <code class="notranslate">tabsAmount</code> or <code class="notranslate">trigger</code> will change, I need to increase <code class="notranslate">currentTab</code> value by 1. It works fine and looks ok for me, but in <code class="notranslate">eslint-plugin-react-hook</code> rule <code class="notranslate">react-hooks/exhaustive-deps</code> will warn here:</p> <blockquote> <p dir="auto">React Hook useEffect has a missing dependency: 'currentTab'. Either include it or remove the dependency array. You can also do a functional update 'setTab(c =&gt; ...)' if you only need 'c<br> urrentTab' in the 'setTab' call react-hooks/exhaustive-deps</p> </blockquote> <p dir="auto">And eslint --fix will break my code like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useEffect, useState } from 'react' export function useSwitchTab(trigger, tabsAmount, initialState = 0) { const [currentTab, setTab] = useState(initialState - 1) useEffect(() =&gt; { setTab(currentTab + 1 &gt;= tabsAmount ? 0 : currentTab + 1) }, [currentTab, tabsAmount, trigger]) return [currentTab, setTab] }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span><span class="pl-kos">,</span> <span class="pl-s1">useState</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">useSwitchTab</span><span class="pl-kos">(</span><span class="pl-s1">trigger</span><span class="pl-kos">,</span> <span class="pl-s1">tabsAmount</span><span class="pl-kos">,</span> <span class="pl-s1">initialState</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-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">currentTab</span><span class="pl-kos">,</span> <span class="pl-s1">setTab</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s1">initialState</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">useEffect</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">setTab</span><span class="pl-kos">(</span><span class="pl-s1">currentTab</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-c1">&gt;=</span> <span class="pl-s1">tabsAmount</span> ? <span class="pl-c1">0</span> : <span class="pl-s1">currentTab</span> <span class="pl-c1">+</span> <span class="pl-c1">1</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">currentTab</span><span class="pl-kos">,</span> <span class="pl-s1">tabsAmount</span><span class="pl-kos">,</span> <span class="pl-s1">trigger</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-s1">currentTab</span><span class="pl-kos">,</span> <span class="pl-s1">setTab</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">It will add <code class="notranslate">currentTab</code> in deps for useEffect and this will create <strong>endless loop</strong>.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Eslint shouldn't fix this warning with --fix option, It may break the code.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">react: 16.8.5<br> eslint-plugin-react-hooks: 1.6.0</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> Consider:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Example({ fetchData, someArg }) { let data = 'defaultValue'; useEffect(() =&gt; { data = fetchData(someArg); }, [someArg]); return JSON.stringify(data); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Example</span><span class="pl-kos">(</span><span class="pl-kos">{</span> fetchData<span class="pl-kos">,</span> someArg <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">data</span> <span class="pl-c1">=</span> <span class="pl-s">'defaultValue'</span><span class="pl-kos">;</span> <span class="pl-en">useEffect</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">data</span> <span class="pl-c1">=</span> <span class="pl-en">fetchData</span><span class="pl-kos">(</span><span class="pl-s1">someArg</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">someArg</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-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 class="pl-kos">}</span></pre></div> <p dir="auto">auto fix will automatically change this to:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Example({ fetchData, someArg }) { let data = 'defaultValue'; useEffect(() =&gt; { data = fetchData(someArg); }, [someArg, fetchData]); return JSON.stringify(data); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Example</span><span class="pl-kos">(</span><span class="pl-kos">{</span> fetchData<span class="pl-kos">,</span> someArg <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">data</span> <span class="pl-c1">=</span> <span class="pl-s">'defaultValue'</span><span class="pl-kos">;</span> <span class="pl-en">useEffect</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">data</span> <span class="pl-c1">=</span> <span class="pl-en">fetchData</span><span class="pl-kos">(</span><span class="pl-s1">someArg</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">someArg</span><span class="pl-kos">,</span> <span class="pl-s1">fetchData</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-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 class="pl-kos">}</span></pre></div> <p dir="auto">Here we have a simple data fetch component that should refetch data when parameters change, but not when the fetch function changes. Whether this is right or not, it is legitimate code, that the lint fix will cause serious problems in the code if it is used like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function ExmapleUsage({ fetchData }) { return &lt;Example fetchData={( arg ) =&gt; fetchData('Hello World', arg)} someArg=&quot;Goodbye&quot; /&gt; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">ExmapleUsage</span><span class="pl-kos">(</span><span class="pl-kos">{</span> fetchData <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Example</span> <span class="pl-c1">fetchData</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span> <span class="pl-s1">arg</span> <span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">fetchData</span><span class="pl-kos">(</span><span class="pl-s">'Hello World'</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">someArg</span><span class="pl-c1">=</span><span class="pl-s">"Goodbye"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto"><a href="https://eslint.org/docs/developer-guide/working-with-rules#applying-fixes" rel="nofollow">Eslint best practices</a> say that fix rules should not change functionality of code, so that you can safely run fix and expect no functional changes to be made. This rule directly breaks that. I as a repo maintainer see the auto fix as a greater risk than the problems the lint rule prevents. If autofix was turned off, the rule would be entirely a positive.<br> Unfortunately, <a href="https://github.com/eslint/eslint/issues/7549" data-hovercard-type="issue" data-hovercard-url="/eslint/eslint/issues/7549/hovercard">ESLint also has rejected the idea of disabling autofix for certain rules</a>. So not following best practices is not ideal.<br> <strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">Not a React Bug but a lint rule.</p>
1
<p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\abc\AppData\Roaming\npm-cache_logs\2020-11-03T13_58_52_163Z-debug.log</p> <p dir="auto">please help me to get fix this</p>
<h3 dir="auto">*Updated* as of 01/15/2021</h3> <p dir="auto"><strong>Note: Please read <a href="https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22">this doc</a> before filing a new issue.</strong></p>
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="In [2]: df = pd.DataFrame([[1], [2], [3.3]]) In [3]: df.groupby([1,1,1]).agg(len) Out[3]: 0 1 3.0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</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-c1">1</span>], [<span class="pl-c1">2</span>], [<span class="pl-c1">3.3</span>]]) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>]).<span class="pl-en">agg</span>(<span class="pl-s1">len</span>) <span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">3.0</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The result of <code class="notranslate">len</code> should be <code class="notranslate">int</code>, regardless of the input. This is not specific to <code class="notranslate">len</code>: <code class="notranslate">lambda x : 3</code> results in the same.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Compare to</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [4]: df.apply(len) Out[4]: 0 3 dtype: int64 In [5]: df.groupby([1,1,1]).apply(len) Out[5]: 1 3 dtype: int64 In [6]: df.astype(int).groupby([1,1,1]).agg(len) Out[6]: 0 1 3 "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">df</span>.<span class="pl-en">apply</span>(<span class="pl-s1">len</span>) <span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-c1">0</span> <span class="pl-c1">3</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">df</span>.<span class="pl-en">groupby</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>]).<span class="pl-en">apply</span>(<span class="pl-s1">len</span>) <span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-c1">1</span> <span class="pl-c1">3</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">df</span>.<span class="pl-en">astype</span>(<span class="pl-s1">int</span>).<span class="pl-en">groupby</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>]).<span class="pl-en">agg</span>(<span class="pl-s1">len</span>) <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/9e7666dae3b3b10d987ce154a51c78bcee6e0728/hovercard" href="https://github.com/pandas-dev/pandas/commit/9e7666dae3b3b10d987ce154a51c78bcee6e0728"><tt>9e7666d</tt></a> python: 3.5.3.final.0 python-bits: 64 OS: Linux OS-release: 4.9.0-3-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: it_IT.UTF-8 LOCALE: it_IT.UTF-8 <p dir="auto">pandas: 0.21.0.dev+265.g9e7666dae<br> pytest: 3.0.6<br> pip: 9.0.1<br> setuptools: None<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> xarray: None<br> IPython: 5.1.0.dev<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.3.0<br> numexpr: 2.6.1<br> feather: 0.3.1<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.6<br> lxml: None<br> bs4: 4.5.3<br> html5lib: 0.999999999<br> sqlalchemy: 1.0.15<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: 0.2.1</p> </details>
<p dir="auto">gbq.py currently returns an error if the result of a query is what Google considers to be 'Large'. The google api allows jobs to be sent with a flag to allow large results. It would be very beneficial to provide this as an option in the BigQuery connector.</p>
0
<h2 dir="auto">Summary</h2> <p dir="auto">When configuring <code class="notranslate">ROBOTSTXT_OBEY = True</code> "delay requirement" <code class="notranslate">Crawl-delay:</code> is not considered.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">We want to fully comply with robots.txt requirements.</p> <h2 dir="auto">Workaround</h2> <p dir="auto">Review <code class="notranslate">robots.txt</code> and checking delay config by hand.</p>
<p dir="auto"><a href="http://en.wikipedia.org/wiki/Robots_exclusion_standard#Crawl-delay_directive" rel="nofollow">Crawl-Delay</a> directive in robots.txt looks useful. If it is present the delay suggested there looks like a good way to adjust crawling rate. When crawling unknown domains it can be better than autothrottle.</p> <p dir="auto">A draft implementation: <a href="https://gist.github.com/kmike/76aca46cad18915b8695">https://gist.github.com/kmike/76aca46cad18915b8695</a></p> <p dir="auto">Some notes:</p> <ul dir="auto"> <li>it may be useful to respect only Crawl-Delay but not User-Agent rules, so this middleware is not inherited from an existing middleware;</li> <li>Crawl-Delay maps nicely to Scrapy downloader slots; it is possible to implement this feature without per-request download delays (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37790671" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/802" data-hovercard-type="issue" data-hovercard-url="/scrapy/scrapy/issues/802/hovercard" href="https://github.com/scrapy/scrapy/issues/802">#802</a>) for which semantics are unclear;</li> <li>currently RobotsCrawlDelayMiddleware doesn't use User-Agent because UA set by Scrapy is quite arbitrary, but I'm not sure this is a right thing to do;</li> <li>instead of stdlib robotparser <a href="https://github.com/seomoz/reppy">https://github.com/seomoz/reppy</a> is used; robotparser can't parse robots.txt with Crawl-Delay properly.</li> </ul>
1
<p dir="auto">When i open a modal and click the data-dismiss="modal" button, it closes.<br> But when i reopen the modal and click the close button, nothing happens.</p>
<p dir="auto">Hi,</p> <p dir="auto">The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.</p> <p dir="auto">I am checking on source code line 932, if I commented out this line then it is working again.</p> <p dir="auto">this.$element<br> .removeClass('in')<br> .attr('aria-hidden', true)<br> //.off('click.dismiss.modal')</p> <p dir="auto">Am I missing anything...?</p> <p dir="auto">Sorry for the grammar. Thanks.</p>
1
<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49945943" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8890" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8890/hovercard" href="https://github.com/pandas-dev/pandas/issues/8890">#8890</a>.</p> <p dir="auto">As far as I can tell, the Timestamps for the index generated by <code class="notranslate">iterrows()</code> are 5 hours behind where they should be in this example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [33]: idx = pd.date_range(&quot;2010-01-01 00:00:00-0500&quot;, freq='D', periods=3) In [34]: df = pd.DataFrame([1,2,3], index=[idx]) In [35]: df # this looks correct Out[35]: 0 2010-01-01 00:00:00-05:00 1 2010-01-02 00:00:00-05:00 2 2010-01-03 00:00:00-05:00 3 In [36]: [index for index, row in df.iterrows()] # but this looks wrong: Out[36]: [Timestamp('2009-12-31 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-01 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-02 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D')]"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">33</span>]: <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"2010-01-01 00:00:00-0500"</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">3</span>) <span class="pl-v">In</span> [<span class="pl-c1">34</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-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s1">idx</span>]) <span class="pl-v">In</span> [<span class="pl-c1">35</span>]: <span class="pl-s1">df</span> <span class="pl-c"># this looks correct</span> <span class="pl-v">Out</span>[<span class="pl-c1">35</span>]: <span class="pl-c1">0</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">05</span>:<span class="pl-c1">00</span> <span class="pl-c1">1</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">05</span>:<span class="pl-c1">00</span> <span class="pl-c1">2</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">05</span>:<span class="pl-c1">00</span> <span class="pl-c1">3</span> <span class="pl-v">In</span> [<span class="pl-c1">36</span>]: [<span class="pl-s1">index</span> <span class="pl-k">for</span> <span class="pl-s1">index</span>, <span class="pl-s1">row</span> <span class="pl-c1">in</span> <span class="pl-s1">df</span>.<span class="pl-en">iterrows</span>()] <span class="pl-c"># but this looks wrong:</span> <span class="pl-v">Out</span>[<span class="pl-c1">36</span>]: [<span class="pl-v">Timestamp</span>(<span class="pl-s">'2009-12-31 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-01 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-02 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>)]</pre></div> <p dir="auto">I would have expected <code class="notranslate">iterrows()</code> to produce the same indices as this code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [38]: [df.index[i] for i in range(len(df))] Out[38]: [Timestamp('2010-01-01 00:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-02 00:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-03 00:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D')]"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">38</span>]: [<span class="pl-s1">df</span>.<span class="pl-s1">index</span>[<span class="pl-s1">i</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-en">len</span>(<span class="pl-s1">df</span>))] <span class="pl-v">Out</span>[<span class="pl-c1">38</span>]: [<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-01 00:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-02 00:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-03 00:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>)]</pre></div> <p dir="auto">The <code class="notranslate">row.name</code> is also incorrect:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [37]: [row.name for index, row in df.iterrows()] Out[37]: [Timestamp('2009-12-31 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-01 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D'), Timestamp('2010-01-02 19:00:00-0500', tz='pytz.FixedOffset(-300)', offset='D')]"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">37</span>]: [<span class="pl-s1">row</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">index</span>, <span class="pl-s1">row</span> <span class="pl-c1">in</span> <span class="pl-s1">df</span>.<span class="pl-en">iterrows</span>()] <span class="pl-v">Out</span>[<span class="pl-c1">37</span>]: [<span class="pl-v">Timestamp</span>(<span class="pl-s">'2009-12-31 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-01 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-02 19:00:00-0500'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'pytz.FixedOffset(-300)'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>)]</pre></div> <p dir="auto">But all is fine if we use a geographical timezone instead of a <code class="notranslate">pytz.FixedOffset</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" In [47]: idx = pd.date_range(&quot;2010-01-01 00:00:00&quot;, freq='D', periods=3, tz=&quot;America/New_York&quot;) In [48]: df = pd.DataFrame([1,2,3], index=[idx]) In [49]: [index for index, row in df.iterrows()] Out[49]: [Timestamp('2010-01-01 00:00:00-0456', tz='America/New_York', offset='D'), Timestamp('2010-01-02 00:00:00-0456', tz='America/New_York', offset='D'), Timestamp('2010-01-03 00:00:00-0456', tz='America/New_York', offset='D')] In [50]: df Out[50]: 0 2010-01-01 00:00:00-04:56 1 2010-01-02 00:00:00-04:56 2 2010-01-03 00:00:00-04:56 3"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">47</span>]: <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"2010-01-01 00:00:00"</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">"America/New_York"</span>) <span class="pl-v">In</span> [<span class="pl-c1">48</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-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s1">idx</span>]) <span class="pl-v">In</span> [<span class="pl-c1">49</span>]: [<span class="pl-s1">index</span> <span class="pl-k">for</span> <span class="pl-s1">index</span>, <span class="pl-s1">row</span> <span class="pl-c1">in</span> <span class="pl-s1">df</span>.<span class="pl-en">iterrows</span>()] <span class="pl-v">Out</span>[<span class="pl-c1">49</span>]: [<span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-01 00:00:00-0456'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'America/New_York'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-02 00:00:00-0456'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'America/New_York'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>), <span class="pl-v">Timestamp</span>(<span class="pl-s">'2010-01-03 00:00:00-0456'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'America/New_York'</span>, <span class="pl-s1">offset</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>)] <span class="pl-v">In</span> [<span class="pl-c1">50</span>]: <span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">50</span>]: <span class="pl-c1">0</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">04</span>:<span class="pl-c1">56</span> <span class="pl-c1">1</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">04</span>:<span class="pl-c1">56</span> <span class="pl-c1">2</span> <span class="pl-c1">2010</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">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span><span class="pl-c1">-</span><span class="pl-c1">04</span>:<span class="pl-c1">56</span> <span class="pl-c1">3</span></pre></div> <p dir="auto">Forgive me if I am using Pandas incorrectly!</p> <p dir="auto">Versions:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" In [51]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.8.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-25-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.15.1 nose: 1.3.4 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.14.0 statsmodels: None IPython: 2.3.1 sphinx: 1.2.3 patsy: None dateutil: 2.2 pytz: 2014.10 bottleneck: 0.6.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: 1.8.6 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: None lxml: 3.3.6 bs4: None html5lib: 0.999 httplib2: 0.9 apiclient: None rpy2: 2.3.8 sqlalchemy: None pymysql: None psycopg2: None"><pre class="notranslate"><code class="notranslate"> In [51]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.8.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-25-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.15.1 nose: 1.3.4 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.14.0 statsmodels: None IPython: 2.3.1 sphinx: 1.2.3 patsy: None dateutil: 2.2 pytz: 2014.10 bottleneck: 0.6.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.4.2 openpyxl: 1.8.6 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: None lxml: 3.3.6 bs4: None html5lib: 0.999 httplib2: 0.9 apiclient: None rpy2: 2.3.8 sqlalchemy: None pymysql: None psycopg2: None </code></pre></div> <p dir="auto">(it goes without saying that I'm a huge fan of Pandas!)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data = data.sortlevel() print(data.loc[(&quot;STW AU Equity&quot;, &quot;2014-04-29&quot;), &quot;split&quot;]) data.loc[(&quot;STW AU Equity&quot;, &quot;2014-04-29&quot;), &quot;split&quot;] = 1 print(data.loc[(&quot;STW AU Equity&quot;, &quot;2014-04-29&quot;), &quot;split&quot;]) # result 1.0 symbol date STW AU Equity 2014-04-29 1 2014-04-29 1"><pre class="notranslate"><span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">sortlevel</span>() <span class="pl-en">print</span>(<span class="pl-s1">data</span>.<span class="pl-s1">loc</span>[(<span class="pl-s">"STW AU Equity"</span>, <span class="pl-s">"2014-04-29"</span>), <span class="pl-s">"split"</span>]) <span class="pl-s1">data</span>.<span class="pl-s1">loc</span>[(<span class="pl-s">"STW AU Equity"</span>, <span class="pl-s">"2014-04-29"</span>), <span class="pl-s">"split"</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-en">print</span>(<span class="pl-s1">data</span>.<span class="pl-s1">loc</span>[(<span class="pl-s">"STW AU Equity"</span>, <span class="pl-s">"2014-04-29"</span>), <span class="pl-s">"split"</span>]) <span class="pl-c"># result</span> <span class="pl-c1">1.0</span> <span class="pl-s1">symbol</span> <span class="pl-s1">date</span> <span class="pl-v">STW</span> <span class="pl-v">AU</span> <span class="pl-v">Equity</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">29</span> <span class="pl-c1">1</span> <span class="pl-c1">2014</span><span class="pl-c1">-</span><span class="pl-c1">04</span><span class="pl-c1">-</span><span class="pl-c1">29</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">Is there something I'm doing wrong, or is Pandas duplicating the value instead of updating it? If there's nothing obvious - I'll break out into a self-contained example.</p>
0
<p dir="auto">I have just spent quite some time debugging my code because the absolute value function might return negative values. See the following working example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np np.array([-32768,-3000],dtype=np.dtype('int16')) np.abs(_)"><pre class="notranslate"><code class="notranslate">import numpy as np np.array([-32768,-3000],dtype=np.dtype('int16')) np.abs(_) </code></pre></div> <p dir="auto">While the second value is converted to +3000 as expected, the second value is left untouched. I understand that +32768 is out of range for this datatype but I am interested whether returning -32768 is a concious design choice as I was expecting positive values from this function no matter what.</p>
<p dir="auto">There are some functions that fail when passed <code class="notranslate">Decimal</code> objects as scalar inputs. I'm not particularly interested in using Decimal arrays, for obvious reasons, but the lack of scalar support limits our ability (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="466129553" data-permission-text="Title is private" data-url="https://github.com/Turbo87/utm/issues/40" data-hovercard-type="issue" data-hovercard-url="/Turbo87/utm/issues/40/hovercard" href="https://github.com/Turbo87/utm/issues/40">Turbo87/utm#40</a>) to use numpy as a 'better' math module in a certain sense. I'm not sure if you would consider this a bug or not. Certainly we can work around it easily, if awkwardly.</p> <p dir="auto">Relevant for our use cases, this applies to: <em>amax</em>, <em>amin</em>, <em>sin</em>, <em>cos</em>, <em>degrees</em> and <em>radians</em>. The <em>sqrt</em> function seems to already work however.</p> <p dir="auto">Prior art suggesting that Decimal support is not irrelevant to numpy: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="270785177" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/9952" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/9952/hovercard" href="https://github.com/numpy/numpy/pull/9952">#9952</a></p> <h3 dir="auto">Reproducing code example:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from decimal import Decimal import numpy as np np.sin(Decimal(1))"><pre class="notranslate"><code class="notranslate">from decimal import Decimal import numpy as np np.sin(Decimal(1)) </code></pre></div> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="----&gt; 1 np.sin(Decimal(1)) AttributeError: 'decimal.Decimal' object has no attribute 'sin'"><pre class="notranslate"><code class="notranslate">----&gt; 1 np.sin(Decimal(1)) AttributeError: 'decimal.Decimal' object has no attribute 'sin' </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.4 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]"><pre class="notranslate"><code class="notranslate">1.16.4 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] </code></pre></div>
0
<p dir="auto">the following works quickly in 0.15.2 and has a performance issue on the last operation df.T.duplicated() in 0.16.0 and 0.16.1<br> also on a private data set that works on 0.15.2 i get an error on 0.16.0 and 0.16.1 on the same operation.</p> <p dir="auto">code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas,numpy df = pandas.DataFrame({'A': [1 for x in range(1000)], 'B': [1 for x in range(1000)]}) print (numpy.count_nonzero(df.duplicated())) print (numpy.count_nonzero(df.T.duplicated())) df = pandas.DataFrame({'A': [1 for x in range(1000000)], 'B': [1 for x in range(1000000)]}) print (numpy.count_nonzero(df.duplicated())) print (numpy.count_nonzero(df.T.duplicated())) this is the error i get on the private data set (code not reproduce yet with synthetic data): File &quot;C:\Anaconda3\lib\site-packages\pandas\util\decorators.py&quot;, line 88, in wrapper return func(*args, **kwargs) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\frame.py&quot;, line 2867, in duplicated labels, shape = map(list, zip( * map(f, vals))) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\frame.py&quot;, line 2856, in f labels, shape = factorize(vals, size_hint=min(len(self), _SIZE_HINT_LIMIT)) File &quot;C:\Anaconda3\lib\site-packages\pandas\core\algorithms.py&quot;, line 135, in factorize labels = table.get_labels(vals, uniques, 0, na_sentinel) File &quot;pandas\hashtable.pyx&quot;, line 813, in pandas.hashtable.PyObjectHashTable.get_labels (pandas\hashtable.c:14025) ValueError: Buffer has wrong number of dimensions (expected 1, got 2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span>,<span class="pl-s1">numpy</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'A'</span>: [<span class="pl-c1">1</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1000</span>)], <span class="pl-s">'B'</span>: [<span class="pl-c1">1</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1000</span>)]}) <span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-en">count_nonzero</span>(<span class="pl-s1">df</span>.<span class="pl-en">duplicated</span>())) <span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-en">count_nonzero</span>(<span class="pl-s1">df</span>.<span class="pl-v">T</span>.<span class="pl-en">duplicated</span>())) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'A'</span>: [<span class="pl-c1">1</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1000000</span>)], <span class="pl-s">'B'</span>: [<span class="pl-c1">1</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1000000</span>)]}) <span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-en">count_nonzero</span>(<span class="pl-s1">df</span>.<span class="pl-en">duplicated</span>())) <span class="pl-en">print</span> (<span class="pl-s1">numpy</span>.<span class="pl-en">count_nonzero</span>(<span class="pl-s1">df</span>.<span class="pl-v">T</span>.<span class="pl-en">duplicated</span>())) <span class="pl-s1">this</span> <span class="pl-c1">is</span> <span class="pl-s1">the</span> <span class="pl-s1">error</span> <span class="pl-s1">i</span> <span class="pl-s1">get</span> <span class="pl-s1">on</span> <span class="pl-s1">the</span> <span class="pl-s1">private</span> <span class="pl-s1">data</span> <span class="pl-s1">set</span> (<span class="pl-s1">code</span> <span class="pl-c1">not</span> <span class="pl-s1">reproduce</span> <span class="pl-s1">yet</span> <span class="pl-k">with</span> <span class="pl-s1">synthetic</span> <span class="pl-s1">data</span>): <span class="pl-v">File</span> <span class="pl-s">"C:\Anaconda3\lib\site-packages\pandas\util\decorators.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">88</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapper</span> <span class="pl-s1">return</span> <span class="pl-en">func</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Anaconda3\lib\site-packages\pandas\core<span class="pl-cce">\f</span>rame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2867</span>, <span class="pl-s1">in</span> <span class="pl-s1">duplicated</span> <span class="pl-s1">labels</span>, <span class="pl-s1">shape</span> <span class="pl-c1">=</span> <span class="pl-en">map</span>(<span class="pl-s1">list</span>, <span class="pl-en">zip</span>( <span class="pl-c1">*</span> <span class="pl-en">map</span>(<span class="pl-s1">f</span>, <span class="pl-s1">vals</span>))) <span class="pl-v">File</span> <span class="pl-s">"C:\Anaconda3\lib\site-packages\pandas\core<span class="pl-cce">\f</span>rame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2856</span>, <span class="pl-s1">in</span> <span class="pl-s1">f</span> <span class="pl-s1">labels</span>, <span class="pl-s1">shape</span> <span class="pl-c1">=</span> <span class="pl-en">factorize</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">size_hint</span><span class="pl-c1">=</span><span class="pl-en">min</span>(<span class="pl-en">len</span>(<span class="pl-s1">self</span>), <span class="pl-s1">_SIZE_HINT_LIMIT</span>)) <span class="pl-v">File</span> <span class="pl-s">"C:\Anaconda3\lib\site-packages\pandas\core<span class="pl-cce">\a</span>lgorithms.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">135</span>, <span class="pl-s1">in</span> <span class="pl-s1">factorize</span> <span class="pl-s1">labels</span> <span class="pl-c1">=</span> <span class="pl-s1">table</span>.<span class="pl-en">get_labels</span>(<span class="pl-s1">vals</span>, <span class="pl-s1">uniques</span>, <span class="pl-c1">0</span>, <span class="pl-s1">na_sentinel</span>) <span class="pl-v">File</span> <span class="pl-s">"pandas\hashtable.pyx"</span>, <span class="pl-s1">line</span> <span class="pl-c1">813</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">hashtable</span>.<span class="pl-v">PyObjectHashTable</span>.<span class="pl-en">get_labels</span> (<span class="pl-s1">pandas</span>\h<span class="pl-s1">ashtable</span>.<span class="pl-s1">c</span>:<span class="pl-c1">14025</span>) <span class="pl-v">ValueError</span>: <span class="pl-v">Buffer</span> <span class="pl-s1">has</span> <span class="pl-s1">wrong</span> <span class="pl-s1">number</span> <span class="pl-s1">of</span> <span class="pl-en">dimensions</span> (<span class="pl-s1">expected</span> <span class="pl-c1">1</span>, <span class="pl-s1">got</span> <span class="pl-c1">2</span>)</pre></div>
<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="trange = pd.date_range(start=pd.Timestamp(year=2017, month=1, day=1), end=pd.Timestamp(year=2017, month=1, day=5)) # make a duplicate trange = trange.insert(loc=5, item=pd.Timestamp(year=2017, month=1, day=5)) df = pd.DataFrame(0, index=trange, columns=[&quot;A&quot;, &quot;B&quot;]) bool_idx = np.array([True, False, False, False, False, True]) df.loc[trange[bool_idx], &quot;A&quot;] += 1"><pre class="notranslate"><span class="pl-s1">trange</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">start</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s1">year</span><span class="pl-c1">=</span><span class="pl-c1">2017</span>, <span class="pl-s1">month</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">day</span><span class="pl-c1">=</span><span class="pl-c1">1</span>), <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s1">year</span><span class="pl-c1">=</span><span class="pl-c1">2017</span>, <span class="pl-s1">month</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">day</span><span class="pl-c1">=</span><span class="pl-c1">5</span>)) <span class="pl-c"># make a duplicate</span> <span class="pl-s1">trange</span> <span class="pl-c1">=</span> <span class="pl-s1">trange</span>.<span class="pl-en">insert</span>(<span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">item</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s1">year</span><span class="pl-c1">=</span><span class="pl-c1">2017</span>, <span class="pl-s1">month</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">day</span><span class="pl-c1">=</span><span class="pl-c1">5</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-c1">0</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">trange</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">"A"</span>, <span class="pl-s">"B"</span>]) <span class="pl-s1">bool_idx</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>]) <span class="pl-s1">df</span>.<span class="pl-s1">loc</span>[<span class="pl-s1">trange</span>[<span class="pl-s1">bool_idx</span>], <span class="pl-s">"A"</span>] <span class="pl-c1">+=</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">Throws error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-32-b0e70145e9a6&gt; in &lt;module&gt;() ----&gt; 1 df.loc[trange[bool_idx], &quot;A&quot;] += 1 /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in __setitem__(self, key, value) 176 else: 177 key = com._apply_if_callable(key, self.obj) --&gt; 178 indexer = self._get_setitem_indexer(key) 179 self._setitem_with_indexer(indexer, value) 180 /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _get_setitem_indexer(self, key) 155 if isinstance(key, tuple): 156 try: --&gt; 157 return self._convert_tuple(key, is_setter=True) 158 except IndexingError: 159 pass /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _convert_tuple(self, key, is_setter) 222 if i &gt;= self.obj.ndim: 223 raise IndexingError('Too many indexers') --&gt; 224 idx = self._convert_to_indexer(k, axis=i, is_setter=is_setter) 225 keyidx.append(idx) 226 return tuple(keyidx) /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _convert_to_indexer(self, obj, axis, is_setter) 1228 1229 mask = check == -1 -&gt; 1230 if mask.any(): 1231 raise KeyError('%s not in index' % objarr[mask]) 1232 AttributeError: 'bool' object has no attribute 'any' "><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-32-b0e70145e9a6&gt; in &lt;module&gt;() ----&gt; 1 df.loc[trange[bool_idx], "A"] += 1 /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in __setitem__(self, key, value) 176 else: 177 key = com._apply_if_callable(key, self.obj) --&gt; 178 indexer = self._get_setitem_indexer(key) 179 self._setitem_with_indexer(indexer, value) 180 /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _get_setitem_indexer(self, key) 155 if isinstance(key, tuple): 156 try: --&gt; 157 return self._convert_tuple(key, is_setter=True) 158 except IndexingError: 159 pass /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _convert_tuple(self, key, is_setter) 222 if i &gt;= self.obj.ndim: 223 raise IndexingError('Too many indexers') --&gt; 224 idx = self._convert_to_indexer(k, axis=i, is_setter=is_setter) 225 keyidx.append(idx) 226 return tuple(keyidx) /usr/local/lib/python3.6/site-packages/pandas/core/indexing.py in _convert_to_indexer(self, obj, axis, is_setter) 1228 1229 mask = check == -1 -&gt; 1230 if mask.any(): 1231 raise KeyError('%s not in index' % objarr[mask]) 1232 AttributeError: 'bool' object has no attribute 'any' </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">First I wasn't aware that I have a duplicated index in my code -- I only realised this when trying to reproduce the error in the example above. I used time index, because in my code I have a time index too.</p> <p dir="auto">The problem is in <a href="https://github.com/pandas-dev/pandas/blob/793020293ee1e5fa023f45c12943a4ac51cc23d0/pandas/core/indexing.py#L1235">indexing.py line 1235 and 1236</a>, where the variable <code class="notranslate">mask</code> is a python builtin <code class="notranslate">bool</code> (instead of a numpy array) and therefore does not support the method <code class="notranslate">.any() </code>.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">I am not sure if the code is legal with duplicates (I will filter duplicates in my code now). Nonetheless, I think a decent error message should be raised in such a case.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Linux OS-release: 4.8.0-58-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.20.1<br> pytest: None<br> pip: 9.0.1<br> setuptools: 28.8.0<br> Cython: None<br> numpy: 1.13.1<br> scipy: 0.19.1<br> xarray: None<br> IPython: 6.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.9999999<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>
0
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.2</p> <p dir="auto"><strong>Description</strong><br> I am building an affiliation system in my app. After user registered as an affiliate a new ROLE_AFFILIATE is added to the user. But user is denied access to route even after updating the isEqualeTo method. I have to logout first then login again in order to get things work.<br> Thanks you !</p>
<p dir="auto">I'm implementing the security component in my app and was surprised to find that a user's roles are decided at login time and cannot be easily updated after that. While the chosen UserInterface object can be refreshed on each load to check for changes (like the password changing or any other details), there is no way to check to see if the user's roles have changed since login. My roles are coming from the UserInterface getRoles method.</p> <p dir="auto">This means if I have an admin user for example and I remove their admin abilities, they remain an admin until they decide to log out. Or moving a user to a "banned" role would have no effect.</p> <p dir="auto">Ideally, a UsernamePasswordToken or any other token that contains a UserInterface object would check the UserInterface object's getRoles method to see if the roles have changed. But even just a setRoles method on AbstractToken would be useful so that the option is there to keep user's roles fresh.</p> <p dir="auto">Of course I may be missing something that allows you to make sure a user's roles are kept fresh so I'd love to hear about it :)</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4 and 4.3</li> <li>Operating System / Platform =&gt; Ubuntu 18.04</li> <li>Compiler =&gt; GCC 7.5.0</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I'm having some trouble since I changed from OpenCV 3.2 (repo version) to 4.x (compiled from source) in my C++ project (also happens in 3.4). I've replicated this behaviour in a small example that just opens a webcam and records for 5 seconds.</p> <p dir="auto">With 3.2 and 3.3 I am able to set the webcam framerate to 30 at full hd, but the same code with 3.4 or 4.3 just ignores the camera.set(cv::CAP_PROP_FPS,30) and sets it to 5 instead. If I use 720p, the fps is set to 10.</p> <p dir="auto">I've done more tests with other two computers and different cameras. One yields the same result, but a Macbook Pro running the same distribution OpenCV 4.3 seems to work. The two computers where I get the fps problem are desktops with usb webcams.</p> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc </li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;opencv2/opencv.hpp&quot; #include &quot;iostream&quot; #include &quot;thread&quot; #include &lt;unistd.h&gt; using namespace cv; VideoCapture camera(0); bool stop = false; int fc = 0; void saveFrames() { while(!stop) { Mat frame; camera &gt;&gt; frame; cv::imwrite(&quot;/tmp/frames/frame&quot; + std::to_string(fc) + &quot;.jpg&quot;, frame); fc++; } } int main() { if(!camera.isOpened()) return -1; camera.set(cv::CAP_PROP_FRAME_WIDTH,1920); camera.set(cv::CAP_PROP_FRAME_HEIGHT,1080); camera.set(cv::CAP_PROP_FPS,30); double fps = camera.get(cv::CAP_PROP_FPS); std::cout &lt;&lt; &quot;FPS setting: &quot; &lt;&lt; fps &lt;&lt; std::endl; // 5 with OCV4, 30 with OCV3.2 std::thread tr(saveFrames); int waitSeconds = 5; usleep(waitSeconds * 1e6); stop = true; tr.join(); std::cout &lt;&lt; &quot;Written &quot; &lt;&lt; fc &lt;&lt; &quot; frames of &quot; &lt;&lt; fps * waitSeconds &lt;&lt; std::endl; return 0; }"><pre class="notranslate"><code class="notranslate">#include "opencv2/opencv.hpp" #include "iostream" #include "thread" #include &lt;unistd.h&gt; using namespace cv; VideoCapture camera(0); bool stop = false; int fc = 0; void saveFrames() { while(!stop) { Mat frame; camera &gt;&gt; frame; cv::imwrite("/tmp/frames/frame" + std::to_string(fc) + ".jpg", frame); fc++; } } int main() { if(!camera.isOpened()) return -1; camera.set(cv::CAP_PROP_FRAME_WIDTH,1920); camera.set(cv::CAP_PROP_FRAME_HEIGHT,1080); camera.set(cv::CAP_PROP_FPS,30); double fps = camera.get(cv::CAP_PROP_FPS); std::cout &lt;&lt; "FPS setting: " &lt;&lt; fps &lt;&lt; std::endl; // 5 with OCV4, 30 with OCV3.2 std::thread tr(saveFrames); int waitSeconds = 5; usleep(waitSeconds * 1e6); stop = true; tr.join(); std::cout &lt;&lt; "Written " &lt;&lt; fc &lt;&lt; " frames of " &lt;&lt; fps * waitSeconds &lt;&lt; std::endl; return 0; } </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.4</li> <li>Operating System / Platform =&gt; Ubuntu 16.04 64 Bit</li> <li>Compiler =&gt; Python Version OpenCV 3.4.4</li> </ul> <p dir="auto"><strong>caffe version SSD detector supports multiple "min_size" and "max_size" param<br> but OpenCV gives a error:</strong></p> <p dir="auto">[libprotobuf ERROR /io/opencv/3rdparty/protobuf/src/google/protobuf/text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 913:13: Non-repeated field "min_size" is specified multiple times.<br> Traceback (most recent call last):<br> File "face_det.py", line 60, in <br> net = cv.dnn.readNetFromCaffe(prototxt_file, caffeModel=caffemodel_file)<br> cv2.error: OpenCV(3.4.4) /io/opencv/modules/dnn/src/caffe/caffe_io.cpp:1151: error: (-2:Unspecified error) FAILED: ReadProtoFromTextFile(param_file, param). Failed to parse NetParameter file: yufacedetectnet-open-v1.prototxt in function 'ReadNetParamsFromTextFileOrDie'</p> <p dir="auto"><strong>the PriorBoxParameter which Caffe defined as below:</strong></p> <p dir="auto">// Message that store parameters used by PriorBoxLayer<br> message PriorBoxParameter {<br> // Encode/decode type.<br> enum CodeType {<br> CORNER = 1;<br> CENTER_SIZE = 2;<br> CORNER_SIZE = 3;<br> }<br> <strong>// Minimum box size (in pixels). Required!<br> repeated float min_size = 1;<br> // Maximum box size (in pixels). Required!<br> repeated float max_size = 2;</strong><br> // Various of aspect ratios. Duplicate ratios will be ignored.<br> // If none is provided, we use default ratio 1.<br> repeated float aspect_ratio = 3;<br> // If true, will flip each aspect ratio.<br> // For example, if there is aspect ratio "r",<br> // we will generate aspect ratio "1.0/r" as well.<br> optional bool flip = 4 [default = true];<br> // If true, will clip the prior so that it is within [0, 1]<br> optional bool clip = 5 [default = false];<br> // Variance for adjusting the prior bboxes.<br> repeated float variance = 6;<br> // By default, we calculate img_height, img_width, step_x, step_y based on<br> // bottom[0] (feat) and bottom[1] (img). Unless these values are explicitely<br> // provided.<br> // Explicitly provide the img_size.<br> optional uint32 img_size = 7;<br> // Either img_size or img_h/img_w should be specified; not both.<br> optional uint32 img_h = 8;<br> optional uint32 img_w = 9;</p> <p dir="auto">// Explicitly provide the step size.<br> optional float step = 10;<br> // Either step or step_h/step_w should be specified; not both.<br> optional float step_h = 11;<br> optional float step_w = 12;</p> <p dir="auto">// Offset to the top left corner of each cell.<br> optional float offset = 13 [default = 0.5];<br> }</p>
0
<p dir="auto">Would be nice to have <code class="notranslate">kubectl stats podName</code> work like docker stats (basically a top like interface on the client that connects to an endpoint streaming data every second). I think this should be pretty straightforward, since the kubelet server already supports requests for <code class="notranslate">/stats/ns/podname/uid/containername</code></p> <p dir="auto">Would be even better to have kubectl show stats consumed by a service, rc across the cluster.</p>
<p dir="auto">We saw this in Jenkins. The following loops until the test is killed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: [1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: [1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: ..."><pre class="notranslate"><code class="notranslate">[1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: [1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: [1] INFO: 9 / 14 pods in namespace 'kube-system' are running and ready (20 seconds elapsed) [1] INFO: POD NODE PHASE CONDITIONS [1] INFO: kube-ui-v1-bp9s2 pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-dk10d pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-eahns pull-e2e-2-minion-yl9w Failed [] [1] INFO: kube-ui-v1-zvxka pull-e2e-2-minion-yl9w Failed [] [1] INFO: monitoring-heapster-v5-5v5rp pull-e2e-2-minion-yl9w Failed [] [1] INFO: ... </code></pre></div> <p dir="auto">I saw this once so haven't yet assessed its frequency.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ixdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ixdy">@ixdy</a> says he thinks he has seen the same failure a few times, and linked artifacts (for those with permissions):<br> <a href="https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/739cb2f526f15e7c82ef7c476a1458ad68b09fd1/kubernetes-pull-build-test-e2e-gce/2246/_artifacts/" rel="nofollow">https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/739cb2f526f15e7c82ef7c476a1458ad68b09fd1/kubernetes-pull-build-test-e2e-gce/2246/_artifacts/</a></p> <p dir="auto">+cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rjnagal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rjnagal">@rjnagal</a> for labeling/triage/xref:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94161337" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/11018" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/11018/hovercard" href="https://github.com/kubernetes/kubernetes/pull/11018">#11018</a></p>
0
<ul dir="auto"> <li>Electron version: 2.0.0-beta.1</li> <li>Operating system: masOS High Sierra 10.13.4 Beta (17E150g)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When I clicked one of the Menu Items, the click function should be triggered.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6451933/36522155-d97db440-17d5-11e8-80f2-53b1dc341041.png"><img src="https://user-images.githubusercontent.com/6451933/36522155-d97db440-17d5-11e8-80f2-53b1dc341041.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">After clicking the menu item, nothing happened. However, I've tested on Window 10 and it worked fine.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Just clone <a href="https://github.com/qazbnm456/electron-quick-start">https://github.com/qazbnm456/electron-quick-start</a> and run.<br> When clicking the only entry on the context menu, there's no any message logged in the console panel.</p>
<ul dir="auto"> <li>Electron version: Electron built at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af/hovercard" href="https://github.com/electron/electron/commit/aea06ed95f0ae88b33a5853caa76cf921b11a7af"><tt>aea06ed</tt></a></li> <li>Operating system: macOS 10.13.2</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">MenuItem</code> click handlers should get called in the popped up context menu.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Click handlers never getting called back.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Open a popup in the main window:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="window.webContents.on('context-menu', (event) =&gt; { const menu = new Menu() menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }})) menu.append(new MenuItem({type: 'separator'})) menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true})) menu.popup(mainWindow) })"><pre class="notranslate"><code class="notranslate">window.webContents.on('context-menu', (event) =&gt; { const menu = new Menu() menu.append(new MenuItem({label: 'MenuItem1', click() { console.log('item 1 clicked') }})) menu.append(new MenuItem({type: 'separator'})) menu.append(new MenuItem({label: 'MenuItem2', type: 'checkbox', checked: true})) menu.popup(mainWindow) }) </code></pre></div> <p dir="auto">Right click on the running window and select <code class="notranslate">MenuItem1</code>, the log <code class="notranslate">item 1 clicked</code> should print but doesn't.</p>
1
<p dir="auto">This could be considered a bug or a feature request. I say this because I know that React is checking for <a href="https://www.w3.org/TR/xml/#NT-NameStartChar" rel="nofollow">W3C valid attribute property names</a>, but the check is run inconsistently between normal components and custom components which makes its behavior confusing. That means this could be feature to be more explicit about its behavior.</p> <p dir="auto">For my particular use case, this only needs to be improved upon in <code class="notranslate">react-dom/server</code>. I am trying to render custom properties like those belonging to <a href="https://github.com/ampproject/amphtml"><code class="notranslate">amphtml</code></a>, particularly the <a href="https://www.ampproject.org/docs/reference/components/amp-bind" rel="nofollow"><code class="notranslate">amp-bind</code></a> API which requires <code class="notranslate">[</code> and <code class="notranslate">]</code> in property names. I think that the <a href="https://github.com/facebook/react/blob/dadafd6bd802082b990e447032cb82574bcdc118/packages/react-dom/src/server/DOMMarkupOperations.js#L79-L81">check for valid attribute property names</a> should only throw warnings, or it should have an option to prevent the removal of custom properties.</p> <p dir="auto">Example:</p> <ul dir="auto"> <li> <p dir="auto">JS</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const customProps = { &quot;[custom-property]&quot;: &quot;Hello, world!&quot; };"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">customProps</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-s">"[custom-property]"</span>: <span class="pl-s">"Hello, world!"</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> </li> <li> <p dir="auto">JSX</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div&gt; &lt;div {...customProps}&gt;Test&lt;/div&gt; &lt;custom-component {...customProps}&gt;Test&lt;/custom-component&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-kos">{</span>...<span class="pl-s1">customProps</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Test<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-c1">&lt;</span><span class="pl-ent">custom-component</span> <span class="pl-kos">{</span>...<span class="pl-s1">customProps</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Test<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">custom-component</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span></pre></div> </li> <li> <p dir="auto">Resulting HTML</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div data-reactroot=&quot;&quot;&gt; &lt;div [custom-property]=&quot;Hello, world!&quot;&gt;Test&lt;/div&gt; &lt;custom-component&gt;Test&lt;/custom-component&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-reactroot</span>=""<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[custom-property]</span>="<span class="pl-s">Hello, world!</span>"<span class="pl-kos">&gt;</span>Test<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">custom-component</span><span class="pl-kos">&gt;</span>Test<span class="pl-kos">&lt;/</span><span class="pl-ent">custom-component</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></pre></div> </li> </ul> <p dir="auto">This throws a warning only for the <code class="notranslate">&lt;custom-component /&gt;</code>.</p> <p dir="auto">Try it out in CodeSandbox: <a href="https://codesandbox.io/s/vjj64jv2z0" rel="nofollow">https://codesandbox.io/s/vjj64jv2z0</a></p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Request a feature</p> <p dir="auto">I am working on project to build AMP page with React Server Side Rendering. I am having an issue to add custom attribute to built-in AMP element. In order to be able to use <a href="https://www.ampproject.org/docs/reference/components/amp-bind#bindings" rel="nofollow">amp-bind</a> we need to be able to output “bindings”, which are special attributes of the form <code class="notranslate">[attribute]</code>, eg. <code class="notranslate">[slide]="selectedSlide"</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;amp-carousel layout={layout} height={height} width={width} [slide]={slide} &gt; ... &lt;/amp-carousel&gt;"><pre class="notranslate"><code class="notranslate">&lt;amp-carousel layout={layout} height={height} width={width} [slide]={slide} &gt; ... &lt;/amp-carousel&gt; </code></pre></div> <p dir="auto">Here is AMP carousel example that work with <a href="https://ampbyexample.com/advanced/image_galleries_with_amp-carousel/#linking-carousels-with-amp-bind" rel="nofollow">amp-bind</a>.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <ul dir="auto"> <li>Parsing error: Unexpected token [ (Fatal)</li> </ul> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <ul dir="auto"> <li>All</li> </ul> <p dir="auto">For more information, you can read all the discussion in this <a href="https://github.com/facebook/react/pull/7311#issuecomment-311516763" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/7311/hovercard">PR</a>.</p>
1
<p dir="auto">I'm not sure if this is a duplicate of the other let block issues, but I came across this:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let global foo bar(x::Float64) = x+1 bar(x::Float32) = x+2 foo(x) = bar(x) end"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-k">global</span> foo <span class="pl-en">bar</span>(x<span class="pl-k">::</span><span class="pl-c1">Float64</span>) <span class="pl-k">=</span> x<span class="pl-k">+</span><span class="pl-c1">1</span> <span class="pl-en">bar</span>(x<span class="pl-k">::</span><span class="pl-c1">Float32</span>) <span class="pl-k">=</span> x<span class="pl-k">+</span><span class="pl-c1">2</span> <span class="pl-en">foo</span>(x) <span class="pl-k">=</span> <span class="pl-c1">bar</span>(x) <span class="pl-k">end</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; @code_warntype foo(1.0) Variables: #self#::#foo x::Float64 Body: begin return ((Core.getfield)($(QuoteNode(Core.Box(bar))),:contents)::Any)(x::Float64)::Any end::Any"><pre class="notranslate"><code class="notranslate">julia&gt; @code_warntype foo(1.0) Variables: #self#::#foo x::Float64 Body: begin return ((Core.getfield)($(QuoteNode(Core.Box(bar))),:contents)::Any)(x::Float64)::Any end::Any </code></pre></div> <p dir="auto">This problem goes away if I get rid of the 2nd method for <code class="notranslate">bar</code>.</p>
<p dir="auto"><code class="notranslate">@testset</code> internally creates a try/catch block to run the tests in, so the tests are run in a local scope. However, since the syntax is <code class="notranslate">@testset "..." begin ... end</code>, it is natural to assume the code is run in a <code class="notranslate">begin</code> block, which is globally scoped.</p> <p dir="auto">This can lead to confusing behavior where functions defined within a testset capture variables defined outside the function, since we are in a local scope, but users may not realize this. I suggest we at least document this local scoping behavior of <code class="notranslate">@testset</code>, or perhaps change the syntax to <code class="notranslate">@testset "..." let ... end</code> to make it more apparent that this introduces a local scope.</p>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.7<br> specificaly, git commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/6fdf77f9fedd741deda08a2cbc51412155b4d6c5/hovercard" href="https://github.com/ansible/ansible/commit/6fdf77f9fedd741deda08a2cbc51412155b4d6c5"><tt>6fdf77f</tt></a></p> <h5 dir="auto">Environment:</h5> <p dir="auto">Running from Mac OS X. Ansible installed in virtualenv.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pip freeze Jinja2==2.7.3 MarkupSafe==0.23 PyYAML==3.11 ansible==1.7 ecdsa==0.11 paramiko==1.14.0 pycrypto==2.6.1 wsgiref==0.1.2"><pre class="notranslate"><code class="notranslate">$ pip freeze Jinja2==2.7.3 MarkupSafe==0.23 PyYAML==3.11 ansible==1.7 ecdsa==0.11 paramiko==1.14.0 pycrypto==2.6.1 wsgiref==0.1.2 </code></pre></div> <p dir="auto">Managing: ubuntu-14.04 via vagrant.</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Ansible hangs on docker_image building when the image already exists. The whole playground is at <a href="https://github.com/nolar/vagrant-ansible-docker-sample/tree/docker_image_broken">https://github.com/nolar/vagrant-ansible-docker-sample/tree/docker_image_broken</a> branch (pretty simple).</p> <p dir="auto">Specifically, this task causes the problem (playbook.xml, line 97):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: Build or re-build an image. sudo: yes #FIXME: Hangs on recv() somewhere inside docker-py (if the image exists?). docker_image: name=mycont path=Docker.dir state=build #shell: docker build -t mycont ~{{ansible_ssh_user}}/Docker.dir"><pre class="notranslate"><code class="notranslate"> - name: Build or re-build an image. sudo: yes #FIXME: Hangs on recv() somewhere inside docker-py (if the image exists?). docker_image: name=mycont path=Docker.dir state=build #shell: docker build -t mycont ~{{ansible_ssh_user}}/Docker.dir </code></pre></div> <p dir="auto">Command-line approach (i.e. not through docker-py) works fine.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li>vagrant up — it works fine for the first time (provision implied).</li> <li>vagrant provision — hangs on this task.</li> </ol> <p dir="auto">If you log into, remove the image (mycont), then provision it again, it works for the first time, and hangs for the second time. This is why my assumption is it hangs when the image already exists.</p> <ol dir="auto"> <li>vagrant ssh</li> <li>docker kill timer_from_image &amp;&amp; docker rm timer_from_image</li> <li>docker rmi mycont</li> <li>exit</li> <li>vagrant provision — first time is ok</li> <li>vagrant provision — second time it hangs or shows an "unknown error"</li> </ol> <p dir="auto">If launched by hand from inside, and then interrupted with Ctrl+C (after it hangs), the stackdump is a follows:</p> <ol dir="auto"> <li>ANSIBLE_KEEP_REMOTE_FILES=1 vagrant provision</li> <li>Wait till it hags, Ctrl+C, copy-paste the last command.</li> <li>vagrant ssh</li> <li>/usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image</li> <li>Wait 5-10 secs, Ctrl+C</li> </ol> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="vagrant@vagrant-ubuntu-trusty-64:~$ /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image ^CTraceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 1554, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 234, in main image_id = manager.build() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 144, in build for chunk in stream: File &quot;/usr/local/lib/python2.7/dist-packages/docker/client.py&quot;, line 229, in _stream_helper size_line = socket.readline() KeyboardInterrupt"><pre class="notranslate">vagrant@vagrant-ubuntu-trusty-64:~$ /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image ^CTraceback (most recent call last): File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">1554</span>, in <span class="pl-en">&lt;module&gt;</span> main() File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">234</span>, in <span class="pl-en">main</span> image_id <span class="pl-k">=</span> manager.build() File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">144</span>, in <span class="pl-en">build</span> <span class="pl-k">for</span> chunk <span class="pl-k">in</span> stream: File <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/docker/client.py"</span>, line <span class="pl-c1">229</span>, in <span class="pl-en">_stream_helper</span> size_line <span class="pl-k">=</span> socket.readline() KeyboardInterrupt</pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">It does not hang.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">It hangs.</p>
<p dir="auto">Ansible hangs on docker_image building when the image already exists. The whole playground is at <a href="https://github.com/nolar/vagrant-ansible-docker-sample/tree/docker_image_broken">https://github.com/nolar/vagrant-ansible-docker-sample/tree/docker_image_broken</a> branch (pretty simple).</p> <p dir="auto">Specifically, this task causes the problem (playbook.xml, line 97):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: Build or re-build an image. sudo: yes #FIXME: Hangs on recv() somewhere inside docker-py (if the image exists?). docker_image: name=mycont path=Docker.dir state=build #shell: docker build -t mycont ~{{ansible_ssh_user}}/Docker.dir"><pre class="notranslate"><code class="notranslate"> - name: Build or re-build an image. sudo: yes #FIXME: Hangs on recv() somewhere inside docker-py (if the image exists?). docker_image: name=mycont path=Docker.dir state=build #shell: docker build -t mycont ~{{ansible_ssh_user}}/Docker.dir </code></pre></div> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li>vagrant up — it works fine for the first time (provision implied).</li> <li>vagrant provision — hangs on this task.</li> </ol> <p dir="auto">If you log into, remove the image (mycont), then provision it again, it works for the first time, and hangs for the second time. This is why my assumption is it hangs when the image already exists.</p> <ol dir="auto"> <li>vagrant ssh</li> <li>docker kill timer_from_image &amp;&amp; docker rm timer_from_image</li> <li>docker rmi mycont</li> <li>exit</li> <li>vagrant provision — first time is ok</li> <li>vagrant provision — second time it hangs or shows an "unknown error"</li> </ol> <p dir="auto">If launched by hand from inside, and then interrupted with Ctrl+C (after it hangs), the stackdump is a follows:</p> <ol dir="auto"> <li>ANSIBLE_KEEP_REMOTE_FILES=1 vagrant provision</li> <li>Wait till it hags, Ctrl+C, copy-paste the last command.</li> <li>vagrant ssh</li> <li>/usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image</li> <li>Wait 5-10 secs, Ctrl+C</li> </ol> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="vagrant@vagrant-ubuntu-trusty-64:~$ /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image ^CTraceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 1554, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 234, in main image_id = manager.build() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image&quot;, line 144, in build for chunk in stream: File &quot;/usr/local/lib/python2.7/dist-packages/docker/client.py&quot;, line 229, in _stream_helper size_line = socket.readline() KeyboardInterrupt"><pre class="notranslate">vagrant@vagrant-ubuntu-trusty-64:~$ /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image ^CTraceback (most recent call last): File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">1554</span>, in <span class="pl-en">&lt;module&gt;</span> main() File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">234</span>, in <span class="pl-en">main</span> image_id <span class="pl-k">=</span> manager.build() File <span class="pl-s">"/home/vagrant/.ansible/tmp/ansible-tmp-1403972347.56-120405055892302/docker_image"</span>, line <span class="pl-c1">144</span>, in <span class="pl-en">build</span> <span class="pl-k">for</span> chunk <span class="pl-k">in</span> stream: File <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/docker/client.py"</span>, line <span class="pl-c1">229</span>, in <span class="pl-en">_stream_helper</span> size_line <span class="pl-k">=</span> socket.readline() KeyboardInterrupt</pre></div> <p dir="auto">Command-line approach (i.e. not through docker-py) works fine.</p>
1
<p dir="auto">here is my sample data <code class="notranslate">cities_counter[:10]</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[('上海', 285), ('杭州', 225), ('北京', 163), ('广州', 136), ('南京', 130), ('武汉', 124), ('深圳', 88), ('温州', 67), ('苏州', 66), ('宁波', 45)]"><pre class="notranslate"><code class="notranslate">[('上海', 285), ('杭州', 225), ('北京', 163), ('广州', 136), ('南京', 130), ('武汉', 124), ('深圳', 88), ('温州', 67), ('苏州', 66), ('宁波', 45)] </code></pre></div> <p dir="auto">and I want to make a bar plot with Seaborn and Matplotlib, so here is my code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; sns.set(style=&quot;whitegrid&quot;) &gt;&gt;&gt; sns.set_color_codes(&quot;pastel&quot;) &gt;&gt;&gt; sns.barplot(x=[k for k, _ in cities_counter[:10]], y=[v for _, v in cities_counter[:10]])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; sns.set(style="whitegrid") &gt;&gt;&gt; sns.set_color_codes("pastel") &gt;&gt;&gt; sns.barplot(x=[k for k, _ in cities_counter[:10]], y=[v for _, v in cities_counter[:10]]) </code></pre></div> <p dir="auto">and the result is here: <a href="https://i.stack.imgur.com/pXHAE.png" rel="nofollow">https://i.stack.imgur.com/pXHAE.png</a></p> <p dir="auto">ENV:</p> <ul dir="auto"> <li>Windows 10</li> <li>Python 2,7</li> </ul> <p dir="auto">How can I plot Chinese character?</p> <p dir="auto">I have tried with the following code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib as mpl mpl.rcParams['font.sans-serif'] = ['SimHei'] mpl.rcParams['font.serif'] = ['SimHei'] import seaborn as sns sns.set_style(&quot;darkgrid&quot;,{&quot;font.sans-serif&quot;:['simhei', 'Arial']})"><pre class="notranslate"><code class="notranslate">import matplotlib as mpl mpl.rcParams['font.sans-serif'] = ['SimHei'] mpl.rcParams['font.serif'] = ['SimHei'] import seaborn as sns sns.set_style("darkgrid",{"font.sans-serif":['simhei', 'Arial']}) </code></pre></div> <p dir="auto">And downloaded SimHei.ttf from this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176277638" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1009" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1009/hovercard" href="https://github.com/mwaskom/seaborn/issues/1009">#1009</a></p>
<p dir="auto">As <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="127878139" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/829" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/829/hovercard" href="https://github.com/mwaskom/seaborn/issues/829">#829</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="86608972" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/592" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/592/hovercard" href="https://github.com/mwaskom/seaborn/issues/592">#592</a> said, the reason is "seaborn override default fonts specified in matplotlibrc configs".<br> Thus, you can set the default seaborn font style after import the seaborn as follows:</p> <p dir="auto"><code class="notranslate">import seaborn as sns</code><br> <code class="notranslate">sns.set_style("darkgrid",{"font.sans-serif":['simhei', 'Arial']}) </code></p> <p dir="auto">The simhei is the chinese font, and make sure the simhei.ttf already in your "Lib\site-packages\matplotlib\mpl-data\fonts\ttf" folder.</p> <p dir="auto">This method just change the seaborn font setting temporarily, however I do not know how to do that permanently.</p>
1
<p dir="auto">Pages which have duplicate values in their query string are treated as different pages:</p> <ul dir="auto"> <li><a href="http://www.example.com/?q=" rel="nofollow">http://www.example.com/?q=</a></li> <li><a href="http://www.example.com/?q=&amp;q=" rel="nofollow">http://www.example.com/?q=&amp;q=</a></li> <li><a href="http://www.example.com/?q=&amp;q=&amp;q=" rel="nofollow">http://www.example.com/?q=&amp;q=&amp;q=</a></li> <li>...</li> </ul> <p dir="auto">If the first page has a link to the second and the second a link to the third, <code class="notranslate">scrapy</code> enters an infinite loop, requesting each page in succession. I've put a simple page <a href="http://fcoelho.alwaysdata.net/scrapy/page.php" rel="nofollow">here</a> to test the issue. Using a CrawlSpider with a rule like <code class="notranslate">Rule(SgmlLinkExtractor(), callback='parse_page', follow=True)</code> will cause this infinite recursion. Here is a sample spider:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor class LoopingSpider(CrawlSpider): name = &quot;loop&quot; start_urls = [&quot;http://fcoelho.alwaysdata.net/scrapy/page.php&quot;] allowed_domains = [&quot;fcoelho.alwaysdata.net&quot;] rules = ( Rule(SgmlLinkExtractor(), callback='parse_page', follow=True), ) def parse_page(self, response): print &quot;Page: %s&quot; % response.url return []"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">spiders</span> <span class="pl-k">import</span> <span class="pl-v">CrawlSpider</span>, <span class="pl-v">Rule</span> <span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">linkextractors</span>.<span class="pl-s1">sgml</span> <span class="pl-k">import</span> <span class="pl-v">SgmlLinkExtractor</span> <span class="pl-k">class</span> <span class="pl-v">LoopingSpider</span>(<span class="pl-v">CrawlSpider</span>): <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">"loop"</span> <span class="pl-s1">start_urls</span> <span class="pl-c1">=</span> [<span class="pl-s">"http://fcoelho.alwaysdata.net/scrapy/page.php"</span>] <span class="pl-s1">allowed_domains</span> <span class="pl-c1">=</span> [<span class="pl-s">"fcoelho.alwaysdata.net"</span>] <span class="pl-s1">rules</span> <span class="pl-c1">=</span> ( <span class="pl-v">Rule</span>(<span class="pl-v">SgmlLinkExtractor</span>(), <span class="pl-s1">callback</span><span class="pl-c1">=</span><span class="pl-s">'parse_page'</span>, <span class="pl-s1">follow</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), ) <span class="pl-k">def</span> <span class="pl-en">parse_page</span>(<span class="pl-s1">self</span>, <span class="pl-s1">response</span>): <span class="pl-k">print</span> <span class="pl-s">"Page: %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">response</span>.<span class="pl-s1">url</span> <span class="pl-k">return</span> []</pre></div> <p dir="auto">It seems like in the end the problem "arises" because <code class="notranslate">scrapy.utils.url.canonicalize_url</code> only sorts the query string keys, but don't remove duplicates. As far as I can tell, duplicates are "wrong", and shouldn't be counted as normal web page behavior. Would it be sane to remove arguments from the query string if their key is repeated?</p>
<h2 dir="auto">Summary</h2> <p dir="auto">If the file mentioned in <code class="notranslate">scrapy genspider</code> already exists, then genspider should refuse to generate the the file.</p> <h2 dir="auto">Motivation</h2> <p dir="auto">As it stands, existing code can be blown away if this command runs twice.</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">Prompting the user for overwriting existing spider.</p>
0
<p dir="auto">Okay, first, I want to say, I'm not sure if this is equivalent to</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="445240004" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/872" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/872/hovercard" href="https://github.com/microsoft/terminal/issues/872">#872</a></p> <p dir="auto">But it would be nice to be able to completely hide the window border that looks like</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6083371/65777089-3e890d00-e13b-11e9-9621-eb8338a1f127.png"><img src="https://user-images.githubusercontent.com/6083371/65777089-3e890d00-e13b-11e9-9621-eb8338a1f127.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">What wasn't mentioned in the other topic was that even if we turn off ShowTabsInTitlebar, we still have a small border (which I'm still not a fan of):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6083371/65777630-4eedb780-e13c-11e9-8b22-b84b0205616a.png"><img src="https://user-images.githubusercontent.com/6083371/65777630-4eedb780-e13c-11e9-8b22-b84b0205616a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The issue I cited was closed without a clear (to me) resolution, and it's not clear if this feature might be implemented in a future version of Windows or if it's been completely abandoned, so if this is a duplicate, before closing it, could one of the devs clarify the situation?</p> <p dir="auto">What would be nice is maybe a hotkey to just hide the entire non-client area. Support for this would also move toward quake-terminal support (which I guess isn't planned for 1.0).</p>
<p dir="auto">Hi,<br> Please add Anaconda prompt to list.<br> I installed anaconda, but I can't see it in terminal list.<br> Please help me.</p>
0
<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<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\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Manu\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\Manu\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\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Manu\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\Manu\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\Manu\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\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Manu\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\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Manu\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Manu\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\Manu\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=" -0:37.3.0 core:move-down (atom-text-editor.editor) 2x -0:37.3.0 linter:set-bubble-transparent (atom-text-editor.editor) 2x -0:25.2.0 core:undo (atom-text-editor.editor.is-focused) -0:14.5.0 core:close (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:37.3.0 core:move-down (atom-text-editor.editor) 2x -0:37.3.0 linter:set-bubble-transparent (atom-text-editor.editor) 2x -0:25.2.0 core:undo (atom-text-editor.editor.is-focused) -0:14.5.0 core:close (atom-text-editor.editor.is-focused) </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;autoHideMenuBar&quot;: true, &quot;themes&quot;: [ &quot;one-dark-ui&quot;, &quot;base16-eighties-one-dark&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;fontFamily&quot;: &quot;Anonymous Pro&quot;, &quot;fontSize&quot;: 19, &quot;lineHeight&quot;: 1.2, &quot;showIndentGuide&quot;: true, &quot;scrollPastEnd&quot;: true, &quot;showInvisibles&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"autoHideMenuBar"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>one-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>base16-eighties-one-dark<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">"fontFamily"</span>: <span class="pl-s"><span class="pl-pds">"</span>Anonymous Pro<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">19</span>, <span class="pl-ent">"lineHeight"</span>: <span class="pl-c1">1.2</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"scrollPastEnd"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showInvisibles"</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 atometer, v0.1.0 base16-eighties-one-dark, v0.2.2 editor-stats, v0.17.0 file-icons, v1.5.8 linter, v1.1.0 linter-csslint, v0.0.14 linter-jshint, v0.1.7 meteor-api, v2.19.0 minimap, v4.10.0 Remote-FTP, v0.7.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atometer, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> base16<span class="pl-k">-</span>eighties<span class="pl-k">-</span>one<span class="pl-k">-</span>dark, v0.<span class="pl-ii">2</span>.<span class="pl-ii">2</span> editor<span class="pl-k">-</span>stats, v0.<span class="pl-ii">17</span>.<span class="pl-ii">0</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">8</span> linter, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>csslint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">14</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">7</span> meteor<span class="pl-k">-</span>api, v2.<span class="pl-ii">19</span>.<span class="pl-ii">0</span> minimap, v4.<span class="pl-ii">10</span>.<span class="pl-ii">0</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
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">I am unable to install a package (<code class="notranslate">@jest/core</code>) With a caret range (<code class="notranslate">@jest/core@^27.0.1</code>). When I do so, I get the <code class="notranslate">notarget</code> error.</p> <h3 dir="auto">Debug Log</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 verbose cli [ 0 verbose cli '/Users/apple/.nvm/versions/node/v16.3.0/bin/node', 0 verbose cli '/Users/apple/.nvm/versions/node/v16.3.0/bin/npm', 0 verbose cli 'i', 0 verbose cli '@jest/core@^27.0.1' 0 verbose cli ] 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:/Users/apple/Sites/Projects/npm-bug-test/.npmrc Completed in 0ms 10 timing config:load:project Completed in 1ms 11 verbose config init.author.name Use `--init-author-name` instead. 12 verbose config init.author.email Use `--init-author-email` instead. 13 verbose config init.author.url Use `--init-author-url` instead. 14 verbose config init.license Use `--init-license` instead. 15 timing config:load:file:/Users/apple/.npmrc Completed in 2ms 16 timing config:load:user Completed in 2ms 17 timing config:load:file:/Users/apple/.nvm/versions/node/v16.3.0/etc/npmrc Completed in 0ms 18 timing config:load:global Completed in 1ms 19 timing config:load:validate Completed in 1ms 20 timing config:load:credentials Completed in 1ms 21 timing config:load:setEnvs Completed in 1ms 22 timing config:load Completed in 13ms 23 timing npm:load:configload Completed in 13ms 24 timing npm:load:setTitle Completed in 25ms 25 timing npm:load:setupLog Completed in 0ms 26 timing npm:load:cleanupLog Completed in 2ms 27 timing npm:load:configScope Completed in 0ms 28 timing npm:load:projectScope Completed in 0ms 29 timing npm:load Completed in 43ms 30 timing config:load:flatten Completed in 3ms 31 timing arborist:ctor Completed in 1ms 32 timing arborist:ctor Completed in 0ms 33 timing idealTree:init Completed in 14ms 34 timing idealTree:userRequests Completed in 5ms 35 silly idealTree buildDeps 36 silly fetch manifest @jest/core@^27.0.1 37 http fetch GET 200 https://registry.npmjs.org/@jest%2fcore 73ms (from cache) 38 silly placeDep ROOT @jest/core@ OK for: [email protected] want: ^27.0.1 39 timing idealTree:#root Completed in 85ms 40 timing idealTree:node_modules/@jest/core Completed in 0ms 41 timing idealTree:buildDeps Completed in 86ms 42 timing idealTree:fixDepFlags Completed in 1ms 43 timing idealTree Completed in 107ms 44 timing command:install Completed in 119ms 45 verbose type range 46 verbose stack @jest/core: No matching version found for @jest/core@^27.0.1. 46 verbose stack at module.exports (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:209:23) 46 verbose stack at /Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:26 46 verbose stack at async Arborist.[nodeFromEdge] (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:946:19) 46 verbose stack at async Arborist.[buildDepStep] (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:892:11) 46 verbose stack at async Arborist.buildIdealTree (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:218:7) 46 verbose stack at async Promise.all (index 1) 46 verbose stack at async Arborist.reify (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5) 46 verbose stack at async Install.install (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/lib/install.js:137:5) 47 verbose cwd /Users/apple/Sites/Projects/npm-bug-test 48 verbose Darwin 16.7.0 49 verbose argv &quot;/Users/apple/.nvm/versions/node/v16.3.0/bin/node&quot; &quot;/Users/apple/.nvm/versions/node/v16.3.0/bin/npm&quot; &quot;i&quot; &quot;@jest/core@^27.0.1&quot; 50 verbose node v16.3.0 51 verbose npm v7.11.2 52 error code ETARGET 53 error notarget No matching version found for @jest/core@^27.0.1. 54 error notarget In most cases you or one of your dependencies are requesting 54 error notarget a package version that doesn't exist. 55 verbose exit 1"><pre lang="log" class="notranslate"><code class="notranslate"> 0 verbose cli [ 0 verbose cli '/Users/apple/.nvm/versions/node/v16.3.0/bin/node', 0 verbose cli '/Users/apple/.nvm/versions/node/v16.3.0/bin/npm', 0 verbose cli 'i', 0 verbose cli '@jest/core@^27.0.1' 0 verbose cli ] 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:/Users/apple/Sites/Projects/npm-bug-test/.npmrc Completed in 0ms 10 timing config:load:project Completed in 1ms 11 verbose config init.author.name Use `--init-author-name` instead. 12 verbose config init.author.email Use `--init-author-email` instead. 13 verbose config init.author.url Use `--init-author-url` instead. 14 verbose config init.license Use `--init-license` instead. 15 timing config:load:file:/Users/apple/.npmrc Completed in 2ms 16 timing config:load:user Completed in 2ms 17 timing config:load:file:/Users/apple/.nvm/versions/node/v16.3.0/etc/npmrc Completed in 0ms 18 timing config:load:global Completed in 1ms 19 timing config:load:validate Completed in 1ms 20 timing config:load:credentials Completed in 1ms 21 timing config:load:setEnvs Completed in 1ms 22 timing config:load Completed in 13ms 23 timing npm:load:configload Completed in 13ms 24 timing npm:load:setTitle Completed in 25ms 25 timing npm:load:setupLog Completed in 0ms 26 timing npm:load:cleanupLog Completed in 2ms 27 timing npm:load:configScope Completed in 0ms 28 timing npm:load:projectScope Completed in 0ms 29 timing npm:load Completed in 43ms 30 timing config:load:flatten Completed in 3ms 31 timing arborist:ctor Completed in 1ms 32 timing arborist:ctor Completed in 0ms 33 timing idealTree:init Completed in 14ms 34 timing idealTree:userRequests Completed in 5ms 35 silly idealTree buildDeps 36 silly fetch manifest @jest/core@^27.0.1 37 http fetch GET 200 https://registry.npmjs.org/@jest%2fcore 73ms (from cache) 38 silly placeDep ROOT @jest/core@ OK for: [email protected] want: ^27.0.1 39 timing idealTree:#root Completed in 85ms 40 timing idealTree:node_modules/@jest/core Completed in 0ms 41 timing idealTree:buildDeps Completed in 86ms 42 timing idealTree:fixDepFlags Completed in 1ms 43 timing idealTree Completed in 107ms 44 timing command:install Completed in 119ms 45 verbose type range 46 verbose stack @jest/core: No matching version found for @jest/core@^27.0.1. 46 verbose stack at module.exports (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:209:23) 46 verbose stack at /Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:26 46 verbose stack at async Arborist.[nodeFromEdge] (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:946:19) 46 verbose stack at async Arborist.[buildDepStep] (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:892:11) 46 verbose stack at async Arborist.buildIdealTree (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:218:7) 46 verbose stack at async Promise.all (index 1) 46 verbose stack at async Arborist.reify (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5) 46 verbose stack at async Install.install (/Users/apple/.nvm/versions/node/v16.3.0/lib/node_modules/npm/lib/install.js:137:5) 47 verbose cwd /Users/apple/Sites/Projects/npm-bug-test 48 verbose Darwin 16.7.0 49 verbose argv "/Users/apple/.nvm/versions/node/v16.3.0/bin/node" "/Users/apple/.nvm/versions/node/v16.3.0/bin/npm" "i" "@jest/core@^27.0.1" 50 verbose node v16.3.0 51 verbose npm v7.11.2 52 error code ETARGET 53 error notarget No matching version found for @jest/core@^27.0.1. 54 error notarget In most cases you or one of your dependencies are requesting 54 error notarget a package version that doesn't exist. 55 verbose exit 1 </code></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The correct package is installed.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Init npm – <code class="notranslate">npm init</code></li> <li>Run <code class="notranslate">npm i @jest/core@^27.0.1</code></li> <li>See error</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: MacOS 10.12</li> <li>Node: 16.3.0</li> <li>npm: 7.11.2</li> </ul>
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">The artifacts of a merge conflict (<code class="notranslate">&lt;&lt;&lt;&lt; HEAD</code>, <code class="notranslate">||||</code>, <code class="notranslate">====</code>, <code class="notranslate">&gt;&gt;&gt;&gt;&gt; &lt;hash&gt;</code>) in a <code class="notranslate">package-lock.json</code> file were accidentally committed to my repository. Running <code class="notranslate">npm ci</code> succeeded with no issues, even though the <code class="notranslate">version</code> and <code class="notranslate">integrity</code> fields were duplicated in a JSON object, and non-JSON compliant text was present.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">If the JSON in a <code class="notranslate">package-lock.json</code> file is malformed, I expect <code class="notranslate">npm ci</code> to exit with a non-zero exit code. That is the behavior of NPM v6.14.16, but not NPM v7 or v8.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>In this environment, with <a href="https://github.com/npm/cli/files/8613036/npm-stuff.zip">this zip file</a> extracted into an empty folder (contains a minimal <code class="notranslate">package.json</code> and <code class="notranslate">package-lock.json</code> to reproduce the bug).</li> <li>With this config, using any NPM version more recent than <code class="notranslate">7.0.0</code>.</li> <li>Run <code class="notranslate">npm ci</code>.</li> <li>And see that no error is reported.</li> <li>If you install NPM &lt; <code class="notranslate">7.0.0</code>, like <code class="notranslate">6.14.16</code>, running <code class="notranslate">npm ci</code> <em>does</em> throw an error.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.5.1 (present starting in 7.0.0 up to 8.8.0)</li> <li>Node.js: 14.19.1</li> <li>OS Name: Ubuntu 20.04.4</li> <li>System Model Name: Dell Precision 7560</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from $HOME/.npmrc (obfuscated):registry = &quot;https://npm.pkg.github.com&quot; //npm.pkg.github.com/:_authToken = (protected) ; node bin location = /usr/bin/node ; cwd = $HOME/playground/npm-test ; HOME = /home/(user) ; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from $HOME/.npmrc</span> (obfuscated):<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://npm.pkg.github.com<span class="pl-pds">"</span></span> //npm.pkg.github.com/:<span class="pl-k">_authToken</span> = (protected) <span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> cwd = $HOME/playground/npm-test</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /home/(user)</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
0
<p dir="auto"><a href="http://scikit-learn.org/dev/related_projects.html" rel="nofollow">http://scikit-learn.org/dev/related_projects.html</a> currently references <a href="https://github.com/scikit-learn/scikit-learn/wiki/Third-party-projects-and-code-snippets">https://github.com/scikit-learn/scikit-learn/wiki/Third-party-projects-and-code-snippets</a> but the latter duplicates a lot of the former's contents. Should we retire it and merge any missing (and still relevant) content into related_projects?</p>
<p dir="auto">For instance have a look at:</p> <p dir="auto"><a href="http://scikit-learn.org/dev/auto_examples/cluster/plot_dict_face_patches.html" rel="nofollow">http://scikit-learn.org/dev/auto_examples/cluster/plot_dict_face_patches.html</a></p> <p dir="auto">some of the centroids are duplicated, presumably because of a bug in the bad cluster reallocation heuristic.</p>
0
<p dir="auto">[X ] 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.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">FontIcon's onClick method's action should be able to override the hoverColor's reset callback after the click.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When a hoverColor is specified for the fonticon, the method called by it's onClick function, which sets it's color, gets overriden by the old color due to hoverColor's callback.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/r5825125jo" rel="nofollow">https://codesandbox.io/s/r5825125jo</a></p> <ol dir="auto"> <li>Create a fonticon component within an iconbutton. Don't set a hoverColor.</li> <li>Define it's onClick function to modify it's color as: <code class="notranslate">onClick={(e)=&gt;{e.target.style = "color:#33FF33 !important";console.log(e.target.style.color)}}</code></li> <li>Check the console output which will show that the color changed successfully and it is retained.</li> <li>Repeat 1 and 2 but this time with a hoverColor mentioned.</li> <li>Even after the click, when there is no hover, the color goes back to the predefined color. Same can be seen in the console with <code class="notranslate">console.log(document.getElementByID('icon_id').style.color);</code></li> <li>Tried it with <code class="notranslate">e.target.style.color='#33FF33'</code> earlier which too didn't work.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I am trying to implement the Favorite/Like button which should turn red on hover and should stay red after being clicked. However it goes back to being black if there is no hover, even after being clicked.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">| Tech || etc | | Version |<br> |--------------|---------|<br> | Material-UI | 0.19.4 |<br> | React | 16.1.1 |<br> | browser | 62.0.3202.94 (Official Build) (64-bit) |</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/callemall/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">The <code class="notranslate">className</code> prop can be overridden by other tools or the user (eg. Styled Components).</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The <code class="notranslate">className</code> prop can not be overridden when the Drawer is of the type <code class="notranslate">temporary</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Provide a Drawer component of the type <code class="notranslate">temporary</code> a <code class="notranslate">className</code> prop.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I tried to override material-ui styles of the Drawer component with a Styled Component.</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.6</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> </tbody> </table>
0
<h3 dir="auto">Code Sample from Stamford</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[http://stamfordresearch.com/linear-regression-using-pandas-python/](url) (original code) [](url) import numpy as np import pandas as pd import matplotlib.pyplot as plt data = pd.DataFrame ({ 'length' : [94,74,147,58,86,94,63,86,69,72,128,85,82,86,88,72,74,61,90,89,68,76,114,90,78], 'weight' : [130,51,640,28,80,110,33,90,36,38,366,84,80,83,70,61,54,44,106,84,39,42,197,102,57] }) # create another data frame of log values data_log = np.log(data) # ======================== # Model for Original Data # ======================== lm_original = np.polyfit(data.length, data.weight, 1) polynomial = np.poly1d(lm_original) y =polynomial(data.length) lm_original_plot=pd.DataFrame({ 'length': data.length, 'weight': y }) # ======================== # Model for Log Data # ======================== # Get the linear models lm_log = np.polyfit(data_log.length, data_log.weight, 1) # calculate the y values based on the co-efficients from the model r_x, r_y = zip(*((i, i*lm_log[0] + lm_log[1]) for i in data_log.length)) # Put in to a data frame, to keep is all nice lm_log_plot = pd.DataFrame({ 'length' : r_x, 'weight' : r_y }) # ======================== # Plot the data # ======================== fig, axes = plt.subplots(nrows=1, ncols=2) # Plot the original data and model data.plot(kind='scatter', color='Blue', x='length', y='weight', ax=axes[0],title='Original Values') lm_original_plot.plot(kind='line', color='Red', x='length', y='weight', ax=axes[0]) # Plot the log transformed data and model data_log.plot(kind='scatter', color='Blue', x='length', y='weight', ax=axes[1], title='Log Values') lm_log_plot.plot(kind='line', color='Red', x='length', y='weight', ax=axes[1]) plt.show()"><pre class="notranslate"><code class="notranslate">[http://stamfordresearch.com/linear-regression-using-pandas-python/](url) (original code) [](url) import numpy as np import pandas as pd import matplotlib.pyplot as plt data = pd.DataFrame ({ 'length' : [94,74,147,58,86,94,63,86,69,72,128,85,82,86,88,72,74,61,90,89,68,76,114,90,78], 'weight' : [130,51,640,28,80,110,33,90,36,38,366,84,80,83,70,61,54,44,106,84,39,42,197,102,57] }) # create another data frame of log values data_log = np.log(data) # ======================== # Model for Original Data # ======================== lm_original = np.polyfit(data.length, data.weight, 1) polynomial = np.poly1d(lm_original) y =polynomial(data.length) lm_original_plot=pd.DataFrame({ 'length': data.length, 'weight': y }) # ======================== # Model for Log Data # ======================== # Get the linear models lm_log = np.polyfit(data_log.length, data_log.weight, 1) # calculate the y values based on the co-efficients from the model r_x, r_y = zip(*((i, i*lm_log[0] + lm_log[1]) for i in data_log.length)) # Put in to a data frame, to keep is all nice lm_log_plot = pd.DataFrame({ 'length' : r_x, 'weight' : r_y }) # ======================== # Plot the data # ======================== fig, axes = plt.subplots(nrows=1, ncols=2) # Plot the original data and model data.plot(kind='scatter', color='Blue', x='length', y='weight', ax=axes[0],title='Original Values') lm_original_plot.plot(kind='line', color='Red', x='length', y='weight', ax=axes[0]) # Plot the log transformed data and model data_log.plot(kind='scatter', color='Blue', x='length', y='weight', ax=axes[1], title='Log Values') lm_log_plot.plot(kind='line', color='Red', x='length', y='weight', ax=axes[1]) plt.show() </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Pandas doesn't plot the expected graph as the website mention in it.<br> the bug is at this line:<br> data.plot(kind='scatter', color='Blue', x='length', y='weight', ax=axes[0],title='Original Values')<br> lm_original_plot.plot(kind='line', color='Red', x='length', y='weight', ax=axes[0])<br> The x-axis data is being flipped when pandas try to plot it.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/29069095/26596610/ed284bf6-45a1-11e7-8cbe-a45721f2ace3.png"><img src="https://cloud.githubusercontent.com/assets/29069095/26596610/ed284bf6-45a1-11e7-8cbe-a45721f2ace3.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">Expected Output</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/29069095/26596592/e070bec0-45a1-11e7-80a9-3f8486c80e3d.png"><img src="https://cloud.githubusercontent.com/assets/29069095/26596592/e070bec0-45a1-11e7-80a9-3f8486c80e3d.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.0.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None <p dir="auto">pandas: 0.20.1<br> pytest: 3.0.5<br> pip: 9.0.1<br> setuptools: 35.0.2<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> xarray: None<br> IPython: 6.0.0<br> sphinx: 1.6.2<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.2.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: 2.4.1<br> xlrd: 1.0.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.6<br> lxml: 3.7.2<br> bs4: 4.5.3<br> html5lib: 0.999999999<br> sqlalchemy: 1.1.5<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">X axis was inverted automatically and unexpectedly when plotting a series of data against another series of data using pandas.<br> My example code blow creates three plots, only some, not all, of which shows inverted x axis. I think this behavior is very confusing for users even if there was some rationale behind it. IMHO, automatic inversion of x axis is unnecessary because a user can use invert_xaxis() in case one wants to invert it. On <a href="http://stackoverflow.com/questions/29908874/x-axis-inverted-unexpectedly-by-pandas-plot" rel="nofollow">stackoverflow</a>, a workaround was suggested, but no direct solution.</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 df2 = pd.DataFrame(np.random.randn(10, 3), columns=[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]) df3 = df2*1.1 df3.rename(columns={&quot;a&quot;: &quot;a*1.1&quot;, &quot;b&quot;: &quot;b*1.1&quot;, &quot;c&quot;: &quot;c*1.1&quot;}, inplace=True) df23 = df2.join(df3) fig, ax_list = plt.subplots(1,3) ax=ax_list[0] df23[[&quot;a&quot;, &quot;a*1.1&quot;]].plot(ax=ax, x=&quot;a&quot;) ax.axis('equal') ax.set_title(&quot;(x,y)=(a,a*1.1)&quot;) print ax.get_xlim() ## Added for clarity ax=ax_list[1] df23[[&quot;b&quot;, &quot;b*1.1&quot;]].plot(ax=ax, x=&quot;b&quot;) ax.axis('equal') ax.set_title(&quot;(x,y)=(b,b*1.1)&quot;) print ax.get_xlim() ## Added for clarity ax=ax_list[2] df23[[&quot;c&quot;, &quot;c*1.1&quot;]].plot(ax=ax, x=&quot;c&quot;) ax.axis('equal') ax.set_title(&quot;(x,y)=(c,c*1.1)&quot;) print ax.get_xlim() ## Added for clarity"><pre class="notranslate"><code class="notranslate">import pandas as pd import numpy as np import matplotlib.pyplot as plt df2 = pd.DataFrame(np.random.randn(10, 3), columns=["a", "b", "c"]) df3 = df2*1.1 df3.rename(columns={"a": "a*1.1", "b": "b*1.1", "c": "c*1.1"}, inplace=True) df23 = df2.join(df3) fig, ax_list = plt.subplots(1,3) ax=ax_list[0] df23[["a", "a*1.1"]].plot(ax=ax, x="a") ax.axis('equal') ax.set_title("(x,y)=(a,a*1.1)") print ax.get_xlim() ## Added for clarity ax=ax_list[1] df23[["b", "b*1.1"]].plot(ax=ax, x="b") ax.axis('equal') ax.set_title("(x,y)=(b,b*1.1)") print ax.get_xlim() ## Added for clarity ax=ax_list[2] df23[["c", "c*1.1"]].plot(ax=ax, x="c") ax.axis('equal') ax.set_title("(x,y)=(c,c*1.1)") print ax.get_xlim() ## Added for clarity </code></pre></div>
1
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Hello, I was "pip install scipy" to install scipy in my m1 macbook pro. Then, errors came out. (I wrote it on Error Messages). Anyway I am currently developing in a virtual environment of python 3.9.5 through conda. I wonder why these errors occur during the installation process and how they can be solved. Please help me.</p> <p dir="auto">and if you find any personal information from the error message I posted, please let me know. I'll edit it. thanks.</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="pip install scipy"><pre class="notranslate"><span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">scipy</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR: Command errored out with exit status 1: command: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-standalone-pip-vf556n1y/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-build-env-y52azw4r/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'wheel&lt;0.37.0' 'setuptools&lt;58.0.0' 'Cython&gt;=0.29.18,&lt;3.0' 'pybind11&gt;=2.4.3,&lt;2.7.0' pythran==0.9.11 'numpy==1.19.2; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_machine=='&quot;'&quot;'aarch64'&quot;'&quot;'' 'numpy==1.19.2; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_machine=='&quot;'&quot;'aarch64'&quot;'&quot;'' 'numpy==1.16.5; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_machine!='&quot;'&quot;'aarch64'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.17.3; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_machine!='&quot;'&quot;'aarch64'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.19.3; python_version=='&quot;'&quot;'3.9'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.20.0; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy; python_version=='&quot;'&quot;'3.9'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' cwd: None Complete output (941 lines): Ignoring numpy: markers 'python_version == &quot;3.7&quot; and platform_machine == &quot;aarch64&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.8&quot; and platform_machine == &quot;aarch64&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.7&quot; and platform_machine != &quot;aarch64&quot; and platform_python_implementation != &quot;PyPy&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.8&quot; and platform_machine != &quot;aarch64&quot; and platform_python_implementation != &quot;PyPy&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.7&quot; and platform_python_implementation == &quot;PyPy&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.8&quot; and platform_python_implementation == &quot;PyPy&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.9&quot; and platform_python_implementation == &quot;PyPy&quot;' don't match your environment Collecting wheel&lt;0.37.0 Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB) Collecting setuptools&lt;58.0.0 Using cached setuptools-57.5.0-py3-none-any.whl (819 kB) Collecting Cython&lt;3.0,&gt;=0.29.18 Using cached Cython-0.29.24-py2.py3-none-any.whl (979 kB) Collecting pybind11&lt;2.7.0,&gt;=2.4.3 Using cached pybind11-2.6.2-py2.py3-none-any.whl (191 kB) Collecting pythran==0.9.11 Using cached pythran-0.9.11-py3-none-any.whl (4.2 MB) Collecting numpy==1.19.3 Using cached numpy-1.19.3.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting gast~=0.4.0 Using cached gast-0.4.0-py3-none-any.whl (9.8 kB) Collecting six Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting networkx&gt;=2 Using cached networkx-2.6.3-py3-none-any.whl (1.9 MB) Collecting decorator Using cached decorator-5.1.0-py3-none-any.whl (9.1 kB) Collecting ply&gt;=3.4 Using cached ply-3.11-py2.py3-none-any.whl (49 kB) Collecting beniget~=0.3.0 Using cached beniget-0.3.0-py3-none-any.whl (9.3 kB) Building wheels for collected packages: numpy Building wheel for numpy (PEP 517): started Building wheel for numpy (PEP 517): finished with status 'error' ERROR: Command errored out with exit status 1: command: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/tmpssl6bug7_in_process.py build_wheel /var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/tmp3hbwik88 cwd: /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963 Complete output (893 lines): Running from numpy source directory. numpy/random/_bounded_integers.pxd.in has not changed numpy/random/_philox.pyx has not changed numpy/random/_bounded_integers.pyx.in has not changed numpy/random/_sfc64.pyx has not changed numpy/random/_mt19937.pyx has not changed numpy/random/bit_generator.pyx has not changed Processing numpy/random/_bounded_integers.pyx numpy/random/mtrand.pyx has not changed numpy/random/_generator.pyx has not changed numpy/random/_pcg64.pyx has not changed numpy/random/_common.pyx has not changed Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE blis_info: libraries blis not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE accelerate_info: libraries accelerate not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] Library accelerate was not found. Ignoring libraries veclib not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] Library veclib was not found. Ignoring FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_clapack_info: libraries openblas,lapack not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE flame_info: libraries flame not found in ['/Users/bahk_insung/miniforge3/envs/pycv/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries tatlas,tatlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt; NOT AVAILABLE atlas_3_10_info: libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries satlas,satlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt; NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries ptf77blas,ptcblas,atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt; NOT AVAILABLE atlas_info: libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries f77blas,cblas,atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_info'&gt; NOT AVAILABLE FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] /Users/bahk_insung/miniforge3/envs/pycv/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources building library &quot;npymath&quot; sources Could not locate executable gfortran Could not locate executable f95 Could not locate executable f90 Could not locate executable f77 Could not locate executable xlf90 Could not locate executable xlf Could not locate executable ifort Could not locate executable ifc Could not locate executable g77 Could not locate executable g95 Could not locate executable pgfortran don't know how to compile Fortran code on platform 'posix' adding 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath' to include_dirs. None - nothing done with h_files = ['build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_internal.h'] building library &quot;npysort&quot; sources adding 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/common' to include_dirs. None - nothing done with h_files = ['build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_sort.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_partition.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_binsearch.h'] building library &quot;npyrandom&quot; sources building extension &quot;numpy.core._multiarray_tests&quot; sources building extension &quot;numpy.core._multiarray_umath&quot; sources adding 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath' to include_dirs. adding 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath' to include_dirs. adding 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/common' to include_dirs. numpy.core - nothing done with h_files = ['build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/funcs.inc', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/simd.inc', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/loops.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/matmul.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/clip.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_internal.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/templ_common.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/config.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/__multiarray_api.h', 'build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/__ufunc_api.h'] building extension &quot;numpy.core._umath_tests&quot; sources building extension &quot;numpy.core._rational_tests&quot; sources building extension &quot;numpy.core._struct_ufunc_tests&quot; sources building extension &quot;numpy.core._operand_flag_tests&quot; sources building extension &quot;numpy.fft._pocketfft_internal&quot; sources building extension &quot;numpy.linalg.lapack_lite&quot; sources building extension &quot;numpy.linalg._umath_linalg&quot; sources building extension &quot;numpy.random._mt19937&quot; sources building extension &quot;numpy.random._philox&quot; sources building extension &quot;numpy.random._pcg64&quot; sources building extension &quot;numpy.random._sfc64&quot; sources building extension &quot;numpy.random._common&quot; sources building extension &quot;numpy.random.bit_generator&quot; sources building extension &quot;numpy.random._generator&quot; sources building extension &quot;numpy.random._bounded_integers&quot; sources building extension &quot;numpy.random.mtrand&quot; sources building data_files sources build_src: building npy-pkg config files running build_py creating build/lib.macosx-11.0-arm64-3.9 creating build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/conftest.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/version.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_globals.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/dual.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_distributor_init.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/ctypeslib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/matlib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_pytesttester.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy copying build/src.macosx-11.0-arm64-3.9/numpy/__config__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy creating build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/py3k.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/_inspect.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat creating build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests copying numpy/compat/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests copying numpy/compat/tests/test_compat.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/umath.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/fromnumeric.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_dtype.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_add_newdocs.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_methods.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_internal.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_string_helpers.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/multiarray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_asarray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/records.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/setup_common.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/memmap.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/overrides.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/getlimits.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_dtype_ctypes.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/defchararray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/shape_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/machar.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/numeric.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/function_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/einsumfunc.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/umath_tests.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_ufunc_config.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_exceptions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/numerictypes.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_type_aliases.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/cversions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/arrayprint.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/code_generators/generate_numpy_api.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core creating build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_numerictypes.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalar_methods.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarmath.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_item_selection.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_machar.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_unicode.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_arrayprint.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarbuffer.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_indexerrors.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_print.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_half.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_mem_overlap.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_shape_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_deprecations.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_errstate.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_records.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarinherit.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_indexing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_numeric.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_function_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_datetime.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test__exceptions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_extint128.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath_complex.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/_locales.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_defchararray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_conversion_utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarprint.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_abc.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_ufunc.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_dtype.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath_accuracy.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_getlimits.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_einsum.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_api.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_longdouble.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_overrides.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalar_ctors.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_multiarray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_memmap.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_nditer.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_cpu_features.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_protocols.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/core/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/unixccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/numpy_distribution.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/conv_template.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/cpuinfo.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/ccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/msvc9compiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/npy_pkg_config.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/misc_util.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/log.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/line_endings.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/lib2def.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/pathccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/system_info.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/core.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/exec_command.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/from_template.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/mingw32ccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/extension.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/msvccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/intelccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/_shell_utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying build/src.macosx-11.0-arm64-3.9/numpy/distutils/__config__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/config_compiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_ext.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/config.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_headers.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_py.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_src.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/sdist.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_scripts.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/bdist_rpm.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_clib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_clib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/autodist.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/egg_info.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/develop.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_data.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/gnu.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/compaq.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/intel.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/none.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/nag.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/pg.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/ibm.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/sun.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/nv.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/lahey.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/g95.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/mips.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/hpux.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/environment.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/pathf95.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/absoft.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/vast.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_system_info.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_mingw32ccompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_from_template.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_intel.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_misc_util.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_shell_utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_exec_command.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_npy_pkg_config.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_nagfor.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_gnu.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/misc.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/internals.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/creation.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/dispatch.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/constants.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/ufuncs.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/broadcasting.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/basics.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/subclassing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/indexing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/byteswapping.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/structured_arrays.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/glossary.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/doc creating build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/cfuncs.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/common_rules.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/crackfortran.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/cb_rules.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/rules.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f2py2e.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/func2subr.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__version__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/diagnose.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/capi_maps.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f90mod_rules.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f2py_testing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/use_rules.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/auxfuncs.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__main__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py creating build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_mixed.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_logical.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_assumed_shape.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_common.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_kind.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_array_from_pyobj.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_real.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/util.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_size.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_callback.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_string.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_quoted_character.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_parameter.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_semicolon_split.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_compile_function.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_block_docstring.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_integer.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_character.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_complex.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_crackfortran.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/helper.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/_pocketfft.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft creating build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/test_pocketfft.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/test_helper.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_iotools.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/mixins.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/nanfunctions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/recfunctions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/histograms.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/scimath.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_version.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/user_array.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/format.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/twodim_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/financial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/index_tricks.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/npyio.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/shape_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/stride_tricks.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arrayterator.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/function_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arraysetops.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arraypad.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/type_check.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/polynomial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_datasource.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/ufunclike.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib creating build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_type_check.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_twodim_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_polynomial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__iotools.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_shape_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_ufunclike.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_index_tricks.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arrayterator.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__version.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_io.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arraysetops.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_function_base.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arraypad.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_mixins.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_packbits.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__datasource.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_stride_tricks.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_financial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_recfunctions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_nanfunctions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_format.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_histograms.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/linalg.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg creating build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_linalg.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_deprecations.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_build.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/extras.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/testutils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/core.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/bench.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/timer_comparison.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/mrecords.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma creating build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_old_ma.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_core.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_deprecations.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_subclassing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_extras.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_mrecords.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/defmatrix.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib creating build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_matrix_linalg.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_defmatrix.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_interaction.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_numeric.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_masked_matrix.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_multiarray.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/laguerre.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/_polybase.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/polyutils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/hermite_e.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/chebyshev.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/polynomial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/legendre.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/hermite.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial creating build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_chebyshev.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_hermite_e.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_polynomial.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_laguerre.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_legendre.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_printing.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_hermite.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_classes.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_polyutils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/_pickle.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random creating build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_generator_mt19937.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_randomstate.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_direct.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_extending.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_smoke.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_randomstate_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_seed_sequence.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_generator_mt19937_regressions.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_random.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_regression.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/random/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/setup.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/print_coercion_tables.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing creating build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/nosetester.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/noseclasses.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/parameterized.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/decorators.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private creating build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_utils.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_decorators.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_doctesting.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_warnings.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_matlib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_ctypeslib.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_numpy_version.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/__init__.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_reloading.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_public_api.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_scripts.py -&gt; build/lib.macosx-11.0-arm64-3.9/numpy/tests running build_clib customize UnixCCompiler customize UnixCCompiler using new_build_clib building 'npymath' library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9 creating build/temp.macosx-11.0-arm64-3.9/numpy creating build/temp.macosx-11.0-arm64-3.9/numpy/core creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath creating build/temp.macosx-11.0-arm64-3.9/build creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath compile options: '-Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c' clang: numpy/core/src/npymath/npy_math.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_complex.c clang: numpy/core/src/npymath/halffloat.c In file included from numpy/core/src/npymath/npy_math.c:9: numpy/core/src/npymath/npy_math_internal.h.src:490:21: warning: incompatible pointer types passing 'npy_longdouble *' (aka 'double *') to parameter of type 'long double *' [-Wincompatible-pointer-types] return modfl(x, iptr); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:394:52: note: passing argument to parameter here extern long double modfl(long double, long double *); ^ 1 warning generated. ar: adding 4 object files to build/temp.macosx-11.0-arm64-3.9/libnpymath.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpymath.a building 'npysort' library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort compile options: '-Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c' clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/mergesort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/timsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/heapsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/radixsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/quicksort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/selection.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/binsearch.c numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k; ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead else if (0 &amp;&amp; kth == num - 1) { ^ /* DISABLES CODE */ ( ) 22 warnings generated. ar: adding 7 object files to build/temp.macosx-11.0-arm64-3.9/libnpysort.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpysort.a building 'npyrandom' library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/numpy/random creating build/temp.macosx-11.0-arm64-3.9/numpy/random/src creating build/temp.macosx-11.0-arm64-3.9/numpy/random/src/distributions compile options: '-Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c' clang: numpy/random/src/distributions/logfactorial.c clang: numpy/random/src/distributions/distributions.c clang: numpy/random/src/distributions/random_mvhg_count.c clang: numpy/random/src/distributions/random_mvhg_marginals.c clang: numpy/random/src/distributions/random_hypergeometric.c ar: adding 5 object files to build/temp.macosx-11.0-arm64-3.9/libnpyrandom.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpyrandom.a running build_ext customize UnixCCompiler customize UnixCCompiler using new_build_ext building 'numpy.core._multiarray_tests' extension compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/common compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c' clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/_multiarray_tests.c clang: numpy/core/src/common/mem_overlap.c In file included from numpy/core/src/multiarray/_multiarray_tests.c.src:7: In file included from numpy/core/include/numpy/npy_math.h:596: numpy/core/src/npymath/npy_math_internal.h.src:490:21: warning: incompatible pointer types passing 'npy_longdouble *' (aka 'double *') to parameter of type 'long double *' [-Wincompatible-pointer-types] return modfl(x, iptr); ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:394:52: note: passing argument to parameter here extern long double modfl(long double, long double *); ^ numpy/core/src/multiarray/_multiarray_tests.c.src:1895:61: warning: format specifies type 'long double' but the argument has type 'npy_longdouble' (aka 'double') [-Wformat] PyOS_snprintf(str, sizeof(str), &quot;%.*Lg&quot;, precision, x); ~~~~~ ^ %.*g 2 warnings generated. clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/bahk_insung/miniforge3/envs/pycv/lib -L/Users/bahk_insung/miniforge3/envs/pycv/lib -Wl,-rpath,/Users/bahk_insung/miniforge3/envs/pycv/lib -L/Users/bahk_insung/miniforge3/envs/pycv/lib -arch arm64 build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/_multiarray_tests.o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/common/mem_overlap.o -Lbuild/temp.macosx-11.0-arm64-3.9 -lnpymath -o build/lib.macosx-11.0-arm64-3.9/numpy/core/_multiarray_tests.cpython-39-darwin.so building 'numpy.core._multiarray_umath' extension compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/umath creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/common creating build/temp.macosx-11.0-arm64-3.9/private creating build/temp.macosx-11.0-arm64-3.9/private/var creating build/temp.macosx-11.0-arm64-3.9/private/var/folders creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01 creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963 creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils/src compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/umath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c' extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers' clang: numpy/core/src/multiarray/alloc.c clang: numpy/core/src/multiarray/array_assign_scalar.c clang: numpy/core/src/multiarray/buffer.c clang: numpy/core/src/multiarray/common.c clang: numpy/core/src/multiarray/conversion_utils.c clang: numpy/core/src/multiarray/datetime_strings.c clang: numpy/core/src/multiarray/descriptor.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/einsum.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/hashdescr.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/lowlevel_strided_loops.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/nditer_constr.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/multiarraymodule.c clang: numpy/core/src/multiarray/refcount.c clang: error: clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/scalarapi.c clang: numpy/core/src/multiarray/temp_elide.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/loops.c clang: numpy/core/src/umath/ufunc_object.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/vdot.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/umath/ufunc_type_resolution.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/array_assign.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/ucsnarrow.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_cpu_features.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils/src/apple_sgemv_fix.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly error: Command &quot;clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/umath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c numpy/core/src/multiarray/conversion_utils.c -o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/conversion_utils.o -MMD -MF build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/conversion_utils.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers&quot; failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/47/33/a24aec22b7be7fdb10ec117a95e1e4099890d8bbc6646902f443fc7719d1/scipy-1.7.1.tar.gz#sha256=6b47d5fa7ea651054362561a28b1ccc8da9368a39514c1bbf6c0977a1c376764 (from https://pypi.org/simple/scipy/) (requires-python:&gt;=3.7,&lt;3.10). Command errored out with exit status 1: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-standalone-pip-vf556n1y/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-build-env-y52azw4r/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'wheel&lt;0.37.0' 'setuptools&lt;58.0.0' 'Cython&gt;=0.29.18,&lt;3.0' 'pybind11&gt;=2.4.3,&lt;2.7.0' pythran==0.9.11 'numpy==1.19.2; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_machine=='&quot;'&quot;'aarch64'&quot;'&quot;'' 'numpy==1.19.2; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_machine=='&quot;'&quot;'aarch64'&quot;'&quot;'' 'numpy==1.16.5; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_machine!='&quot;'&quot;'aarch64'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.17.3; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_machine!='&quot;'&quot;'aarch64'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.19.3; python_version=='&quot;'&quot;'3.9'&quot;'&quot;' and platform_python_implementation != '&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy==1.20.0; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy; python_version=='&quot;'&quot;'3.8'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' 'numpy; python_version=='&quot;'&quot;'3.9'&quot;'&quot;' and platform_python_implementation=='&quot;'&quot;'PyPy'&quot;'&quot;'' Check the logs for full command output."><pre class="notranslate">ERROR: Command errored out with <span class="pl-c1">exit</span> status 1: command: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-standalone-pip-vf556n1y/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-build-env-y52azw4r/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'wheel&lt;0.37.0' 'setuptools&lt;58.0.0' 'Cython&gt;=0.29.18,&lt;3.0' 'pybind11&gt;=2.4.3,&lt;2.7.0' pythran==0.9.11 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.20.0; python_version=='"'"'3.7'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' 'numpy; python_version=='"'"'3.8'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' 'numpy; python_version=='"'"'3.9'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' cwd: None Complete output (941 lines): Ignoring numpy: markers <span class="pl-s"><span class="pl-pds">'</span>python_version == "3.7" and platform_machine == "aarch64"<span class="pl-pds">'</span></span> don<span class="pl-s"><span class="pl-pds">'</span>t match your environment</span> <span class="pl-s"> Ignoring numpy: markers <span class="pl-pds">'</span></span>python_version == <span class="pl-s"><span class="pl-pds">"</span>3.8<span class="pl-pds">"</span></span> and platform_machine == <span class="pl-s"><span class="pl-pds">"</span>aarch64<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span> don<span class="pl-pds">'</span></span>t match your environment Ignoring numpy: markers <span class="pl-s"><span class="pl-pds">'</span>python_version == "3.7" and platform_machine != "aarch64" and platform_python_implementation != "PyPy"<span class="pl-pds">'</span></span> don<span class="pl-s"><span class="pl-pds">'</span>t match your environment</span> <span class="pl-s"> Ignoring numpy: markers <span class="pl-pds">'</span></span>python_version == <span class="pl-s"><span class="pl-pds">"</span>3.8<span class="pl-pds">"</span></span> and platform_machine <span class="pl-k">!</span>= <span class="pl-s"><span class="pl-pds">"</span>aarch64<span class="pl-pds">"</span></span> and platform_python_implementation <span class="pl-k">!</span>= <span class="pl-s"><span class="pl-pds">"</span>PyPy<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span> don<span class="pl-pds">'</span></span>t match your environment Ignoring numpy: markers <span class="pl-s"><span class="pl-pds">'</span>python_version == "3.7" and platform_python_implementation == "PyPy"<span class="pl-pds">'</span></span> don<span class="pl-s"><span class="pl-pds">'</span>t match your environment</span> <span class="pl-s"> Ignoring numpy: markers <span class="pl-pds">'</span></span>python_version == <span class="pl-s"><span class="pl-pds">"</span>3.8<span class="pl-pds">"</span></span> and platform_python_implementation == <span class="pl-s"><span class="pl-pds">"</span>PyPy<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span> don<span class="pl-pds">'</span></span>t match your environment Ignoring numpy: markers <span class="pl-s"><span class="pl-pds">'</span>python_version == "3.9" and platform_python_implementation == "PyPy"<span class="pl-pds">'</span></span> don<span class="pl-s"><span class="pl-pds">'</span>t match your environment</span> <span class="pl-s"> Collecting wheel&lt;0.37.0</span> <span class="pl-s"> Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)</span> <span class="pl-s"> Collecting setuptools&lt;58.0.0</span> <span class="pl-s"> Using cached setuptools-57.5.0-py3-none-any.whl (819 kB)</span> <span class="pl-s"> Collecting Cython&lt;3.0,&gt;=0.29.18</span> <span class="pl-s"> Using cached Cython-0.29.24-py2.py3-none-any.whl (979 kB)</span> <span class="pl-s"> Collecting pybind11&lt;2.7.0,&gt;=2.4.3</span> <span class="pl-s"> Using cached pybind11-2.6.2-py2.py3-none-any.whl (191 kB)</span> <span class="pl-s"> Collecting pythran==0.9.11</span> <span class="pl-s"> Using cached pythran-0.9.11-py3-none-any.whl (4.2 MB)</span> <span class="pl-s"> Collecting numpy==1.19.3</span> <span class="pl-s"> Using cached numpy-1.19.3.zip (7.3 MB)</span> <span class="pl-s"> Installing build dependencies: started</span> <span class="pl-s"> Installing build dependencies: finished with status <span class="pl-pds">'</span></span>done<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> Getting requirements to build wheel: started</span> <span class="pl-s"> Getting requirements to build wheel: finished with status <span class="pl-pds">'</span></span>done<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> Preparing wheel metadata: started</span> <span class="pl-s"> Preparing wheel metadata: finished with status <span class="pl-pds">'</span></span>done<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> Collecting gast~=0.4.0</span> <span class="pl-s"> Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)</span> <span class="pl-s"> Collecting six</span> <span class="pl-s"> Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)</span> <span class="pl-s"> Collecting networkx&gt;=2</span> <span class="pl-s"> Using cached networkx-2.6.3-py3-none-any.whl (1.9 MB)</span> <span class="pl-s"> Collecting decorator</span> <span class="pl-s"> Using cached decorator-5.1.0-py3-none-any.whl (9.1 kB)</span> <span class="pl-s"> Collecting ply&gt;=3.4</span> <span class="pl-s"> Using cached ply-3.11-py2.py3-none-any.whl (49 kB)</span> <span class="pl-s"> Collecting beniget~=0.3.0</span> <span class="pl-s"> Using cached beniget-0.3.0-py3-none-any.whl (9.3 kB)</span> <span class="pl-s"> Building wheels for collected packages: numpy</span> <span class="pl-s"> Building wheel for numpy (PEP 517): started</span> <span class="pl-s"> Building wheel for numpy (PEP 517): finished with status <span class="pl-pds">'</span></span>error<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> ERROR: Command errored out with exit status 1:</span> <span class="pl-s"> command: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/tmpssl6bug7_in_process.py build_wheel /var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/tmp3hbwik88</span> <span class="pl-s"> cwd: /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963</span> <span class="pl-s"> Complete output (893 lines):</span> <span class="pl-s"> Running from numpy source directory.</span> <span class="pl-s"> numpy/random/_bounded_integers.pxd.in has not changed</span> <span class="pl-s"> numpy/random/_philox.pyx has not changed</span> <span class="pl-s"> numpy/random/_bounded_integers.pyx.in has not changed</span> <span class="pl-s"> numpy/random/_sfc64.pyx has not changed</span> <span class="pl-s"> numpy/random/_mt19937.pyx has not changed</span> <span class="pl-s"> numpy/random/bit_generator.pyx has not changed</span> <span class="pl-s"> Processing numpy/random/_bounded_integers.pyx</span> <span class="pl-s"> numpy/random/mtrand.pyx has not changed</span> <span class="pl-s"> numpy/random/_generator.pyx has not changed</span> <span class="pl-s"> numpy/random/_pcg64.pyx has not changed</span> <span class="pl-s"> numpy/random/_common.pyx has not changed</span> <span class="pl-s"> Cythonizing sources</span> <span class="pl-s"> blas_opt_info:</span> <span class="pl-s"> blas_mkl_info:</span> <span class="pl-s"> customize UnixCCompiler</span> <span class="pl-s"> libraries mkl_rt not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> blis_info:</span> <span class="pl-s"> libraries blis not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> openblas_info:</span> <span class="pl-s"> libraries openblas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_3_10_blas_threads_info:</span> <span class="pl-s"> Setting PTATLAS=ATLAS</span> <span class="pl-s"> libraries tatlas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_3_10_blas_info:</span> <span class="pl-s"> libraries satlas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_blas_threads_info:</span> <span class="pl-s"> Setting PTATLAS=ATLAS</span> <span class="pl-s"> libraries ptf77blas,ptcblas,atlas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_blas_info:</span> <span class="pl-s"> libraries f77blas,cblas,atlas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> accelerate_info:</span> <span class="pl-s"> libraries accelerate not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> Library accelerate was not found. Ignoring</span> <span class="pl-s"> libraries veclib not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> Library veclib was not found. Ignoring</span> <span class="pl-s"> FOUND:</span> <span class="pl-s"> extra_compile_args = [<span class="pl-pds">'</span></span>-faltivec<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-I/System/Library/Frameworks/vecLib.framework/Headers<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> extra_link_args = [<span class="pl-pds">'</span></span>-Wl,-framework<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-Wl,Accelerate<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> define_macros = [(<span class="pl-pds">'</span></span>NO_ATLAS_INFO<span class="pl-s"><span class="pl-pds">'</span>, 3), (<span class="pl-pds">'</span></span>HAVE_CBLAS<span class="pl-s"><span class="pl-pds">'</span>, None)]</span> <span class="pl-s"></span> <span class="pl-s"> FOUND:</span> <span class="pl-s"> extra_compile_args = [<span class="pl-pds">'</span></span>-faltivec<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-I/System/Library/Frameworks/vecLib.framework/Headers<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> extra_link_args = [<span class="pl-pds">'</span></span>-Wl,-framework<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-Wl,Accelerate<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> define_macros = [(<span class="pl-pds">'</span></span>NO_ATLAS_INFO<span class="pl-s"><span class="pl-pds">'</span>, 3), (<span class="pl-pds">'</span></span>HAVE_CBLAS<span class="pl-s"><span class="pl-pds">'</span>, None)]</span> <span class="pl-s"></span> <span class="pl-s"> non-existing path in <span class="pl-pds">'</span></span>numpy/distutils<span class="pl-s"><span class="pl-pds">'</span>: <span class="pl-pds">'</span></span>site.cfg<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> lapack_opt_info:</span> <span class="pl-s"> lapack_mkl_info:</span> <span class="pl-s"> libraries mkl_rt not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> openblas_lapack_info:</span> <span class="pl-s"> libraries openblas not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> openblas_clapack_info:</span> <span class="pl-s"> libraries openblas,lapack not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> flame_info:</span> <span class="pl-s"> libraries flame not found in [<span class="pl-pds">'</span></span>/Users/bahk_insung/miniforge3/envs/pycv/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/local/lib<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>/usr/lib<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_3_10_threads_info:</span> <span class="pl-s"> Setting PTATLAS=ATLAS</span> <span class="pl-s"> libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries tatlas,tatlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries tatlas,tatlas not found in /usr/local/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/lib</span> <span class="pl-s"> libraries tatlas,tatlas not found in /usr/lib</span> <span class="pl-s"> &lt;class <span class="pl-pds">'</span></span>numpy.distutils.system_info.atlas_3_10_threads_info<span class="pl-s"><span class="pl-pds">'</span>&gt;</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_3_10_info:</span> <span class="pl-s"> libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries satlas,satlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries satlas,satlas not found in /usr/local/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/lib</span> <span class="pl-s"> libraries satlas,satlas not found in /usr/lib</span> <span class="pl-s"> &lt;class <span class="pl-pds">'</span></span>numpy.distutils.system_info.atlas_3_10_info<span class="pl-s"><span class="pl-pds">'</span>&gt;</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_threads_info:</span> <span class="pl-s"> Setting PTATLAS=ATLAS</span> <span class="pl-s"> libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries ptf77blas,ptcblas,atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/lib</span> <span class="pl-s"> libraries ptf77blas,ptcblas,atlas not found in /usr/lib</span> <span class="pl-s"> &lt;class <span class="pl-pds">'</span></span>numpy.distutils.system_info.atlas_threads_info<span class="pl-s"><span class="pl-pds">'</span>&gt;</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> atlas_info:</span> <span class="pl-s"> libraries lapack_atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries f77blas,cblas,atlas not found in /Users/bahk_insung/miniforge3/envs/pycv/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries f77blas,cblas,atlas not found in /usr/local/lib</span> <span class="pl-s"> libraries lapack_atlas not found in /usr/lib</span> <span class="pl-s"> libraries f77blas,cblas,atlas not found in /usr/lib</span> <span class="pl-s"> &lt;class <span class="pl-pds">'</span></span>numpy.distutils.system_info.atlas_info<span class="pl-s"><span class="pl-pds">'</span>&gt;</span> <span class="pl-s"> NOT AVAILABLE</span> <span class="pl-s"></span> <span class="pl-s"> FOUND:</span> <span class="pl-s"> extra_compile_args = [<span class="pl-pds">'</span></span>-faltivec<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-I/System/Library/Frameworks/vecLib.framework/Headers<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> extra_link_args = [<span class="pl-pds">'</span></span>-Wl,-framework<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>-Wl,Accelerate<span class="pl-s"><span class="pl-pds">'</span>]</span> <span class="pl-s"> define_macros = [(<span class="pl-pds">'</span></span>NO_ATLAS_INFO<span class="pl-s"><span class="pl-pds">'</span>, 3), (<span class="pl-pds">'</span></span>HAVE_CBLAS<span class="pl-s"><span class="pl-pds">'</span>, None)]</span> <span class="pl-s"></span> <span class="pl-s"> /Users/bahk_insung/miniforge3/envs/pycv/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: <span class="pl-pds">'</span></span>define_macros<span class="pl-s"><span class="pl-pds">'</span></span> <span class="pl-s"> warnings.warn(msg)</span> <span class="pl-s"> running bdist_wheel</span> <span class="pl-s"> running build</span> <span class="pl-s"> running config_cc</span> <span class="pl-s"> unifing config_cc, config, build_clib, build_ext, build commands --compiler options</span> <span class="pl-s"> running config_fc</span> <span class="pl-s"> unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options</span> <span class="pl-s"> running build_src</span> <span class="pl-s"> build_src</span> <span class="pl-s"> building py_modules sources</span> <span class="pl-s"> building library "npymath" sources</span> <span class="pl-s"> Could not locate executable gfortran</span> <span class="pl-s"> Could not locate executable f95</span> <span class="pl-s"> Could not locate executable f90</span> <span class="pl-s"> Could not locate executable f77</span> <span class="pl-s"> Could not locate executable xlf90</span> <span class="pl-s"> Could not locate executable xlf</span> <span class="pl-s"> Could not locate executable ifort</span> <span class="pl-s"> Could not locate executable ifc</span> <span class="pl-s"> Could not locate executable g77</span> <span class="pl-s"> Could not locate executable g95</span> <span class="pl-s"> Could not locate executable pgfortran</span> <span class="pl-s"> don<span class="pl-pds">'</span></span>t know how to compile Fortran code on platform <span class="pl-s"><span class="pl-pds">'</span>posix<span class="pl-pds">'</span></span> adding <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath<span class="pl-pds">'</span></span> to include_dirs. None - nothing <span class="pl-k">done</span> with h_files = [<span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_internal.h<span class="pl-pds">'</span></span>] building library <span class="pl-s"><span class="pl-pds">"</span>npysort<span class="pl-pds">"</span></span> sources adding <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common<span class="pl-pds">'</span></span> to include_dirs. None - nothing <span class="pl-k">done</span> with h_files = [<span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_sort.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_partition.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_binsearch.h<span class="pl-pds">'</span></span>] building library <span class="pl-s"><span class="pl-pds">"</span>npyrandom<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._multiarray_tests<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._multiarray_umath<span class="pl-pds">"</span></span> sources adding <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath<span class="pl-pds">'</span></span> to include_dirs. adding <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath<span class="pl-pds">'</span></span> to include_dirs. adding <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common<span class="pl-pds">'</span></span> to include_dirs. numpy.core - nothing <span class="pl-k">done</span> with h_files = [<span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/funcs.inc<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/simd.inc<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/loops.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/matmul.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/clip.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_internal.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/templ_common.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/config.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/_numpyconfig.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/__multiarray_api.h<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>build/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy/__ufunc_api.h<span class="pl-pds">'</span></span>] building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._umath_tests<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._rational_tests<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._struct_ufunc_tests<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.core._operand_flag_tests<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.fft._pocketfft_internal<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.linalg.lapack_lite<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.linalg._umath_linalg<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._mt19937<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._philox<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._pcg64<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._sfc64<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._common<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random.bit_generator<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._generator<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random._bounded_integers<span class="pl-pds">"</span></span> sources building extension <span class="pl-s"><span class="pl-pds">"</span>numpy.random.mtrand<span class="pl-pds">"</span></span> sources building data_files sources build_src: building npy-pkg config files running build_py creating build/lib.macosx-11.0-arm64-3.9 creating build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/conftest.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/version.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_globals.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/dual.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_distributor_init.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/ctypeslib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/matlib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying numpy/_pytesttester.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy copying build/src.macosx-11.0-arm64-3.9/numpy/__config__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy creating build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/py3k.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat copying numpy/compat/_inspect.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat creating build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests copying numpy/compat/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests copying numpy/compat/tests/test_compat.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/compat/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/umath.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/fromnumeric.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_dtype.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_add_newdocs.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_methods.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_internal.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_string_helpers.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/multiarray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_asarray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/records.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/setup_common.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/memmap.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/overrides.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/getlimits.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_dtype_ctypes.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/defchararray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/shape_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/machar.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/numeric.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/function_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/einsumfunc.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/umath_tests.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_ufunc_config.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_exceptions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/numerictypes.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/_type_aliases.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/cversions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/arrayprint.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core copying numpy/core/code_generators/generate_numpy_api.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core creating build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_numerictypes.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalar_methods.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarmath.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_item_selection.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_machar.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_unicode.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_arrayprint.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarbuffer.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_indexerrors.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_print.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_half.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_mem_overlap.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_shape_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_deprecations.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_errstate.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_records.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarinherit.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_indexing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_numeric.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_function_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_datetime.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test__exceptions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_extint128.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath_complex.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/_locales.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_defchararray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_conversion_utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalarprint.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_abc.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_ufunc.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_dtype.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_umath_accuracy.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_getlimits.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_einsum.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_api.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_longdouble.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_overrides.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_scalar_ctors.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_multiarray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_memmap.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_nditer.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_cpu_features.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_protocols.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests copying numpy/core/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/core/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/unixccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/numpy_distribution.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/conv_template.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/cpuinfo.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/ccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/msvc9compiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/npy_pkg_config.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/misc_util.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/log.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/line_endings.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/lib2def.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/pathccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/system_info.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/core.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/exec_command.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/from_template.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/mingw32ccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/extension.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/msvccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/intelccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying numpy/distutils/_shell_utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils copying build/src.macosx-11.0-arm64-3.9/numpy/distutils/__config__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/config_compiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_ext.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/config.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_headers.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_py.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_src.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/sdist.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_scripts.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/bdist_rpm.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_clib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/build_clib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/autodist.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/egg_info.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/develop.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command copying numpy/distutils/command/install_data.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/command creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/gnu.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/compaq.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/intel.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/none.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/nag.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/pg.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/ibm.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/sun.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/nv.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/lahey.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/g95.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/mips.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/hpux.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/environment.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/pathf95.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/absoft.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler copying numpy/distutils/fcompiler/vast.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/fcompiler creating build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_system_info.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_mingw32ccompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_from_template.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_intel.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_misc_util.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_shell_utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_exec_command.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_npy_pkg_config.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_nagfor.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests copying numpy/distutils/tests/test_fcompiler_gnu.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/distutils/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/misc.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/internals.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/creation.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/dispatch.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/constants.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/ufuncs.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/broadcasting.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/basics.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/subclassing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/indexing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/byteswapping.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/structured_arrays.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc copying numpy/doc/glossary.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/doc creating build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/cfuncs.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/common_rules.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/crackfortran.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/cb_rules.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/rules.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f2py2e.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/func2subr.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__version__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/diagnose.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/capi_maps.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f90mod_rules.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/f2py_testing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/use_rules.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/auxfuncs.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py copying numpy/f2py/__main__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py creating build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_mixed.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_logical.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_assumed_shape.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_common.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_kind.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_array_from_pyobj.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_real.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/util.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_size.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_callback.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_string.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_quoted_character.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_parameter.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_semicolon_split.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_compile_function.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_block_docstring.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_integer.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_character.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_return_complex.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_crackfortran.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests copying numpy/f2py/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/f2py/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/helper.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft copying numpy/fft/_pocketfft.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft creating build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/test_pocketfft.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/test_helper.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests copying numpy/fft/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/fft/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_iotools.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/mixins.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/nanfunctions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/recfunctions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/histograms.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/scimath.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_version.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/user_array.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/format.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/twodim_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/financial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/index_tricks.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/npyio.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/shape_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/stride_tricks.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arrayterator.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/function_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arraysetops.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/arraypad.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/type_check.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/polynomial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/_datasource.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib copying numpy/lib/ufunclike.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib creating build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_type_check.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_twodim_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_polynomial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__iotools.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_shape_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_ufunclike.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_index_tricks.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arrayterator.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__version.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_io.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arraysetops.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_function_base.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_arraypad.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_mixins.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_packbits.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test__datasource.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_stride_tricks.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_financial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_recfunctions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_nanfunctions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_format.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_histograms.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests copying numpy/lib/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/lib/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg copying numpy/linalg/linalg.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg creating build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_linalg.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_deprecations.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_build.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests copying numpy/linalg/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/linalg/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/extras.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/testutils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/core.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/bench.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/timer_comparison.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma copying numpy/ma/mrecords.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma creating build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_old_ma.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_core.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_deprecations.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_subclassing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_extras.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_mrecords.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests copying numpy/ma/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/ma/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib copying numpy/matrixlib/defmatrix.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib creating build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_matrix_linalg.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_defmatrix.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_interaction.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_numeric.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_masked_matrix.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_multiarray.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests copying numpy/matrixlib/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/matrixlib/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/laguerre.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/_polybase.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/polyutils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/hermite_e.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/chebyshev.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/polynomial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/legendre.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial copying numpy/polynomial/hermite.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial creating build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_chebyshev.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_hermite_e.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_polynomial.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_laguerre.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_legendre.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_printing.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_hermite.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_classes.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests copying numpy/polynomial/tests/test_polyutils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/polynomial/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/_pickle.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random copying numpy/random/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random creating build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_generator_mt19937.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_randomstate.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_direct.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_extending.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_smoke.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_randomstate_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_seed_sequence.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_generator_mt19937_regressions.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_random.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests copying numpy/random/tests/test_regression.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/random/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/setup.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing copying numpy/testing/print_coercion_tables.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing creating build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/nosetester.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/noseclasses.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/parameterized.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private copying numpy/testing/_private/decorators.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/_private creating build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_utils.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_decorators.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests copying numpy/testing/tests/test_doctesting.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/testing/tests creating build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_warnings.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_matlib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_ctypeslib.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_numpy_version.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/__init__.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_reloading.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_public_api.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests copying numpy/tests/test_scripts.py -<span class="pl-k">&gt;</span> build/lib.macosx-11.0-arm64-3.9/numpy/tests running build_clib customize UnixCCompiler customize UnixCCompiler using new_build_clib building <span class="pl-s"><span class="pl-pds">'</span>npymath<span class="pl-pds">'</span></span> library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9 creating build/temp.macosx-11.0-arm64-3.9/numpy creating build/temp.macosx-11.0-arm64-3.9/numpy/core creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/npymath creating build/temp.macosx-11.0-arm64-3.9/build creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath compile options: <span class="pl-s"><span class="pl-pds">'</span>-Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c<span class="pl-pds">'</span></span> clang: numpy/core/src/npymath/npy_math.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/npy_math_complex.c clang: numpy/core/src/npymath/halffloat.c In file included from numpy/core/src/npymath/npy_math.c:9: numpy/core/src/npymath/npy_math_internal.h.src:490:21: warning: incompatible pointer types passing <span class="pl-s"><span class="pl-pds">'</span>npy_longdouble *<span class="pl-pds">'</span></span> (aka <span class="pl-s"><span class="pl-pds">'</span>double *<span class="pl-pds">'</span></span>) to parameter of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>long double *<span class="pl-pds">'</span></span> [-Wincompatible-pointer-types] <span class="pl-k">return</span> modfl(x, iptr)<span class="pl-k">;</span> ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:394:52: note: passing argument to parameter here extern long double modfl(long double, long double <span class="pl-k">*</span>)<span class="pl-k">;</span> ^ 1 warning generated. ar: adding 4 object files to build/temp.macosx-11.0-arm64-3.9/libnpymath.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpymath.a building <span class="pl-s"><span class="pl-pds">'</span>npysort<span class="pl-pds">'</span></span> library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort compile options: <span class="pl-s"><span class="pl-pds">'</span>-Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c<span class="pl-pds">'</span></span> clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/mergesort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/timsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/heapsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/radixsort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/quicksort.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/selection.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npysort/binsearch.c numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) numpy/core/src/npysort/selection.c.src:328:9: warning: code will never be executed [-Wunreachable-code] npy_intp k<span class="pl-k">;</span> ^~~~~~~~~~~ numpy/core/src/npysort/selection.c.src:326:14: note: silence by adding parentheses to mark code as explicitly dead <span class="pl-k">else</span> <span class="pl-k">if</span> (0 <span class="pl-k">&amp;&amp;</span> kth == num - 1) { ^ /<span class="pl-k">*</span> DISABLES CODE <span class="pl-k">*</span>/ ( ) 22 warnings generated. ar: adding 7 object files to build/temp.macosx-11.0-arm64-3.9/libnpysort.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpysort.a building <span class="pl-s"><span class="pl-pds">'</span>npyrandom<span class="pl-pds">'</span></span> library compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/numpy/random creating build/temp.macosx-11.0-arm64-3.9/numpy/random/src creating build/temp.macosx-11.0-arm64-3.9/numpy/random/src/distributions compile options: <span class="pl-s"><span class="pl-pds">'</span>-Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c<span class="pl-pds">'</span></span> clang: numpy/random/src/distributions/logfactorial.c clang: numpy/random/src/distributions/distributions.c clang: numpy/random/src/distributions/random_mvhg_count.c clang: numpy/random/src/distributions/random_mvhg_marginals.c clang: numpy/random/src/distributions/random_hypergeometric.c ar: adding 5 object files to build/temp.macosx-11.0-arm64-3.9/libnpyrandom.a ranlib:@ build/temp.macosx-11.0-arm64-3.9/libnpyrandom.a running build_ext customize UnixCCompiler customize UnixCCompiler using new_build_ext building <span class="pl-s"><span class="pl-pds">'</span>numpy.core._multiarray_tests<span class="pl-pds">'</span></span> extension compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/common compile options: <span class="pl-s"><span class="pl-pds">'</span>-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c<span class="pl-pds">'</span></span> clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/_multiarray_tests.c clang: numpy/core/src/common/mem_overlap.c In file included from numpy/core/src/multiarray/_multiarray_tests.c.src:7: In file included from numpy/core/include/numpy/npy_math.h:596: numpy/core/src/npymath/npy_math_internal.h.src:490:21: warning: incompatible pointer types passing <span class="pl-s"><span class="pl-pds">'</span>npy_longdouble *<span class="pl-pds">'</span></span> (aka <span class="pl-s"><span class="pl-pds">'</span>double *<span class="pl-pds">'</span></span>) to parameter of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>long double *<span class="pl-pds">'</span></span> [-Wincompatible-pointer-types] <span class="pl-k">return</span> modfl(x, iptr)<span class="pl-k">;</span> ^~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:394:52: note: passing argument to parameter here extern long double modfl(long double, long double <span class="pl-k">*</span>)<span class="pl-k">;</span> ^ numpy/core/src/multiarray/_multiarray_tests.c.src:1895:61: warning: format specifies <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>long double<span class="pl-pds">'</span></span> but the argument has <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>npy_longdouble<span class="pl-pds">'</span></span> (aka <span class="pl-s"><span class="pl-pds">'</span>double<span class="pl-pds">'</span></span>) [-Wformat] PyOS_snprintf(str, sizeof(str), <span class="pl-s"><span class="pl-pds">"</span>%.*Lg<span class="pl-pds">"</span></span>, precision, x)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~ ^ %.<span class="pl-k">*</span>g 2 warnings generated. clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/bahk_insung/miniforge3/envs/pycv/lib -L/Users/bahk_insung/miniforge3/envs/pycv/lib -Wl,-rpath,/Users/bahk_insung/miniforge3/envs/pycv/lib -L/Users/bahk_insung/miniforge3/envs/pycv/lib -arch arm64 build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/_multiarray_tests.o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/common/mem_overlap.o -Lbuild/temp.macosx-11.0-arm64-3.9 -lnpymath -o build/lib.macosx-11.0-arm64-3.9/numpy/core/_multiarray_tests.cpython-39-darwin.so building <span class="pl-s"><span class="pl-pds">'</span>numpy.core._multiarray_umath<span class="pl-pds">'</span></span> extension compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray creating build/temp.macosx-11.0-arm64-3.9/numpy/core/src/umath creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath creating build/temp.macosx-11.0-arm64-3.9/build/src.macosx-11.0-arm64-3.9/numpy/core/src/common creating build/temp.macosx-11.0-arm64-3.9/private creating build/temp.macosx-11.0-arm64-3.9/private/var creating build/temp.macosx-11.0-arm64-3.9/private/var/folders creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01 creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963 creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils creating build/temp.macosx-11.0-arm64-3.9/private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils/src compile options: <span class="pl-s"><span class="pl-pds">'</span>-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/umath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c<span class="pl-pds">'</span></span> extra options: <span class="pl-s"><span class="pl-pds">'</span>-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers<span class="pl-pds">'</span></span> clang: numpy/core/src/multiarray/alloc.c clang: numpy/core/src/multiarray/array_assign_scalar.c clang: numpy/core/src/multiarray/buffer.c clang: numpy/core/src/multiarray/common.c clang: numpy/core/src/multiarray/conversion_utils.c clang: numpy/core/src/multiarray/datetime_strings.c clang: numpy/core/src/multiarray/descriptor.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/einsum.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/hashdescr.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/lowlevel_strided_loops.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/nditer_constr.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/multiarraymodule.c clang: numpy/core/src/multiarray/refcount.c clang: error: clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/scalarapi.c clang: numpy/core/src/multiarray/temp_elide.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/umath/loops.c clang: numpy/core/src/umath/ufunc_object.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/vdot.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/umath/ufunc_type_resolution.c clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath/ieee754.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/array_assign.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/ucsnarrow.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: build/src.macosx-11.0-arm64-3.9/numpy/core/src/common/npy_cpu_features.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-install-ch84pk3o/numpy_5f7bd32518d846ce8d5e6d7e60170963/numpy/_build_utils/src/apple_sgemv_fix.c clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support <span class="pl-s"><span class="pl-pds">'</span>faltivec<span class="pl-pds">'</span></span>, please use -maltivec and include altivec.h explicitly error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -fPIC -O2 -isystem /Users/bahk_insung/miniforge3/envs/pycv/include -arch arm64 -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/umath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/bahk_insung/miniforge3/envs/pycv/include/python3.9 -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.9/numpy/core/src/npymath -c numpy/core/src/multiarray/conversion_utils.c -o build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/conversion_utils.o -MMD -MF build/temp.macosx-11.0-arm64-3.9/numpy/core/src/multiarray/conversion_utils.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel <span class="pl-k">for</span> numpy Failed to build numpy ERROR: Could not build wheels <span class="pl-k">for</span> numpy which use PEP 517 and cannot be installed directly ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/47/33/a24aec22b7be7fdb10ec117a95e1e4099890d8bbc6646902f443fc7719d1/scipy-1.7.1.tar.gz#sha256=6b47d5fa7ea651054362561a28b1ccc8da9368a39514c1bbf6c0977a1c376764 (from https://pypi.org/simple/scipy/) (requires-python:&gt;=3.7,&lt;3.10). Command errored out with exit status 1: /Users/bahk_insung/miniforge3/envs/pycv/bin/python3.9 /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-standalone-pip-vf556n1y/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/01/5f5ftlvn2w7c9prxbs4410780000gn/T/pip-build-env-y52azw4r/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'wheel&lt;0.37.0' 'setuptools&lt;58.0.0' 'Cython&gt;=0.29.18,&lt;3.0' 'pybind11&gt;=2.4.3,&lt;2.7.0' pythran==0.9.11 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'numpy==1.20.0; python_version=='"'"'3.7'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' 'numpy; python_version=='"'"'3.8'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' 'numpy; python_version=='"'"'3.9'"'"' and platform_python_implementation=='"'"'PyPy'"'"'' Check the logs for full command output.</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">numpy version==1.21.2; sys.version_info(major=3, minor=9, micro=5, releaselevel='final', serial=0)</p>
<p dir="auto"><strong>EDIT:</strong> As of <strong>2021-08-06</strong>, this solution seems to work for <strong>scipy 1.7.0</strong> (native, not through rosetta):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="brew install openblas pip install cython pybind11 pythran numpy OPENBLAS=$(brew --prefix openblas) CFLAGS=&quot;-falign-functions=8 ${CFLAGS}&quot; pip install --no-use-pep517 scipy==1.7.0"><pre class="notranslate"><code class="notranslate">brew install openblas pip install cython pybind11 pythran numpy OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy==1.7.0 </code></pre></div> <h2 dir="auto">Thanks goes to @lutzroder for the figuring out this solution</h2> <p dir="auto">Hi there, I did not find any other issues related to this on here. I'm having some issues installing scipy on my M1 Macbook Air.</p> <p dir="auto">2020 Macbook Air M1<br> Mac OS Big Sur 11.0.1</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="khuynh@kmba:~ $ python3 --version Python 3.9.1"><pre class="notranslate"><code class="notranslate">khuynh@kmba:~ $ python3 --version Python 3.9.1 </code></pre></div> <h4 dir="auto">Reproducing code example:</h4> <p dir="auto">Install python3.9.1 on Mac OS through brew (natively, not x86):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="brew install [email protected]"><pre class="notranslate"><code class="notranslate">brew install [email protected] </code></pre></div> <p dir="auto">Install numpy (solution from this <a href="https://github.com/numpy/numpy/issues/17807#issuecomment-755916689" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/17807/hovercard">numpy issue</a>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OPENBLAS=&quot;$(brew --prefix openblas)&quot; MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517"><pre class="notranslate"><code class="notranslate">OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517 </code></pre></div> <p dir="auto">Install pandas and matplotlib</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python3 -m pip install matplotlib pandas"><pre class="notranslate"><code class="notranslate">python3 -m pip install matplotlib pandas </code></pre></div> <p dir="auto">Try to install scipy:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python3 -m pip install scipy"><pre class="notranslate"><code class="notranslate">python3 -m pip install scipy </code></pre></div> <h4 dir="auto">Error message:</h4> <p dir="auto">Error output (after successfully installing numpy, pandas, matplotlib):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="khuynh@kmba:~ $ python3 -m pip install scipy Collecting scipy Using cached scipy-1.6.0.tar.gz (27.3 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools&lt;=51.0.0' 'Cython&gt;=0.29.18' 'numpy==1.16.5; python_version=='&quot;'&quot;'3.7'&quot;'&quot;'' 'numpy==1.17.3; python_version=='&quot;'&quot;'3.8'&quot;'&quot;'' 'numpy==1.19.3; python_version=='&quot;'&quot;'3.9'&quot;'&quot;'' 'numpy; python_version&gt;='&quot;'&quot;'3.10'&quot;'&quot;'' 'pybind11&gt;=2.4.3' cwd: None Complete output (226 lines): Ignoring numpy: markers 'python_version == &quot;3.7&quot;' don't match your environment Ignoring numpy: markers 'python_version == &quot;3.8&quot;' don't match your environment Ignoring numpy: markers 'python_version &gt;= &quot;3.10&quot;' don't match your environment Collecting numpy==1.19.3 Using cached numpy-1.19.3.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'error' ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3 cwd: /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1 Complete output (209 lines): Running from numpy source directory. setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates run_build = parse_setuppy_commands() Processing numpy/random/_bounded_integers.pxd.in Processing numpy/random/_philox.pyx Processing numpy/random/_bounded_integers.pyx.in Processing numpy/random/_sfc64.pyx Processing numpy/random/_mt19937.pyx Processing numpy/random/bit_generator.pyx Processing numpy/random/mtrand.pyx Processing numpy/random/_generator.pyx Processing numpy/random/_pcg64.pyx Processing numpy/random/_common.pyx Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE blis_info: libraries blis not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE accelerate_info: libraries accelerate not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] Library accelerate was not found. Ignoring libraries veclib not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] Library veclib was not found. Ignoring FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_clapack_info: libraries openblas,lapack not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE flame_info: libraries flame not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries tatlas,tatlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt; NOT AVAILABLE atlas_3_10_info: libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries satlas,satlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt; NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt; NOT AVAILABLE atlas_info: libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries f77blas,cblas,atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_info'&gt; NOT AVAILABLE FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info running build_src build_src building py_modules sources creating build creating build/src.macosx-11-arm64-3.9 creating build/src.macosx-11-arm64-3.9/numpy creating build/src.macosx-11-arm64-3.9/numpy/distutils building library &quot;npymath&quot; sources Traceback (most recent call last): File &quot;/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py&quot;, line 280, in &lt;module&gt; main() File &quot;/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py&quot;, line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File &quot;/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py&quot;, line 133, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 157, in prepare_metadata_for_build_wheel self.run_setup() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 248, in run_setup super(_BuildMetaLegacyBackend, File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 142, in run_setup exec(compile(code, __file__, 'exec'), locals()) File &quot;setup.py&quot;, line 508, in &lt;module&gt; setup_package() File &quot;setup.py&quot;, line 500, in setup_package setup(**metadata) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/core.py&quot;, line 169, in setup return old_setup(**new_attr) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/__init__.py&quot;, line 165, in setup return distutils.core.setup(**attrs) File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py&quot;, line 148, in setup dist.run_commands() File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 966, in run_commands self.run_command(cmd) File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py&quot;, line 31, in run egg_info.run() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/egg_info.py&quot;, line 24, in run self.run_command(&quot;build_src&quot;) File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py&quot;, line 144, in run self.build_sources() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py&quot;, line 155, in build_sources self.build_library_sources(*libname_info) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py&quot;, line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py&quot;, line 378, in generate_sources source = func(extension, build_dir) File &quot;numpy/core/setup.py&quot;, line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py&quot;, line 241, in try_link self._check_compiler() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/config.py&quot;, line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py&quot;, line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py&quot;, line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py&quot;, line 802, in _find_existing_fcompiler c.customize(dist) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py&quot;, line 526, in customize linker_so_flags = self.flag_vars.linker_so File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py&quot;, line 37, in __getattr__ return self._get_var(name, conf_desc) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py&quot;, line 53, in _get_var var = self._hook_handler(name, hook) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py&quot;, line 705, in _environment_hook return hook() File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py&quot;, line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File &quot;/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py&quot;, line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 684, in __setitem__ value = self.encodevalue(value) File &quot;/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 756, in encode raise TypeError(&quot;str expected, not %s&quot; % type(value).__name__) TypeError: str expected, not int ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3 Check the logs for full command output. ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools&lt;=51.0.0' 'Cython&gt;=0.29.18' 'numpy==1.16.5; python_version=='&quot;'&quot;'3.7'&quot;'&quot;'' 'numpy==1.17.3; python_version=='&quot;'&quot;'3.8'&quot;'&quot;'' 'numpy==1.19.3; python_version=='&quot;'&quot;'3.9'&quot;'&quot;'' 'numpy; python_version&gt;='&quot;'&quot;'3.10'&quot;'&quot;'' 'pybind11&gt;=2.4.3' Check the logs for full command output."><pre class="notranslate"><code class="notranslate">khuynh@kmba:~ $ python3 -m pip install scipy Collecting scipy Using cached scipy-1.6.0.tar.gz (27.3 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools&lt;=51.0.0' 'Cython&gt;=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version&gt;='"'"'3.10'"'"'' 'pybind11&gt;=2.4.3' cwd: None Complete output (226 lines): Ignoring numpy: markers 'python_version == "3.7"' don't match your environment Ignoring numpy: markers 'python_version == "3.8"' don't match your environment Ignoring numpy: markers 'python_version &gt;= "3.10"' don't match your environment Collecting numpy==1.19.3 Using cached numpy-1.19.3.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'error' ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3 cwd: /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1 Complete output (209 lines): Running from numpy source directory. setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates run_build = parse_setuppy_commands() Processing numpy/random/_bounded_integers.pxd.in Processing numpy/random/_philox.pyx Processing numpy/random/_bounded_integers.pyx.in Processing numpy/random/_sfc64.pyx Processing numpy/random/_mt19937.pyx Processing numpy/random/bit_generator.pyx Processing numpy/random/mtrand.pyx Processing numpy/random/_generator.pyx Processing numpy/random/_pcg64.pyx Processing numpy/random/_common.pyx Cythonizing sources blas_opt_info: blas_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE blis_info: libraries blis not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE accelerate_info: libraries accelerate not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] Library accelerate was not found. Ignoring libraries veclib not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] Library veclib was not found. Ignoring FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils': 'site.cfg' lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_clapack_info: libraries openblas,lapack not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE flame_info: libraries flame not found in ['/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries tatlas,tatlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries tatlas,tatlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt; NOT AVAILABLE atlas_3_10_info: libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries satlas,satlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries satlas,satlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt; NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt; NOT AVAILABLE atlas_info: libraries lapack_atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries f77blas,cblas,atlas not found in /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/lib libraries f77blas,cblas,atlas not found in /usr/lib &lt;class 'numpy.distutils.system_info.atlas_info'&gt; NOT AVAILABLE FOUND: extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] /opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running dist_info running build_src build_src building py_modules sources creating build creating build/src.macosx-11-arm64-3.9 creating build/src.macosx-11-arm64-3.9/numpy creating build/src.macosx-11-arm64-3.9/numpy/distutils building library "npymath" sources Traceback (most recent call last): File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in &lt;module&gt; main() File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel self.run_setup() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup super(_BuildMetaLegacyBackend, File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 508, in &lt;module&gt; setup_package() File "setup.py", line 500, in setup_package setup(**metadata) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 31, in run egg_info.run() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/egg_info.py", line 24, in run self.run_command("build_src") File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 155, in build_sources self.build_library_sources(*libname_info) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 378, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py", line 241, in try_link self._check_compiler() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/config.py", line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 802, in _find_existing_fcompiler c.customize(dist) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 526, in customize linker_so_flags = self.flag_vars.linker_so File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 37, in __getattr__ return self._get_var(name, conf_desc) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 53, in _get_var var = self._hook_handler(name, hook) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 705, in _environment_hook return hook() File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__ value = self.encodevalue(value) File "/opt/homebrew/Cellar/[email protected]/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not int ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3 Check the logs for full command output. ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/homebrew/opt/[email protected]/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools&lt;=51.0.0' 'Cython&gt;=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version&gt;='"'"'3.10'"'"'' 'pybind11&gt;=2.4.3' Check the logs for full command output. </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, numpy; print(numpy.__version__, sys.version_info) 1.19.5 sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, numpy; print(numpy.__version__, sys.version_info) 1.19.5 sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) </code></pre></div>
1
<p dir="auto">It would be nice to implement MacOS/Linux style configurable hot corners actions.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I primarily use launchers to open (known) apps. As such, I don't need to know if it's a Win32 application, if it's a running process, et cetera. Similar to Spotlight, I would like as little detail to be returned as possible. An application's icon, along with its name is all I need.</p> <p dir="auto">Additionally, I would like to be able to adjust the screen size of both the Launcher itself, as well as the returned results.</p> <p dir="auto">Should the roadmap for Run include returning results from extra sources (dictionary, calculator, web, etc), I would like those to be selectable as well, so that I have as little clutter as possible.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <ol dir="auto"> <li> <p dir="auto">Add an option to the PowerToys application where users can select the level of detail they want returned in their PowerToys Run search results. Probably through several checkboxes. This should instant reflect in the Launcher search results UI and persist.</p> </li> <li> <p dir="auto">Add a preference option where one is able to set the font and UI size of the Launcher and its results pane.</p> </li> <li> <p dir="auto">Add a preference option to enable or disable currently supported source types. I.e. I don't need to find every single file on disk through Launcher. I primarily just want it to index apps from my Start Menu.</p> </li> </ol>
0
<p dir="auto">I just have a problem that when i click disable button and then click the uninstall button on the package and then I think that this package is remove because I can't see it in the package list in the setting.but it not because when i try to reinstall it by searching the package name again ,the uninstall and enable button still show on the package and i can't install it because no install button.Nothing happen when I click that uninstall or enable button.<br> Thx for help and sorry for my English. :(<br> I use Windows 8.1</p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HitomiTenshi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HitomiTenshi">@HitomiTenshi</a> on May 17, 2015 1:39</em></p> <p dir="auto">How to reproduce:</p> <ul dir="auto"> <li>Go to settings -&gt; Install</li> <li>Find a package you have installed at the moment</li> <li>Press disable and after that click on uninstall</li> <li>Restart atom</li> <li>Search for your disabled/uninstalled package</li> </ul> <p dir="auto">You will now see that it is uninstalled AND disabled, but it can't be enabled anymore.<br> To circumvent this bug you have to use apm through the console in order to re-install that package.</p> <p dir="auto">Atom version: <del>0.119.0</del> 0.199.0<br> OS: Windows 8.1 Pro 64 bit</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="77180585" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6826" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6826/hovercard" href="https://github.com/atom/atom/issues/6826">atom/atom#6826</a></em></p>
1
<p dir="auto">I tried using the types/angular-ui-bootstrap package, and now I have tons of build errors along the lines of:<br> "Build" duplicate identifier 'angular'<br> these are being raised from the angular-animate index.d.ts (which was fine before I imported angular-ui-bootstrap)</p> <p dir="auto">I also get the error:<br> Buile: Module 'angular.ui' has no exported member 'bootstrap' these errors are in the actual angular-ui-bootstrap index.d.ts file -- sorry, but I really don't understand what's happening here.</p> <p dir="auto">My setup:<br> we use typings to pull our definintions (we are on typescript 1.8.10</p> <p dir="auto">if I uninstall the angular-ui-bootstrap typings, everything works (we have over a dozen or so typings packages installed, and no problems, so I <em>think</em> my configuration is ok.</p> <p dir="auto">Is there something wrong with the typings, or is there something I should look at on my end?</p> <p dir="auto">I don't know whether this helps, but typings installed the angular-bootstrap-ui definitions under typings/modules, but all of the other angular-* typings were installed under typings/globals. I have to confess, I do not understand the rhyme or reason behind what goes into the /globals folder or the /modules folder, so maybe that is part of the problem?</p>
<p dir="auto">Regarding PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="403987879" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32567" data-hovercard-type="pull_request" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/pull/32567/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/pull/32567">#32567</a></p> <p dir="auto">// cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rbuckton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rbuckton">@rbuckton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DanielRosenwasser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DanielRosenwasser">@DanielRosenwasser</a></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/node</code> (10.12.21) 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> </ul> <p dir="auto">I don't know what this split was intended to do, but I had some typescript compiles fail in my CI this morning.</p> <p dir="auto">The last build was using <code class="notranslate">@types/node</code> <code class="notranslate">10.12.19</code> (pre-split) and the build that failed for us was using <code class="notranslate">@types/node</code> <code class="notranslate">10.12.21</code>. (<code class="notranslate">package.json</code> files were using <code class="notranslate">^10.11.4</code> and no <code class="notranslate">package-lock.json</code> was present)</p> <p dir="auto">When a library was built with <code class="notranslate">10.12.19</code>, the .d.ts file for the library looked like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference types=&quot;node&quot; /&gt; import { Exception } from '@microsoft.azure/tasks'; import * as fs from 'fs'; // ... etc ... "><pre class="notranslate"><span class="pl-c">/// &lt;reference types="node" /&gt;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Exception</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@microsoft.azure/tasks'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span><span class="pl-kos">;</span> <span class="pl-c">// ... etc ... </span></pre></div> <p dir="auto">and when it was build with <code class="notranslate">10.12.21</code> it was missing the <code class="notranslate">/// &lt;reference types="node" /&gt;</code> -- and looked like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Exception } from '@microsoft.azure/tasks'; import * as fs from 'fs'; // ... etc ... "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Exception</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@microsoft.azure/tasks'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span><span class="pl-kos">;</span> <span class="pl-c">// ... etc ... </span></pre></div> <p dir="auto">I'm not sure what this split was intent on doing, but it had a side-effect with the typescript compiler, which causes dependency problems</p> <p dir="auto">I rolled back and hard-coded <code class="notranslate">10.12.19</code> and rebuilt and everything worked as expected.</p>
0
<p dir="auto">this was never meant to be exposed to the user, is not-documented, and is just plain confusing</p>
<p dir="auto">this was always meant as a private implementation detail. deprecate it now!</p>
1
<p dir="auto">How do we disable source maps on the static export?</p> <p dir="auto">That is:<br> <code class="notranslate">next build &amp;&amp; next export</code><br> Now 'out/' has many <code class="notranslate">.map</code> files, which I'd like to avoid.</p> <p dir="auto">Any solution? Couldn't find on the docs, thanks.</p>
<h1 dir="auto">Bug report</h1> <p dir="auto">If i use the latest next.js and latest preact together and described like in the documentation it doesn't work. Even i fixed the preact aliasing, i cannot build and run this setup in the serverless build target.</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">If i follow the installation readme of the preact plugin it results in the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm build ./node_modules/next/dist/client/index.js Module not found: Can't resolve 'react' in 'node_modules/next/dist/client'"><pre class="notranslate"><code class="notranslate">npm build ./node_modules/next/dist/client/index.js Module not found: Can't resolve 'react' in 'node_modules/next/dist/client' </code></pre></div> <p dir="auto">i was able to fix this error with a custom aliasing of preact but when i build and start next, the server generate an error like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm run build npm run start Error: [object Object] is not a valid HTML tag name in &lt;[object Object] value=&quot;[object Object]&quot;&gt; at u (build/serverless/pages/index.js:7555:3347)"><pre class="notranslate"><code class="notranslate">npm run build npm run start Error: [object Object] is not a valid HTML tag name in &lt;[object Object] value="[object Object]"&gt; at u (build/serverless/pages/index.js:7555:3347) </code></pre></div> <h2 dir="auto">To Reproduce</h2> <p dir="auto">I created a git repo and was able to alias preact by myself.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/marcelalburg/nextjs-preact.git cd nextjs-preact npm install npm run build npm run start curl http://localhost:3000"><pre class="notranslate"><code class="notranslate">git clone https://github.com/marcelalburg/nextjs-preact.git cd nextjs-preact npm install npm run build npm run start curl http://localhost:3000 </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I would like to run nextjs with preact on aws lambda / serverless without internal server errors - described above</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macos</li> <li>Version of Next.js: 9.1.6</li> <li>NodeJs: v12.13.1</li> </ul>
0
<p dir="auto"><a href="https://deno.land/[email protected]/advanced/typescript/configuration#how-deno-uses-a-configuration-file" rel="nofollow">According to the manual</a> — by default — the compiler option <a href="https://www.typescriptlang.org/tsconfig#strict" rel="nofollow"><code class="notranslate">strict</code></a> is <a href="https://deno.land/[email protected]/advanced/typescript/configuration#how-deno-uses-a-configuration-file:~:text=strict,-true" rel="nofollow">set to <code class="notranslate">true</code></a>, and the option <a href="https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables" rel="nofollow"><code class="notranslate">useUnknownInCatchVariables</code></a> is currently <a href="https://deno.land/[email protected]/advanced/typescript/configuration#how-deno-uses-a-configuration-file:~:text=useUnknownInCatchVariables,-false" rel="nofollow">set to <code class="notranslate">false</code></a>.</p> <p dir="auto">That manual page also shows an example of <a href="https://deno.land/[email protected]/advanced/typescript/configuration#what-an-implied-tsconfigjson-looks-like" rel="nofollow">what an implied <code class="notranslate">tsconfig.json</code> looks like</a> — which doesn't currently depict the state of this relationship, but that's not the focus of this issue...</p> <p dir="auto">The TSConfig reference includes this documentation:</p> <blockquote> <h2 dir="auto"><a href="https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables" rel="nofollow"><code class="notranslate">useUnknownInCatchVariables</code></a></h2> <p dir="auto">In TypeScript 4.0, support was added to allow changing the type of the variable in a catch clause from <code class="notranslate">any</code> to <code class="notranslate">unknown</code>. Allowing for code like:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try { // ... } catch (err) { // We have to verify err is an // error before using it as one. if (err instanceof Error) { console.log(err.message); } }"><pre class="notranslate"><span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// We have to verify err is an</span> <span class="pl-c">// error before using it as one.</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">err</span> <span class="pl-k">instanceof</span> <span class="pl-smi">Error</span><span class="pl-kos">)</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-c1">message</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 pattern ensures that error handling code becomes more comprehensive because you cannot guarantee that the object being thrown is a Error subclass ahead of time. With the flag <code class="notranslate">useUnknownInCatchVariables</code> enabled, then you do not need the additional syntax (<code class="notranslate">: unknown</code>) nor a linter rule to try enforce this behavior.</p> <hr> <p dir="auto"><strong>Default:</strong><br> <code class="notranslate">true</code> if <a href="https://www.typescriptlang.org/tsconfig#strict" rel="nofollow"><code class="notranslate">strict</code></a>, <code class="notranslate">false</code> otherwise.</p> <p dir="auto">Related:<br> <a href="https://www.typescriptlang.org/tsconfig#strict" rel="nofollow"><code class="notranslate">strict</code></a></p> <p dir="auto">Released:<br> <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html" rel="nofollow">4.4</a></p> </blockquote> <p dir="auto">Here are two links to the TS playground comparing the two behaviors (based on the code above):</p> <ul dir="auto"> <li><a href="https://www.typescriptlang.org/play?useUnknownInCatchVariables=true#code/C4JwngBA3gUBEGMD2A7AzsCSBGArCAvNHPBAOYCmmAthWmgIaUAUAlMaacABYhIDuEFBUEBREHxDMARADkkmHhQgUJSEBDBIArgHIQygDZIkAawCWKMhABm66awDcJeAF8ANCVfP4PPoJxcZ1dEBmAEbghmBAZtNAp2WE5SAHoUgD0AfhgSNIgAdWVuBgA3ZWAkCDKQcxtIGLjlczQIBhQVNQ1sCjsDCDjLa3NMBhbUCgA6ElqohviISww2hAokGwhxSUSXRFQ0JENJ4zJo2PiJ2nomBJ8IEIpDeaTSZHQDo6QTuQUING0+-jFTD8ZQNMjcTBgKgALgct3gr32hwmx1OjQudEYlCcEDyABUAMqhcLcOgQHjNCDUZrABimCheGCuGBAA" rel="nofollow">enabled (<code class="notranslate">true</code>)</a></li> <li><a href="https://www.typescriptlang.org/play?useUnknownInCatchVariables=false#code/C4JwngBA3gUBEGMD2A7AzsCSBGArCAvNHPBAOYCmmAthWmgIaUAUAlMaacABYhIDuEFBUEBREHxDMARADkkmHhQgUJSEBDBIArgHIQygDZIkAawCWKMhABm66awDcJeAF8ANCVfP4PPoJxcZ1dEBmAEbghmBAZtNAp2WE5SAHoUgD0AfhgSNIgAdWVuBgA3ZWAkCDKQcxtIGLjlczQIBhQVNQ1sCjsDCDjLa3NMBhbUCgA6ElqohviISww2hAokGwhxSUSXRFQ0JENJ4zJo2PiJ2nomBJ8IEIpDeaTSZHQDo6QTuQUING0+-jFTD8ZQNMjcTBgKgALgct3gr32hwmx1OjQudEYlCcEDyABUAMoQAAmSDoKF0mBi4UiPGaEGozWADFMFGhAAK2gpuKoVAAPFYAB2A5lQCxafgE7R5BgAhF4YK4YEA" rel="nofollow">disabled (<code class="notranslate">false</code>)</a></li> </ul> <p dir="auto">As the documentation describes: this feature is enabled by default when <code class="notranslate">strict</code> is enabled, but <strong>that's not currently the case in Deno</strong> — and, as the code in the playground links demonstrate, this feature is useful in providing better type safety in <code class="notranslate">catch</code> blocks — helping prevent further potential exceptions.</p> <p dir="auto">I would like to see Deno set this compiler option to <code class="notranslate">true</code> by default, just like vanilla TS does — and have better type safety in <code class="notranslate">catch</code> blocks.</p>
<p dir="auto">In TypeScript 4.4, the option <code class="notranslate">"useUnknownInCatchVariables"</code> was introduced and was default enabled under <code class="notranslate">"strict"</code> which is the default for Deno. It is a good change, as it helps ensure code properly guards against non-errors being thrown, which if not properly guarded can cause their own runtime errors. The problem is that there is <em>a lot</em> of unsafe code out there, which isn't validating that the value is actually an instance of <code class="notranslate">Error</code> including quite a lot in <code class="notranslate">std</code>, so for 1.14 we are doing to disable it, and then enable it for 1.15 to minimise the impact on code.</p> <p dir="auto">A reminder about our position on breaking changes in TypeScript: <a href="https://deno.land/[email protected]/typescript/faqs#there-was-a-breaking-change-in-the-version-of-typescript-that-deno-uses-why-did-you-break-my-program" rel="nofollow">https://deno.land/[email protected]/typescript/faqs#there-was-a-breaking-change-in-the-version-of-typescript-that-deno-uses-why-did-you-break-my-program</a></p> <p dir="auto">More on the change in TypeScript: <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-rc/#use-unknown-catch-variables" rel="nofollow">https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-rc/#use-unknown-catch-variables</a></p> <p dir="auto">Ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="969770199" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11678" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11678/hovercard" href="https://github.com/denoland/deno/pull/11678">#11678</a></p>
1
<p dir="auto">Using 0.10.7-insider on Windows 7</p> <p dir="auto">The implements keyword isn't highlighting correctly</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/563860/12849759/7150423c-cc75-11e5-9890-c46607820cbc.PNG"><img src="https://cloud.githubusercontent.com/assets/563860/12849759/7150423c-cc75-11e5-9890-c46607820cbc.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Try the following example in VS code (0.10.6) in the dark theme:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module Conway { export interface Foo { } export class Bar { } export class Cell extends Bar implements Foo { } }"><pre class="notranslate">module <span class="pl-smi">Conway</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">Foo</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">Bar</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">Cell</span> <span class="pl-k">extends</span> <span class="pl-smi">Bar</span> <span class="pl-k">implements</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6461412/12140156/eef8783a-b465-11e5-9eeb-aeb99cb8a547.png"><img src="https://cloud.githubusercontent.com/assets/6461412/12140156/eef8783a-b465-11e5-9eeb-aeb99cb8a547.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Note that <code class="notranslate">implements</code> is colored like the type. It gets the same scope as the type name<br> (<code class="notranslate">block declaration heritage meta object parent storage type ts</code>)</p>
1
<p dir="auto">Using SQLAlchemy 1.2.14, I attempted to reflect a schema from a customer which contained several thousand tables, and noticed this was very slow. Using echo="debug" as an option on the engine, I noticed that the SQLAlchem reflection code is iteratively querying the database for table metadata, instead of issuing one query.</p> <p dir="auto">I believe this is sub-optimal, and performance would be greatly enhanced if the SQLAlchemy reflection code issued one query to the backend instead of iterating over the table list.</p> <p dir="auto">Example times: MS SQL Server database with 3,300 tables: 15 minutes.<br> PostgreSQL database with 694 tables: 4 minutes.<br> PostgreSQL database with 18,000+ tables: 45 minutes.</p>
<p dir="auto"><strong>Migrated issue, originally created by Mark Amery (<a href="https://github.com/ExplodingCabbage">@ExplodingCabbage</a>)</strong></p> <p dir="auto"><a href="https://www.postgresql.org/docs/current/static/datatype-json.html" rel="nofollow">https://www.postgresql.org/docs/current/static/datatype-json.html</a> recommends using "jsonb" over "json" for most use cases, since its performance is superior. (The "json" type just stores the input as text, which has to be parsed in order to do any queries, and keys within the JSON can't be indexed. "jsonb" stores a proper structured representation of the given JSON that can be indexed for faster querying.) This guidance seems obviously good to me.</p> <p dir="auto">For that reason, wouldn't it make sense for sqlalchemy.types.JSON to translate to "jsonb" on Postgres instead of "json"?</p> <p dir="auto">Besides the "jsonb is just plain better in almost all cases" argument, it also seems relevant that PostgreSQL's "jsonb" type is a closer match behaviourally to MySQL's "JSON" type than PostgreSQL's "json" type is. Since SQLAlchemy translates sqlalchemy.types.JSON to "JSON" on MySQL, this perhaps means that translating to "jsonb" on Postgres is more portable?</p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40592585/68524139-14ac3400-02fe-11ea-9b73-30cabb19e1dc.png"><img src="https://user-images.githubusercontent.com/40592585/68524139-14ac3400-02fe-11ea-9b73-30cabb19e1dc.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40592585/68524155-44f3d280-02fe-11ea-8dac-1901b93e0d67.png"><img src="https://user-images.githubusercontent.com/40592585/68524155-44f3d280-02fe-11ea-8dac-1901b93e0d67.png" alt="image" style="max-width: 100%;"></a><br> How do I write it in JSX</p>
<h2 dir="auto">Example name</h2> <p dir="auto">experimental-amp</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">I try to use a sample from <a href="https://ampbyexample.com/dynamic_amp/dynamic_content_after_user-interaction/" rel="nofollow">https://ampbyexample.com/dynamic_amp/dynamic_content_after_user-interaction/</a> without luck.<br> When I add <code class="notranslate">&lt;div [text]="products[productId] + ' available'"&gt;Please select a product&lt;/div&gt;</code> error while compiling occured <code class="notranslate">SyntaxError: /experimental-amp-app/pages/product.amp.js: Unexpected token (38:5)</code></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Create amp all</li> <li>Add "product.amp.js" page with this content:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Head from 'next/head' import { useAmp } from 'next/amp' export default () =&gt; { const isAmp = useAmp() return ( &lt;&gt; &lt;Head&gt; &lt;script async custom-element=&quot;amp-bind&quot; src=&quot;https://cdn.ampproject.org/v0/amp-bind-0.1.js&quot;&gt;&lt;/script&gt; &lt;/Head&gt; &lt;h1&gt;AMP Product&lt;/h1&gt; &lt;a href=&quot;https://ampbyexample.com/dynamic_amp/dynamic_content_after_user-interaction/&quot; /&gt; &lt;amp-state id=&quot;products&quot; src=&quot;https://ampbyexample.com/json/products.json&quot;&gt;&lt;/amp-state&gt; &lt;amp-img on=&quot;tap:AMP.setState({ productId: 0})&quot; src=&quot;https://ampbyexample.com/img/red_apple_1_60x40.jpg&quot; width=&quot;60&quot; height=&quot;40&quot; role=&quot;button&quot; tabindex=&quot;0&quot;&gt; &lt;/amp-img&gt; &lt;amp-img on=&quot;tap:AMP.setState({ productId: 1})&quot; src=&quot;https://ampbyexample.com/img/green_apple_1_60x40.jpg&quot; width=&quot;60&quot; height=&quot;40&quot; role=&quot;button&quot; tabindex=&quot;0&quot;&gt; &lt;/amp-img&gt; &lt;amp-img on=&quot;tap:AMP.setState({ productId: 2})&quot; src=&quot;https://ampbyexample.com/img/product1_alt1_60x40.jpg&quot; width=&quot;60&quot; height=&quot;40&quot; role=&quot;button&quot; tabindex=&quot;0&quot;&gt; &lt;/amp-img&gt; &lt;div [text]=&quot;products[productId] + ' available'&quot;&gt;Please select a product&lt;/div&gt; &lt;/&gt;) }"><pre class="notranslate"><code class="notranslate">import Head from 'next/head' import { useAmp } from 'next/amp' export default () =&gt; { const isAmp = useAmp() return ( &lt;&gt; &lt;Head&gt; &lt;script async custom-element="amp-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"&gt;&lt;/script&gt; &lt;/Head&gt; &lt;h1&gt;AMP Product&lt;/h1&gt; &lt;a href="https://ampbyexample.com/dynamic_amp/dynamic_content_after_user-interaction/" /&gt; &lt;amp-state id="products" src="https://ampbyexample.com/json/products.json"&gt;&lt;/amp-state&gt; &lt;amp-img on="tap:AMP.setState({ productId: 0})" src="https://ampbyexample.com/img/red_apple_1_60x40.jpg" width="60" height="40" role="button" tabindex="0"&gt; &lt;/amp-img&gt; &lt;amp-img on="tap:AMP.setState({ productId: 1})" src="https://ampbyexample.com/img/green_apple_1_60x40.jpg" width="60" height="40" role="button" tabindex="0"&gt; &lt;/amp-img&gt; &lt;amp-img on="tap:AMP.setState({ productId: 2})" src="https://ampbyexample.com/img/product1_alt1_60x40.jpg" width="60" height="40" role="button" tabindex="0"&gt; &lt;/amp-img&gt; &lt;div [text]="products[productId] + ' available'"&gt;Please select a product&lt;/div&gt; &lt;/&gt;) } </code></pre></div> <ol start="3" dir="auto"> <li>See error</li> </ol> <h2 dir="auto">Expected behaviour</h2> <p dir="auto">It should compile or suggest an alternative way how to write such AMP code</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: latest macOS</li> <li>Browser chrome</li> <li>Version of Next.js: 8.0.4-canary.24</li> </ul> <p dir="auto">Is there any alternative way how to write <code class="notranslate">[text]</code> inside div?</p>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Edit: To clarify, importing SVGs directly works fine, as described here: <a href="https://create-react-app.dev/docs/adding-images-fonts-and-files/#adding-svgs" rel="nofollow">https://create-react-app.dev/docs/adding-images-fonts-and-files/#adding-svgs</a>. It only fails when used indirectly through an NPM package.</p> <p dir="auto">When using a Component that contains an SVG referenced in a package using the pattern `import {ReactComponent as Foo} from "./foo.svg"', React raises this error:</p> <blockquote> <p dir="auto">Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.</p> <p dir="auto">Check the render method of <code class="notranslate">Foo</code>.</p> </blockquote> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p> <p dir="auto">Reproduced here: <a href="https://github.com/neolefty/indirect-svg">https://github.com/neolefty/indirect-svg</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">An SVG imported using <code class="notranslate">import {ReactComponent as Foo} from "./foo.svg"</code> in an NPM package should render in a project that depends on it.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">Found in 16.12.0 / Linux / Chrome. Not tested in previous versions of React.</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Turn on Profiler</li> <li>The app sens a lot of small requests to BE</li> <li>To make sure that all requests fulfilled, I went to Network TAB. When it was finished and stop profiling.</li> <li>The profiler showed some results and then crashed.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17786:17)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17717:25)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:18265:14)<br> at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31718:33)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31701:48)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33363:48)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
0
<p dir="auto">The QA Vagrant tests are vital for ensuring the correctness of the Elasticsearch distributions. These tests do not currently pass and should be brought to green.</p> <p dir="auto">Relates <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137259720" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/16854" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/16854/hovercard" href="https://github.com/elastic/elasticsearch/issues/16854">#16854</a></p>
<p dir="auto">Now that doc values have become the default fielddata implementation, we should progressively deprecate in-memory fielddata so that doc values would be the only way to sort or aggregate on fields.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111149219" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14082" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/14082/hovercard" href="https://github.com/elastic/elasticsearch/pull/14082">#14082</a> Numerics, dates and booleans</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132768460" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/16589" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/16589/hovercard" href="https://github.com/elastic/elasticsearch/pull/16589">#16589</a> Not-analyzed strings</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Geo-points (need to add doc values by default first)</li> </ul>
0
<ul dir="auto"> <li>Electron version: 1.6.10</li> <li>Operating system: Windows 10 (System scaling factor is 2.5)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Create a BrowserWindow and the BrowserWindow's size is the same of option.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The created BrowserWindow's size is larger than the option</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Just create a BrowserWindow as below.</p> <p dir="auto">Seems only happens on devices that doesn't have an integer scaling factor.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8194131/26865110-d487d296-4b8d-11e7-8469-8a4949588201.png"><img src="https://user-images.githubusercontent.com/8194131/26865110-d487d296-4b8d-11e7-8469-8a4949588201.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>Electron version: 1.6.8 or 1.7.1</li> <li>Operating system: Windows</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">In windows multiple monitor setup with different DPIs, electron app starts out of bounds</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Should start at the same place where app was last opened</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Have two monitors with 200% and 100% DPI</li> <li>Start electron app and move the app to monitor with 100% DPI (non maximized)</li> <li>Quit and Restart the app</li> </ol> <p dir="auto">App starts out of the bounds in the 100% DPI monitor.</p> <p dir="auto">This is a regression after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="210439587" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/8786" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/8786/hovercard" href="https://github.com/electron/electron/pull/8786">#8786</a> . I reverted this change and this issue no longer repros.</p>
1
<p dir="auto">Any app I'm running on a Pixel device (O MR1) with <code class="notranslate">flutter run</code> crashes with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="02-06 16:30:06.552 25519 25546 D OpenGLRenderer: HWUI GL Pipeline 02-06 16:30:06.571 25547 25547 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone 02-06 16:30:06.571 735 735 I /system/bin/tombstoned: received crash request for pid 25519 02-06 16:30:06.572 25547 25547 I crash_dump64: performing dump of process 25519 (target tid = 25543) 02-06 16:30:06.572 25547 25547 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-06 16:30:06.572 25547 25547 F DEBUG : Build fingerprint: 'google/sailfish/sailfish:8.1.0/OPM1.171013.001/4393769:userdebug/dev-keys' 02-06 16:30:06.572 25547 25547 F DEBUG : Revision: '0' 02-06 16:30:06.572 25547 25547 F DEBUG : ABI: 'arm64' 02-06 16:30:06.572 25547 25547 F DEBUG : pid: 25519, tid: 25543, name: ui_thread &gt;&gt;&gt; com.example.painting &lt;&lt;&lt; 02-06 16:30:06.572 25547 25547 F DEBUG : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x775b080400 02-06 16:30:06.572 25547 25547 F DEBUG : x0 000000775a440821 x1 000000775a440821 x2 000000775a3c0c20 x3 000000775a440820 02-06 16:30:06.572 25547 25547 F DEBUG : x4 000000775b102e01 x5 000000775a469d31 x6 000000775a4408e1 x7 0000000000000001 02-06 16:30:06.572 25547 25547 F DEBUG : x8 000000777408fe00 x9 0000000000000000 x10 0000000000000001 x11 000000000000000d 02-06 16:30:06.573 25547 25547 F DEBUG : x12 ffffffffffffe000 x13 000000775a46a050 x14 002ccdfe45000000 x15 000000775ab00c70 02-06 16:30:06.573 25547 25547 F DEBUG : x16 00000000000c0600 x17 000000775a469da1 x18 000000775d434000 x19 000000777408fe00 02-06 16:30:06.573 25547 25547 F DEBUG : x20 0000000000000000 x21 000000775ac15b38 x22 000000775ac15b48 x23 000000775ac15b68 02-06 16:30:06.573 25547 25547 F DEBUG : x24 000000775b103961 x25 000000775aaffc80 x26 000000777408fe00 x27 000000775a46a050 02-06 16:30:06.573 25547 25547 F DEBUG : x28 000000775dbe92a8 x29 000000775ab00cb0 x30 000000775a3c0ce4 02-06 16:30:06.573 25547 25547 F DEBUG : sp 000000775aaffcc0 pc 000000775b080400 pstate 0000000040000000 02-06 16:30:06.573 25547 25547 F DEBUG : 02-06 16:30:06.573 25547 25547 F DEBUG : backtrace: 02-06 16:30:06.573 25547 25547 F DEBUG : #00 pc 0000000000000400 &lt;anonymous:000000775b080000&gt; 02-06 16:30:06.573 25547 25547 F DEBUG : #01 pc 0000000000000ce0 &lt;anonymous:000000775a3c0000&gt; 02-06 16:30:07.155 1559 1559 D zz : UtWallpaperService$UtEngine.onVisibilityChanged() false 02-06 16:30:07.158 1559 1559 D zz : UtRenderer.onNotVisible() 02-06 16:30:07.344 735 735 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_05 02-06 16:30:07.347 894 942 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE) 02-06 16:30:07.348 894 25552 W ActivityManager: Force finishing activity com.example.painting/.MainActivity 02-06 16:30:07.354 894 923 I ActivityManager: Showing crash dialog for package com.example.painting u0 02-06 16:30:07.360 894 911 I ActivityManager: Process com.example.painting (pid 25519) has died: fore TOP"><pre lang="02-06" class="notranslate"><code class="notranslate">02-06 16:30:06.552 25519 25546 D OpenGLRenderer: HWUI GL Pipeline 02-06 16:30:06.571 25547 25547 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone 02-06 16:30:06.571 735 735 I /system/bin/tombstoned: received crash request for pid 25519 02-06 16:30:06.572 25547 25547 I crash_dump64: performing dump of process 25519 (target tid = 25543) 02-06 16:30:06.572 25547 25547 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-06 16:30:06.572 25547 25547 F DEBUG : Build fingerprint: 'google/sailfish/sailfish:8.1.0/OPM1.171013.001/4393769:userdebug/dev-keys' 02-06 16:30:06.572 25547 25547 F DEBUG : Revision: '0' 02-06 16:30:06.572 25547 25547 F DEBUG : ABI: 'arm64' 02-06 16:30:06.572 25547 25547 F DEBUG : pid: 25519, tid: 25543, name: ui_thread &gt;&gt;&gt; com.example.painting &lt;&lt;&lt; 02-06 16:30:06.572 25547 25547 F DEBUG : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x775b080400 02-06 16:30:06.572 25547 25547 F DEBUG : x0 000000775a440821 x1 000000775a440821 x2 000000775a3c0c20 x3 000000775a440820 02-06 16:30:06.572 25547 25547 F DEBUG : x4 000000775b102e01 x5 000000775a469d31 x6 000000775a4408e1 x7 0000000000000001 02-06 16:30:06.572 25547 25547 F DEBUG : x8 000000777408fe00 x9 0000000000000000 x10 0000000000000001 x11 000000000000000d 02-06 16:30:06.573 25547 25547 F DEBUG : x12 ffffffffffffe000 x13 000000775a46a050 x14 002ccdfe45000000 x15 000000775ab00c70 02-06 16:30:06.573 25547 25547 F DEBUG : x16 00000000000c0600 x17 000000775a469da1 x18 000000775d434000 x19 000000777408fe00 02-06 16:30:06.573 25547 25547 F DEBUG : x20 0000000000000000 x21 000000775ac15b38 x22 000000775ac15b48 x23 000000775ac15b68 02-06 16:30:06.573 25547 25547 F DEBUG : x24 000000775b103961 x25 000000775aaffc80 x26 000000777408fe00 x27 000000775a46a050 02-06 16:30:06.573 25547 25547 F DEBUG : x28 000000775dbe92a8 x29 000000775ab00cb0 x30 000000775a3c0ce4 02-06 16:30:06.573 25547 25547 F DEBUG : sp 000000775aaffcc0 pc 000000775b080400 pstate 0000000040000000 02-06 16:30:06.573 25547 25547 F DEBUG : 02-06 16:30:06.573 25547 25547 F DEBUG : backtrace: 02-06 16:30:06.573 25547 25547 F DEBUG : #00 pc 0000000000000400 &lt;anonymous:000000775b080000&gt; 02-06 16:30:06.573 25547 25547 F DEBUG : #01 pc 0000000000000ce0 &lt;anonymous:000000775a3c0000&gt; 02-06 16:30:07.155 1559 1559 D zz : UtWallpaperService$UtEngine.onVisibilityChanged() false 02-06 16:30:07.158 1559 1559 D zz : UtRenderer.onNotVisible() 02-06 16:30:07.344 735 735 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_05 02-06 16:30:07.347 894 942 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE) 02-06 16:30:07.348 894 25552 W ActivityManager: Force finishing activity com.example.painting/.MainActivity 02-06 16:30:07.354 894 923 I ActivityManager: Showing crash dialog for package com.example.painting u0 02-06 16:30:07.360 894 911 I ActivityManager: Process com.example.painting (pid 25519) has died: fore TOP </code></pre></div> <p dir="auto">Framework is at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/35c2267ffe7e8c82030e896fa81bd67fc1d9cfd5/hovercard" href="https://github.com/flutter/flutter/commit/35c2267ffe7e8c82030e896fa81bd67fc1d9cfd5"><tt>35c2267</tt></a><br> And engine is at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/9bc2efdf47b102e3c7cfe84bcfc17327f1a6d6ac/hovercard" href="https://github.com/flutter/flutter/commit/9bc2efdf47b102e3c7cfe84bcfc17327f1a6d6ac"><tt>9bc2efd</tt></a></p> <p dir="auto">On a different device it does not crash.</p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I updated flutter and compiled the app and tried to run. It crashed immediately. Tried it several times.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="02-04 17:10:10.083 10693-10936/com.raisedbythebeat.teacherfinder A/libc: Fatal signal 4 (SIGILL), code 1, fault addr 0x75f8880400 in tid 10936 (ui_thread) 02-04 17:10:10.147 10941-10941/? W/crash_dump64: type=1400 audit(0.0:132690): avc: denied { search } for name=&quot;com.google.android.gms&quot; dev=&quot;dm-0&quot; ino=2704 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 02-04 17:10:10.175 10941-10941/? I/crash_dump64: obtaining output fd from tombstoned 02-04 17:10:10.177 3239-3239/? I//system/bin/tombstoned: received crash request for pid 10693 02-04 17:10:10.180 10941-10941/? I/crash_dump64: performing dump of process 10693 (target tid = 10936) 02-04 17:10:10.181 10941-10941/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-04 17:10:10.181 10941-10941/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR6.170623.013/01101100:user/release-keys' 02-04 17:10:10.181 10941-10941/? A/DEBUG: Revision: '0' 02-04 17:10:10.181 10941-10941/? A/DEBUG: ABI: 'arm64' 02-04 17:10:10.181 10941-10941/? A/DEBUG: pid: 10693, tid: 10936, name: ui_thread &gt;&gt;&gt; com.raisedbythebeat.teacherfinder &lt;&lt;&lt; 02-04 17:10:10.181 10941-10941/? A/DEBUG: signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x75f8880400 02-04 17:10:10.181 10941-10941/? A/DEBUG: x0 00000075f58007f1 x1 00000075f58007f1 x2 00000075f5780c20 x3 00000075f58007f0 02-04 17:10:10.181 10941-10941/? A/DEBUG: x4 00000075f8e42e01 x5 00000075f5829d01 x6 00000075f58008b1 x7 0000000000000001 02-04 17:10:10.181 10941-10941/? A/DEBUG: x8 0000007602f46400 x9 0000000000000000 x10 0000000000000001 x11 0000000000000029 02-04 17:10:10.181 10941-10941/? A/DEBUG: x12 0000000000000028 x13 00000075f582a020 x14 0004cb1d75f981a3 x15 00000075f617ec70 02-04 17:10:10.182 10941-10941/? A/DEBUG: x16 00000000000c0600 x17 00000075f5829d71 x18 00000075f7cf0000 x19 0000007602f46400 02-04 17:10:10.182 10941-10941/? A/DEBUG: x20 0000000000000000 x21 00000075f5e5e738 x22 00000075f5e5e748 x23 00000075f5e5e768 02-04 17:10:10.182 10941-10941/? A/DEBUG: x24 00000075f8e43961 x25 00000075f617dc80 x26 0000007602f46400 x27 00000075f582a020 02-04 17:10:10.182 10941-10941/? A/DEBUG: x28 00000075f84a52a8 x29 00000075f617ecb0 x30 00000075f5780ce4 02-04 17:10:10.182 10941-10941/? A/DEBUG: sp 00000075f617dcc0 pc 00000075f8880400 pstate 0000000040000000 02-04 17:10:10.183 10941-10941/? A/DEBUG: backtrace: 02-04 17:10:10.183 10941-10941/? A/DEBUG: #00 pc 0000000000000400 &lt;anonymous:00000075f8880000&gt; 02-04 17:10:10.183 10941-10941/? A/DEBUG: #01 pc 0000000000000ce0 &lt;anonymous:00000075f5780000&gt;"><pre class="notranslate"><code class="notranslate">02-04 17:10:10.083 10693-10936/com.raisedbythebeat.teacherfinder A/libc: Fatal signal 4 (SIGILL), code 1, fault addr 0x75f8880400 in tid 10936 (ui_thread) 02-04 17:10:10.147 10941-10941/? W/crash_dump64: type=1400 audit(0.0:132690): avc: denied { search } for name="com.google.android.gms" dev="dm-0" ino=2704 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 02-04 17:10:10.175 10941-10941/? I/crash_dump64: obtaining output fd from tombstoned 02-04 17:10:10.177 3239-3239/? I//system/bin/tombstoned: received crash request for pid 10693 02-04 17:10:10.180 10941-10941/? I/crash_dump64: performing dump of process 10693 (target tid = 10936) 02-04 17:10:10.181 10941-10941/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-04 17:10:10.181 10941-10941/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR6.170623.013/01101100:user/release-keys' 02-04 17:10:10.181 10941-10941/? A/DEBUG: Revision: '0' 02-04 17:10:10.181 10941-10941/? A/DEBUG: ABI: 'arm64' 02-04 17:10:10.181 10941-10941/? A/DEBUG: pid: 10693, tid: 10936, name: ui_thread &gt;&gt;&gt; com.raisedbythebeat.teacherfinder &lt;&lt;&lt; 02-04 17:10:10.181 10941-10941/? A/DEBUG: signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x75f8880400 02-04 17:10:10.181 10941-10941/? A/DEBUG: x0 00000075f58007f1 x1 00000075f58007f1 x2 00000075f5780c20 x3 00000075f58007f0 02-04 17:10:10.181 10941-10941/? A/DEBUG: x4 00000075f8e42e01 x5 00000075f5829d01 x6 00000075f58008b1 x7 0000000000000001 02-04 17:10:10.181 10941-10941/? A/DEBUG: x8 0000007602f46400 x9 0000000000000000 x10 0000000000000001 x11 0000000000000029 02-04 17:10:10.181 10941-10941/? A/DEBUG: x12 0000000000000028 x13 00000075f582a020 x14 0004cb1d75f981a3 x15 00000075f617ec70 02-04 17:10:10.182 10941-10941/? A/DEBUG: x16 00000000000c0600 x17 00000075f5829d71 x18 00000075f7cf0000 x19 0000007602f46400 02-04 17:10:10.182 10941-10941/? A/DEBUG: x20 0000000000000000 x21 00000075f5e5e738 x22 00000075f5e5e748 x23 00000075f5e5e768 02-04 17:10:10.182 10941-10941/? A/DEBUG: x24 00000075f8e43961 x25 00000075f617dc80 x26 0000007602f46400 x27 00000075f582a020 02-04 17:10:10.182 10941-10941/? A/DEBUG: x28 00000075f84a52a8 x29 00000075f617ecb0 x30 00000075f5780ce4 02-04 17:10:10.182 10941-10941/? A/DEBUG: sp 00000075f617dcc0 pc 00000075f8880400 pstate 0000000040000000 02-04 17:10:10.183 10941-10941/? A/DEBUG: backtrace: 02-04 17:10:10.183 10941-10941/? A/DEBUG: #00 pc 0000000000000400 &lt;anonymous:00000075f8880000&gt; 02-04 17:10:10.183 10941-10941/? A/DEBUG: #01 pc 0000000000000ce0 &lt;anonymous:00000075f5780000&gt; </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 (on Mac OS X 10.13.1 17B1003, locale de-DE, channel master) • Flutter version 0.0.23-pre.34 at /Users/boni/Documents/Programmieren/Dart/flutter • Framework revision f0f0f09707 (2 days ago), 2018-02-02 16:13:56 -0800 • Engine revision d5338ed143 • Tools Dart version 2.0.0-dev.19.0 • Engine Dart version 2.0.0-edge.7078f6be58802c4e274625b8b59b4c855ddc4fb7 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/boni/Library/Android/sdk • Android NDK at /Users/boni/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.4.0 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.1 Preview.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] Connected devices • ONEPLUS A3003 • 75aef492 • android-arm64 • Android 8.0.0 (API 26) • No issues found! "><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.1 17B1003, locale de-DE, channel master) • Flutter version 0.0.23-pre.34 at /Users/boni/Documents/Programmieren/Dart/flutter • Framework revision f0f0f09707 (2 days ago), 2018-02-02 16:13:56 -0800 • Engine revision d5338ed143 • Tools Dart version 2.0.0-dev.19.0 • Engine Dart version 2.0.0-edge.7078f6be58802c4e274625b8b59b4c855ddc4fb7 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/boni/Library/Android/sdk • Android NDK at /Users/boni/Library/Android/sdk/ndk-bundle • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 1.9.2 • CocoaPods version 1.4.0 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.1 Preview.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Android Studio (version 3.0) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08) [✓] Connected devices • ONEPLUS A3003 • 75aef492 • android-arm64 • Android 8.0.0 (API 26) • No issues found! </code></pre></div>
1
<p dir="auto">I'm behind a corporate firewall and have to have a .npmrc setup with a proxy and https-proxy.</p> <p dir="auto">There appears to be something in [email protected] that tries to connect to npm on launch and seems to ignore my .npmrc proxy settings as I'm seeing what look like proxy problems when I start my next app in dev mode.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">running <code class="notranslate">yarn dev</code> or <code class="notranslate">npm run dev</code> should bring up the server.</p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="λ yarn dev yarn run v1.3.2 $ next { Error: connect ECONNREFUSED 151.101.0.162:443 at Object._errnoException (util.js:1024:11) at _exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '151.101.0.162', port: 443 } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command."><pre class="notranslate"><code class="notranslate">λ yarn dev yarn run v1.3.2 $ next { Error: connect ECONNREFUSED 151.101.0.162:443 at Object._errnoException (util.js:1024:11) at _exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '151.101.0.162', port: 443 } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. </code></pre></div> <p dir="auto">n.b. this does not occur when using <code class="notranslate">yarn build</code> &amp; <code class="notranslate">yarn start</code>.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">This appears to affect all projects, but I used this one:</p> <p dir="auto"><a href="https://github.com/zeit/next.js/tree/canary/examples/hello-world">https://github.com/zeit/next.js/tree/canary/examples/hello-world</a></p> <p dir="auto">You need to be relying on a custom .npmrc with a proxy - everything is fine if you don't have a proxy.</p> <h2 dir="auto">Context</h2> <p dir="auto">This has only broken since upgrading to [email protected] - maybe related to <code class="notranslate">update-check</code>?</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>6.0.0</td> </tr> <tr> <td>node</td> <td>8.9.1</td> </tr> <tr> <td>OS</td> <td>Windows 7 x64</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> <p dir="auto">When defining a variable with css outside of React class components there are no problems:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const backgroundImageStyle = css` div { background-color: red; } `; class Dropdown extends Component { render() { return ( &lt;div&gt; &lt;style jsx&gt;{backgroundImageStyle}&lt;/style&gt; &lt;/div&gt; ); } } export default Dropdown; "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">backgroundImageStyle</span> <span class="pl-c1">=</span> <span class="pl-en">css</span><span class="pl-s">`</span> <span class="pl-s"> <span class="pl-ent">div</span> {</span> <span class="pl-s"> <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red;</span> <span class="pl-s"> }</span> <span class="pl-s">`</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">Dropdown</span> <span class="pl-k">extends</span> <span class="pl-v">Component</span> <span class="pl-kos">{</span> <span class="pl-en">render</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">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">backgroundImageStyle</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">&gt;</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> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Dropdown</span><span class="pl-kos">;</span></pre></div> <p dir="auto">But when moving the style definition into <code class="notranslate">render()</code> like this, it doesn't work:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="render() { const backgroundImageStyle = css` div { background-color: red; } `; return ( &lt;div&gt; &lt;style jsx&gt;{backgroundImageStyle}&lt;/style&gt; &lt;/div&gt; ); }"><pre class="notranslate"><span class="pl-en">render</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">backgroundImageStyle</span> <span class="pl-c1">=</span> <span class="pl-en">css</span><span class="pl-s">`</span> <span class="pl-s"> <span class="pl-ent">div</span> {</span> <span class="pl-s"> <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red;</span> <span class="pl-s"> }</span> <span class="pl-s"> `</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">backgroundImageStyle</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">&gt;</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></pre></div> <p dir="auto">It gives me this error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="StyleSheet: `insertRule` accepts only strings. Error: StyleSheet: `insertRule` accepts only strings. at invariant (node_modules/styled-jsx/dist/lib/stylesheet.js:274:11) at StyleSheet.insertRule (node_modules/styled-jsx/dist/lib/stylesheet.js:125:7) at node_modules/styled-jsx/dist/stylesheet-registry.js:88:29 at Array.map (native) at StyleSheetRegistry.add (node_modules/styled-jsx/dist/stylesheet-registry.js:87:27) at JSXStyle.componentWillMount (node_modules/styled-jsx/dist/style.js:58:26) at resolve (node_modules/react-dom/cjs/react-dom-server.node.development.js:2119:12) at ReactDOMServerRenderer.render (node_modules/react-dom/cjs/react-dom-server.node.development.js:2260:22) at ReactDOMServerRenderer.read (node_modules/react-dom/cjs/react-dom-server.node.development.js:2234:19) at renderToString (node_modules/react-dom/cjs/react-dom-server.node.development.js:2501:25)"><pre class="notranslate"><code class="notranslate">StyleSheet: `insertRule` accepts only strings. Error: StyleSheet: `insertRule` accepts only strings. at invariant (node_modules/styled-jsx/dist/lib/stylesheet.js:274:11) at StyleSheet.insertRule (node_modules/styled-jsx/dist/lib/stylesheet.js:125:7) at node_modules/styled-jsx/dist/stylesheet-registry.js:88:29 at Array.map (native) at StyleSheetRegistry.add (node_modules/styled-jsx/dist/stylesheet-registry.js:87:27) at JSXStyle.componentWillMount (node_modules/styled-jsx/dist/style.js:58:26) at resolve (node_modules/react-dom/cjs/react-dom-server.node.development.js:2119:12) at ReactDOMServerRenderer.render (node_modules/react-dom/cjs/react-dom-server.node.development.js:2260:22) at ReactDOMServerRenderer.read (node_modules/react-dom/cjs/react-dom-server.node.development.js:2234:19) at renderToString (node_modules/react-dom/cjs/react-dom-server.node.development.js:2501:25) </code></pre></div> <p dir="auto">Why is that so and is there a way to fix this? The reason why I want to define the style within <code class="notranslate">render()</code> is because I want to modify it based on props coming in:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="render() { let backgroundImageStyle; if (this.props.bgcolor) { backgroundImageStyle = css` div { background-color: ${this.props.bgcolor}; } `; } else { backgroundImageStyle = css` div { background-color: red; } `; } return ( &lt;div&gt; &lt;style jsx&gt;{backgroundImageStyle}&lt;/style&gt; &lt;/div&gt; ); }"><pre class="notranslate"><span class="pl-en">render</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">backgroundImageStyle</span><span class="pl-kos">;</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">props</span><span class="pl-kos">.</span><span class="pl-c1">bgcolor</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">backgroundImageStyle</span> <span class="pl-c1">=</span> <span class="pl-en">css</span><span class="pl-s">`</span> <span class="pl-s"> <span class="pl-ent">div</span> {</span> <span class="pl-s"> <span class="pl-c1">background-color</span><span class="pl-kos">:</span><span class="pl-c1"></span> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">bgcolor</span><span class="pl-kos">}</span></span>;</span> <span class="pl-s"> }</span> <span class="pl-s"> `</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-s1">backgroundImageStyle</span> <span class="pl-c1">=</span> <span class="pl-en">css</span><span class="pl-s">`</span> <span class="pl-s"> <span class="pl-ent">div</span> {</span> <span class="pl-s"> <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red;</span> <span class="pl-s"> }</span> <span class="pl-s"> `</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">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">jsx</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">backgroundImageStyle</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">&gt;</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></pre></div>
0
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>TensorFlow version (you are using): 1.12</li> <li>Are you willing to contribute it (Yes/No): Yes</li> </ul> <p dir="auto"><strong>Describe the feature and the current behavior/state.</strong><br> Gradient Accumulation(GA) is a workaround to enable big batches on limited memory GPUs which has been supported in Caffe and PyTorch. Instead of back-propagating for every batch feed-forward; gradients across multiple batches are accumulated. After multiple feed forwards, the accumulated gradient is back-propagated through the network layer. It boosts performance with a couple of percentages on our several workload (e.g., XLNet, Transformer) with Distribution Strategy. Unfortunately, I am not aware of any official documentation to use such feature in Tensorflow. <code class="notranslate">tf.contrib.opt.AGNOptimizer</code> has a similar GA implementation but is not common for general distribution job on DistributionStrategy. Besides it will introduces OOM for large embeddings(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="481025609" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/31637" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/31637/hovercard" href="https://github.com/tensorflow/tensorflow/issues/31637">#31637</a>).<br> <strong>Will this change the current api? How?</strong><br> Yes. Just need to add one new parameter <code class="notranslate">iter_size</code> to current strategy API, which for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # For MirroredStrategy, gradient accumulation is supported using iter_size parameter. distribution = tf.distribute.MirroredStrategy(num_gpus=2, iter_size=4) # For MultiWorkerMirroredStrategy: tf.distribute.experimental.MultiWorkerMirroredStrategy(..., iter_size=4)"><pre class="notranslate"><code class="notranslate"> # For MirroredStrategy, gradient accumulation is supported using iter_size parameter. distribution = tf.distribute.MirroredStrategy(num_gpus=2, iter_size=4) # For MultiWorkerMirroredStrategy: tf.distribute.experimental.MultiWorkerMirroredStrategy(..., iter_size=4) </code></pre></div> <p dir="auto"><strong>Who will benefit with this feature?</strong><br> Anyone who use distribution strategy and want to enable big batches on limited memory GPUs<br> <strong>Any Other info.</strong><br> None.</p> <p dir="auto">We already have a concise implementation of GA on DistributionStrategy and are willing to contribute. Thanks in advance for any feedback.</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>CentOS Linux release 7.4.1708</li> <li>Source, hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/bf4767c6bafb077fc591107691199a6981c29304/hovercard" href="https://github.com/tensorflow/tensorflow/commit/bf4767c6bafb077fc591107691199a6981c29304"><tt>bf4767c</tt></a></li> <li>TensorFlow version: 1.12</li> <li>Python version: Python 3.4.9</li> <li>Installed using virtualenv? pip? conda?:</li> <li>Bazel version (if compiling from source): 0.19.2 (bazel from centos repos)</li> <li>GCC/Compiler version (if compiling from source): 4.8.5 (gcc from centos repos)</li> <li>CUDA/cuDNN version: -</li> <li>GPU model and memory: -</li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto">Cannot import tensorflow due to import 'mock' library from tensorflow.python.platform.googletest failling.</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto">Successfully built and installed TensorFlow with the following commands:</p> <p dir="auto"><code class="notranslate">bazel build --incompatible_remove_native_http_archive=false --incompatible_package_name_is_a_function=false --config=opt //tensorflow/tools/pip_package:build_pip_package</code></p> <p dir="auto"><code class="notranslate">./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg</code></p> <p dir="auto"><code class="notranslate">pip3.4 install --user /tmp/tensorflow_pkg/tensorflow-1.12.0-cp34-cp34m-linux_x86_64.whl</code></p> <blockquote> <p dir="auto">See pip log below for found dependencies</p> </blockquote> <p dir="auto">Attempting to import tensorflow i get this:</p> <p dir="auto"><code class="notranslate">Python 3.4.9 (default, Aug 14 2018, 21:28:57) </code><br> <code class="notranslate">[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux</code><br> <code class="notranslate">Type "help", "copyright", "credits" or "license" for more information.</code><br> <code class="notranslate">&gt;&gt;&gt; import tensorflow</code><br> <code class="notranslate">/usr/lib64/python3.4/importlib/_bootstrap.py:321: FutureWarning: Conversion of the second argument of issubdtype from </code>float<code class="notranslate">to</code>np.floating<code class="notranslate"> is deprecated. In future, it will be treated as 'np.float64 == np.dtype(float).type'.</code><br> <code class="notranslate"> return f(*args, **kwds)</code><br> <code class="notranslate">Traceback (most recent call last):</code><br> <code class="notranslate"> File "&lt;stdin&gt;", line 1, in &lt;module&gt;</code><br> <code class="notranslate"> File "/home1/private/mavridis/.local/lib/python3.4/site-packages/tensorflow/__init__.py", line 34, in &lt;module&gt;</code><br> <code class="notranslate"> from tensorflow._api.v1 import compat</code><br> <code class="notranslate"> File "/home1/private/mavridis/.local/lib/python3.4/site-packages/tensorflow/_api/v1/compat/__init__.py", line 21, in &lt;module&gt;</code><br> <code class="notranslate"> from tensorflow._api.v1.compat import v1</code><br> <code class="notranslate"> File "/home1/private/mavridis/.local/lib/python3.4/site-packages/tensorflow/_api/v1/compat/v1/__init__.py", line 69, in &lt;module&gt;</code><br> <code class="notranslate"> from tensorflow._api.v1.compat.v1 import test</code><br> <code class="notranslate"> File "/home1/private/mavridis/.local/lib/python3.4/site-packages/tensorflow/_api/v1/compat/v1/test/__init__.py", line 24, in &lt;module&gt;</code><br> <code class="notranslate"> from tensorflow.python.platform.googletest import mock</code><br> <code class="notranslate">ImportError: cannot import name 'mock'</code></p> <p dir="auto"><strong>Any other info / logs</strong></p> <p dir="auto">pip install output:</p> <p dir="auto"><code class="notranslate">Processing /tmp/tensorflow_pkg/tensorflow-1.12.0-cp34-cp34m-linux_x86_64.whl</code><br> <code class="notranslate">Requirement already satisfied: grpcio&gt;=1.8.6 in /usr/lib64/python3.4/site-packages (from tensorflow==1.12.0) (1.10.0)</code><br> <code class="notranslate">Requirement already satisfied: keras-preprocessing&gt;=1.0.5 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.0.5)</code><br> <code class="notranslate">Requirement already satisfied: six&gt;=1.10.0 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.12.0)</code><br> <code class="notranslate">Requirement already satisfied: absl-py&gt;=0.1.6 in /usr/lib/python3.4/site-packages (from tensorflow==1.12.0) (0.1.11)</code><br> <code class="notranslate">Requirement already satisfied: google-pasta&gt;=0.1.1 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (0.1.1)</code><br> <code class="notranslate">Requirement already satisfied: numpy&gt;=1.13.3 in /usr/lib64/python3.4/site-packages (from tensorflow==1.12.0) (1.14.1)</code><br> <code class="notranslate">Requirement already satisfied: protobuf&gt;=3.6.1 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (3.6.1)</code><br> <code class="notranslate">Requirement already satisfied: wheel&gt;=0.26 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (0.32.3)</code><br> <code class="notranslate">Requirement already satisfied: tensorboard&lt;1.13.0,&gt;=1.12.0 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.12.2)</code><br> <code class="notranslate">Requirement already satisfied: astor&gt;=0.6.0 in /usr/lib/python3.4/site-packages (from tensorflow==1.12.0) (0.6.2)</code><br> <code class="notranslate">Requirement already satisfied: keras-applications&gt;=1.0.6 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.0.6)</code><br> <code class="notranslate">Requirement already satisfied: tensorflow-estimator&lt;1.14.0rc0,&gt;=1.13.0rc0 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.13.0rc0)</code><br> <code class="notranslate">Requirement already satisfied: gast&gt;=0.2.0 in /usr/lib/python3.4/site-packages (from tensorflow==1.12.0) (0.2.0)</code><br> <code class="notranslate">Requirement already satisfied: termcolor&gt;=1.1.0 in /usr/lib/python3.4/site-packages (from tensorflow==1.12.0) (1.1.0)</code><br> <code class="notranslate">Requirement already satisfied: setuptools in /home1/private/mavridis/.local/lib/python3.4/site-packages (from protobuf&gt;=3.6.1-&gt;tensorflow==1.12.0) (40.6.3)</code><br> <code class="notranslate">Requirement already satisfied: werkzeug&gt;=0.11.10 in /usr/lib64/python3.4/site-packages (from tensorboard&lt;1.13.0,&gt;=1.12.0-&gt;tensorflow==1.12.0) (0.14.1)</code><br> <code class="notranslate">Requirement already satisfied: markdown&gt;=2.6.8 in /usr/lib64/python3.4/site-packages (from tensorboard&lt;1.13.0,&gt;=1.12.0-&gt;tensorflow==1.12.0) (2.6.11)</code><br> <code class="notranslate">Requirement already satisfied: h5py in /usr/lib64/python3.4/site-packages (from keras-applications&gt;=1.0.6-&gt;tensorflow==1.12.0) (2.7.1)</code><br> <code class="notranslate">Requirement already satisfied: mock&gt;=2.0.0 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from tensorflow-estimator&lt;1.14.0rc0,&gt;=1.13.0rc0-&gt;tensorflow==1.12.0) (2.0.0)</code><br> <code class="notranslate">Requirement already satisfied: pbr&gt;=0.11 in /home1/private/mavridis/.local/lib/python3.4/site-packages (from mock&gt;=2.0.0-&gt;tensorflow-estimator&lt;1.14.0rc0,&gt;=1.13.0rc0-&gt;tensorflow==1.12.0) (5.1.1)</code><br> <code class="notranslate">Installing collected packages: tensorflow</code><br> <code class="notranslate">Successfully installed tensorflow-1.12.0</code></p>
0
<p dir="auto">In my application, I update figures every several seconds. I am not sure why, but WebAgg backend tends to draw text wrong. For example:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/97dcb8bc0587aaa54af2ea37c413be9dfa002b891f11c2702917abc96c9c97cf/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323739333535312f323231373331352f38376231303333652d396131612d313165332d396137342d3964373664616431343337662e706e67"><img src="https://camo.githubusercontent.com/97dcb8bc0587aaa54af2ea37c413be9dfa002b891f11c2702917abc96c9c97cf/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323739333535312f323231373331352f38376231303333652d396131612d313165332d396137342d3964373664616431343337662e706e67" alt="webagg_text" data-canonical-src="https://f.cloud.github.com/assets/2793551/2217315/87b1033e-9a1a-11e3-9a74-9d76dad1437f.png" style="max-width: 100%;"></a></p> <p dir="auto">The bottom-left matrix should contain the same labels as the upper-right. Sometimes, even the upper-right matrix is displayed without text, but after some time it recovers. Sometimes, the text for the bottom-left matrix is drawn on the upper-right matrix, causing unreadable overlapped labels.</p> <p dir="auto">I wonder, where I should start digging for that difference between drawing boxes and color (always valid) and text (randomly skipped on some figures)?</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">Hi,</p> <p dir="auto">When using <code class="notranslate">triplot</code> with a <code class="notranslate">label</code> the resulting legend contains two duplicated entries (even though the markers is None):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" plt.triplot([0,2,1],[0,0,1],[[0,1,2]], label='Label'); plt.legend()"><pre class="notranslate"><span class="pl-s1">plt</span>.<span class="pl-en">triplot</span>([<span class="pl-c1">0</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>],[<span class="pl-c1">0</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-c1">2</span>]], <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'Label'</span>); <span class="pl-s1">plt</span>.<span class="pl-en">legend</span>()</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11042162/166437380-3c5a22bd-e404-4224-9907-288f97ff75c5.png"><img width="500" alt="Screenshot 2022-05-03 at 12 17 10" src="https://user-images.githubusercontent.com/11042162/166437380-3c5a22bd-e404-4224-9907-288f97ff75c5.png" style="max-width: 100%;"></a></p> <p dir="auto">I think expected behavior would be either</p> <ol dir="auto"> <li>Remove the second legend entry if no markers are given, or</li> <li>Remove the second legend entry altogether, e.g. by using <code class="notranslate">kw_markers.pop('label',None)</code> around here <div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/matplotlib/matplotlib/blob/2aa71eb3559af56c56b9d137790107bffd83cddd/lib/matplotlib/tri/triplot.py#L78">matplotlib/lib/matplotlib/tri/triplot.py</a> </p> <p class="mb-0 color-fg-muted"> Line 78 in <a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/2aa71eb3559af56c56b9d137790107bffd83cddd">2aa71eb</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="L78" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="78"></td> <td id="LC78" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> </tbody></table> </div> </div> </li> </ol> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="see above"><pre class="notranslate"><span class="pl-s1">see</span> <span class="pl-s1">above</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">see above</p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">see above</p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">MacOS</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.6.0.dev2140+g2aa71eb355.d20220503</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">QtAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
0
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:<br> add event listener to a div mounted with three</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="currentMount.addEventListener('mousemove', event =&gt; this.onMouseMove(event)); currentMount.addEventListener('mousedown', event =&gt; this.onMouseDown(event)); currentMount.addEventListener('mouseup', event =&gt; this.onMouseUp(event)); //mousemove works, mouseup and mouse down doesnt"><pre class="notranslate"><span class="pl-s1">currentMount</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'mousemove'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">onMouseMove</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-kos">;</span> <span class="pl-s1">currentMount</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'mousedown'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">onMouseDown</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-kos">;</span> <span class="pl-s1">currentMount</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'mouseup'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">onMouseUp</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-kos">;</span> <span class="pl-c">//mousemove works, mouseup and mouse down doesnt</span></pre></div> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: Desktop</li> <li>OS: Windows</li> <li>Browser: Chrome</li> <li>Three.js version: r121</li> </ul>
<p dir="auto">In r120, disabling orbit controls on mousedown no longer triggers mousemove events when dragging. To reproduce add the following code to misc_controls_orbit.html. This worked in the last several releases. Thanks.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="renderer.domElement.addEventListener('mousemove', ()=&gt;{ console.log('mousemove'); }); renderer.domElement.addEventListener('mousedown', (e)=&gt;{ controls.enabled = false; }); renderer.domElement.addEventListener('mouseup', ()=&gt;{ controls.enabled = true; }); "><pre class="notranslate"><code class="notranslate">renderer.domElement.addEventListener('mousemove', ()=&gt;{ console.log('mousemove'); }); renderer.domElement.addEventListener('mousedown', (e)=&gt;{ controls.enabled = false; }); renderer.domElement.addEventListener('mouseup', ()=&gt;{ controls.enabled = true; }); </code></pre></div>
1
<p dir="auto">Still unsure if this problem is on numpy's side, but I tried downgrading to 1.14 (minimum numpy version for my dependencies) and verified it all works, no errors.<br> Given the recent changes on <code class="notranslate">random</code> I thought of bringing it up with you guys, particularly <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/charris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/charris">@charris</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mattip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mattip">@mattip</a> (from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477263793" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/14207" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/14207/hovercard" href="https://github.com/numpy/numpy/pull/14207">#14207</a> )</p> <p dir="auto">I am sorry I could not isolate a simple reproducible example yet, my setup is inconveniently convoluted ATM.</p> <p dir="auto">I am using <a href="https://github.com/ray-project/ray">Ray</a> to parallelize calls to the <a href="https://github.com/openai/gym">OpenAI Gym</a>, this in turn implying a numpy random state is pickled for storage on its Redis-based object store. The un-pickling after Redis does not find the function <a href="https://github.com/numpy/numpy/blob/master/numpy/random/_pickle.py#L62"><code class="notranslate">__randomstate_ctor()</code></a>.<br> I tried adding it to the <a href="https://github.com/numpy/numpy/blob/master/numpy/random/__init__.py"><strong>init()</strong></a> on the same fashion as (the suspiciously similar) <a href="https://github.com/numpy/numpy/blob/master/numpy/random/__init__.py#L194">__RandomState_ctor()</a>, but to no avail.</p> <p dir="auto">My hope is that someone with a better knowledge of this code will find something useful in the error.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">Sorry too complex yet, unable to isolate it.</p> <h3 dir="auto">Error message:</h3> <p dir="auto">(Getting one of each from each worker, hundreds of them running async)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-08-06 14:18:59,907 ERROR worker.py:1714 -- Failed to unpickle the remote function '__main__.&lt;lambda&gt;' with function ID 84d9aba7e5b48a67d1b84d50bbf3f47e94bd0f4b. Traceback: Traceback (most recent call last): File &quot;/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/ray/function_manager.py&quot;, line 424, in fetch_and_register_remote_function function = pickle.loads(serialized_function) AttributeError: Can't get attribute '__randomstate_ctor' on &lt;module 'numpy.random._pickle' from '/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/numpy/random/_pickle.py'&gt; 2019-08-06 14:18:59,861 ERROR worker.py:1654 -- Possible unhandled error from worker: ray_BlockWorker:run() (pid=28613, host=diufrm148) File &quot;/home/giuse/des/block_worker.py&quot;, line 61, in run fitnesses = self.parallel_eval(population) File &quot;/home/giuse/des/block_worker.py&quot;, line 91, in parallel_eval return ray.get([ ev.evaluate.remote(ind) for ev, ind in zip(self.fitness_evaluators, population) ]) ray.exceptions.RayTaskError: ray_FitnessEvaluator:evaluate() (pid=29830, host=diufrm148) File &quot;pyarrow/serialization.pxi&quot;, line 461, in pyarrow.lib.deserialize File &quot;pyarrow/serialization.pxi&quot;, line 424, in pyarrow.lib.deserialize_from File &quot;pyarrow/serialization.pxi&quot;, line 275, in pyarrow.lib.SerializedPyObject.deserialize File &quot;pyarrow/serialization.pxi&quot;, line 174, in pyarrow.lib.SerializationContext._deserialize_callback AttributeError: Can't get attribute '__randomstate_ctor' on &lt;module 'numpy.random._pickle' from '/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/numpy/random/_pickle.py'&gt;"><pre class="notranslate"><code class="notranslate">2019-08-06 14:18:59,907 ERROR worker.py:1714 -- Failed to unpickle the remote function '__main__.&lt;lambda&gt;' with function ID 84d9aba7e5b48a67d1b84d50bbf3f47e94bd0f4b. Traceback: Traceback (most recent call last): File "/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/ray/function_manager.py", line 424, in fetch_and_register_remote_function function = pickle.loads(serialized_function) AttributeError: Can't get attribute '__randomstate_ctor' on &lt;module 'numpy.random._pickle' from '/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/numpy/random/_pickle.py'&gt; 2019-08-06 14:18:59,861 ERROR worker.py:1654 -- Possible unhandled error from worker: ray_BlockWorker:run() (pid=28613, host=diufrm148) File "/home/giuse/des/block_worker.py", line 61, in run fitnesses = self.parallel_eval(population) File "/home/giuse/des/block_worker.py", line 91, in parallel_eval return ray.get([ ev.evaluate.remote(ind) for ev, ind in zip(self.fitness_evaluators, population) ]) ray.exceptions.RayTaskError: ray_FitnessEvaluator:evaluate() (pid=29830, host=diufrm148) File "pyarrow/serialization.pxi", line 461, in pyarrow.lib.deserialize File "pyarrow/serialization.pxi", line 424, in pyarrow.lib.deserialize_from File "pyarrow/serialization.pxi", line 275, in pyarrow.lib.SerializedPyObject.deserialize File "pyarrow/serialization.pxi", line 174, in pyarrow.lib.SerializationContext._deserialize_callback AttributeError: Can't get attribute '__randomstate_ctor' on &lt;module 'numpy.random._pickle' from '/home/giuse/.local/share/virtualenvs/des-htl_CtVS/lib/python3.6/site-packages/numpy/random/_pickle.py'&gt; </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.17.0 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]"><pre class="notranslate"><code class="notranslate">1.17.0 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] </code></pre></div>
<p dir="auto">There is a complex set of questions around how to handle method resolution in the presence of <code class="notranslate">__numpy_ufunc__</code>. Currently in master is an extremely complicated set of rules that isn't documented and that I don't actually understand (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66389458" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5748" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/5748/hovercard" href="https://github.com/numpy/numpy/pull/5748">#5748</a> for the latest set of changes to this), so it's kinda hard to know whether they are correct, but I suspect not. And this is a blocker for 1.10, b/c whatever we release in 1.10 will be set in stone forever.</p> <p dir="auto">I strongly feel that we cannot include <code class="notranslate">__numpy_ufunc__</code> in a release without at least having a document somewhere describing what the actual dispatch rules are. I hope that doesn't mean we have to defer <code class="notranslate">__numpy_ufunc__</code> for another release, but if it does then it does.</p> <p dir="auto">AFAICT this is how <code class="notranslate">a op b</code> dispatch works for ndarrays, BEFORE <code class="notranslate">__numpy_ufunc__</code> (i.e., this is how 1.9 works):</p> <ul dir="auto"> <li>First Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. So in the case where one of these objects is a proper subclass of the other, that object always gets to do absolutely anything, so that's fine. The interesting cases are the ones where neither is a proper subclass of the other (either because it's like, <code class="notranslate">matrix + masked array</code>, or because it's like <code class="notranslate">ndarray + scipy.sparse</code>). So without loss of generality, let's focus on the case where Python calls <code class="notranslate">a.__op__(b)</code>, and <code class="notranslate">a</code> is either an instance of <code class="notranslate">ndarray</code> or else an instance of a subclass of <code class="notranslate">ndarray</code> which has not overridden <code class="notranslate">__op__</code>, i.e. we're getting <code class="notranslate">ndarray.__op__(a, b)</code>.</li> <li><code class="notranslate">ndarray.__op__</code> has the following logic (see <code class="notranslate">PyArray_GenericBinaryFunction</code> in <code class="notranslate">number.c</code>): <ul dir="auto"> <li>If <code class="notranslate">b</code> is not an <code class="notranslate">ndarray</code> at all (even a subclass), and <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, then we return <code class="notranslate">NotImplemented</code> and let control pass to <code class="notranslate">b.__rop__(a)</code>.</li> <li>Otherwise, we call <code class="notranslate">np.op(a, b)</code> and let the ufunc machinery take over.</li> </ul> </li> <li><code class="notranslate">np.op(a, b)</code> does the following (see <code class="notranslate">PyUFunc_GenericFunction</code>, <code class="notranslate">PyUFunc_GeneralizedFunction</code>, in <code class="notranslate">ufunc_object.c</code>, and also <code class="notranslate">ufunc_generic_call</code> which converts <code class="notranslate">-2</code> return values from the previous into <code class="notranslate">NotImplemented</code> so you have to audit their whole call stack): <ul dir="auto"> <li>If <code class="notranslate">b</code> is not an <code class="notranslate">ndarray</code>, and calling <code class="notranslate">np.array(b)</code> returns an object array (presumably because coercion failed... though I guess this could also be hit if <code class="notranslate">b.__array__()</code> return an object array or something), AND <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, and <code class="notranslate">b</code> has an <code class="notranslate">__rop__</code> method, then return <code class="notranslate">NotImplemented</code>.</li> <li>If any of our arrays contain structured dtypes or strings, and there are no special struct ufunc loops registered, but not if any of our arrays contain objects, then return <code class="notranslate">NotImplemented</code>. (This is buried in <code class="notranslate">get_ufunc_arguments</code>, search for <code class="notranslate">return -2</code>.)</li> <li>Otherwise we return the actual ufunc result.</li> </ul> </li> </ul> <p dir="auto">Now, my suggestion is that the way we would EVENTUALLY like this to look is:</p> <ul dir="auto"> <li>First, Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. As above, let's assume that it invokes <code class="notranslate">ndarray.__op__(a, b)</code>.</li> <li><code class="notranslate">ndarray.__op__(a, b)</code> calls <code class="notranslate">np.op(a, b)</code> (which in turn invokes all the standard ufunc stuff, including <code class="notranslate">__numpy_ufunc__</code> resolution).</li> <li>There is no step 3.</li> </ul> <p dir="auto">I submit that it is obvious that IF we can make this work, then it is obviously the ideal outcome, because it is the simplest possible solution. But is it too simple? To determine this we have to answer two questions: (1) Will it adequately address all the relevant use cases? (2) Can we get there from here?</p> <p dir="auto">So let's compare the current rules to my dream rules.</p> <p dir="auto">First, we observe that everything that currently happens inside the ufunc machinery looks like it's totally wrong. The first check can only be triggered if <code class="notranslate">b</code> is a non-<code class="notranslate">ndarray</code> that has a higher <code class="notranslate">__array_priority__</code> (among other things), but if we look above, we see that those conditions are sufficient to trigger the check in <code class="notranslate">ndarray.__op__</code>, so checking again at the ufunc level is redundant at best. And the second check is just incoherent nonsense AFAICT. The only reason to return <code class="notranslate">NotImplemented</code> is b/c you want to pass control to another <code class="notranslate">__(r)op__</code> method, and there's no reason arrays containing structured dtypes in particular should somehow magically have different <code class="notranslate">__(r)op__</code> methods available than other arrays. So we can just get rid of all the ufunc stuff immediately, great.</p> <p dir="auto">That leaves the <code class="notranslate">__array_priority__</code> stuff. We have two problems here: we can't just drop this immediately b/c of backcompat issues, and we need to have some way to continue to support all the use cases that this currently supports. The first problem is just a matter of having a deprecation period. For the second, observe that a class which defines a <code class="notranslate">__numpy_ufunc__</code> method gets complete control over what any ufunc call does, so it has <em>almost</em> as much power as a class that currently sets <code class="notranslate">__array_priority__</code>. The only additional power that <code class="notranslate">__array_priority__</code> currently gives you is that it lets you distinguish between e.g. a call to <code class="notranslate">ndarray.__add(a, b)</code> versus a call to <code class="notranslate">np.add(a, b)</code>. So the only code that really loses out from my proposed change is code which wants <code class="notranslate">a + b</code> and <code class="notranslate">add(a, b)</code> to do different things.</p> <p dir="auto">AFAIK in the entire history of numpy there is only one situation where this power has been used on purpose: the definition of matrix classes where <code class="notranslate">a * b</code> is matmul, but <code class="notranslate">np.multiply(a, b)</code> is elmul. And we've all agreed that such classes should be deprecated and eventually phased out (cite: PEP 465).</p> <p dir="auto">So, I conclude that EVENTUALLY my dream rules should work great. The only problem is that we need some temporary compromises to get us from here to there. Therefore, I propose we use the following dispatch rules in numpy 1.10, with the goal of moving to my "dream rules" in some future version:</p> <ul dir="auto"> <li>First, Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. As above, let's assume that it invokes <code class="notranslate">ndarray.__op__(a, b)</code>.</li> <li><code class="notranslate">ndarray.__op__(a, b)</code> does the following: <ul dir="auto"> <li>If <code class="notranslate">b</code> <strong>does not define <code class="notranslate">__numpy_ufunc__</code> and</strong> is not an <code class="notranslate">ndarray</code> at all (even a subclass), and <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, then we <strong>issue a deprecation warning and</strong> return <code class="notranslate">NotImplemented</code> and let control pass to <code class="notranslate">b.__rop__(a)</code>. (bolded parts are changes compared to the current behaviour)</li> <li>If <code class="notranslate">__op__</code> is <code class="notranslate">__mul__</code> and <code class="notranslate">b-&gt;tp_class-&gt;tp_name.startswith("scipy.sparse.")</code>, then return <code class="notranslate">NotImplemented</code>. (This rule is necessary in addition to the above, because <code class="notranslate">scipy.sparse</code> has already made a release containing <code class="notranslate">__numpy_ufunc__</code> methods, so the exception above doesn't apply.)</li> <li>Otherwise, we call <code class="notranslate">np.op(a, b)</code> and let the ufunc machinery take over.</li> </ul> </li> </ul> <p dir="auto">I believe that this is adequate to covers all practical use cases for the current dispatch machinery, and gives us a clean path to better dispatch machinery in the future.</p> <p dir="auto">The main alternative proposal is Pauli's, which involves a very complicated check (I won't try to summarize here, see <a href="https://github.com/numpy/numpy/blob/eecb2e3c07f29c0ac991d364a846a2f8293a432a/numpy/core/src/multiarray/number.c#L103">this comment and following code</a>). The goal of that approach is to continue supporting classes where <code class="notranslate">a + b</code> and <code class="notranslate">add(a, b)</code> do different things. I don't think that keeping substantial additional complexity around indefinitely is worth it in order to support functionality that no-one has ever found a use for except in one very specific case (overriding <code class="notranslate">__mul__</code>), and where we generally agree that that one specific case should be phased out as possible.</p> <p dir="auto">I would very much appreciate feedback from scipy.sparse and astropy in particular on whether the above covers all their concerns.</p> <p dir="auto">(Partial) History: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36045125" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/4815" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/4815/hovercard" href="https://github.com/numpy/numpy/pull/4815">#4815</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66389458" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5748" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/5748/hovercard" href="https://github.com/numpy/numpy/pull/5748">#5748</a><br> CC: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cowlicks/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cowlicks">@cowlicks</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhvk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhvk">@mhvk</a></p>
0
<p dir="auto">I'm using Next.js framework and react-player component to play some music on my site. Everything is good until I navigate to the second page. Then the music player stops and when I go back to the first page, the music starts playing again.</p> <p dir="auto">While I want the music to not be interrupted by going to different pages and be an upstream component that I can change the music files from different pages.</p> <p dir="auto">What way do you suggest to this case?</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> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Automatically render the static folder to get access to some assets for the manifest.json file.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The routing seems confused thinking that static is a page instead of an asset folder. Doesn't work in both cases : static folder at the root, and static folder in src.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://github.com/glemiere/nextjs-starter/tree/Static-Folder-Routing-Bug">https://github.com/glemiere/nextjs-starter/tree/Static-Folder-Routing-Bug</a></p> <h2 dir="auto">Context</h2> <p dir="auto">Impossible to set icon in the manifest.json</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</td> </tr> <tr> <td>node</td> <td>9</td> </tr> <tr> <td>OS</td> <td>OSX</td> </tr> <tr> <td>browser</td> <td>X</td> </tr> <tr> <td>etc</td> <td>X</td> </tr> </tbody> </table>
0
<p dir="auto">I've got an opaque string type. We basically use this type for things that are strings under the hood, but shouldn't be interchanged with actual free text strings- for example GUIDs. We also use the nominal type checking hack with the private void property to nominally type check them.</p> <p dir="auto">We have a problem, though, which is that the compiler won't permit them as dictionary keys.</p> <p dir="auto">Can we permit a type annotation or something to say that the type is really a string or integer under the hood and should be permitted as a dictionary key?</p>
<p dir="auto"><code class="notranslate">IDBKeyRange</code> is defined as follows.</p> <p dir="auto"><a href="https://github.com/Microsoft/TypeScript/blob/master/bin/lib.d.ts#L11630">https://github.com/Microsoft/TypeScript/blob/master/bin/lib.d.ts#L11630</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IDBKeyRange { upper: any; upperOpen: boolean; lower: any; lowerOpen: boolean; } declare var IDBKeyRange: { prototype: IDBKeyRange; new(): IDBKeyRange; bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; only(value: any): IDBKeyRange; lowerBound(bound: any, open?: boolean): IDBKeyRange; upperBound(bound: any, open?: boolean): IDBKeyRange; }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IDBKeyRange</span> <span class="pl-kos">{</span> <span class="pl-c1">upper</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c1">upperOpen</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-c1">lower</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c1">lowerOpen</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-smi">IDBKeyRange</span>: <span class="pl-kos">{</span> <span class="pl-c1">prototype</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">bound</span><span class="pl-kos">(</span><span class="pl-s1">lower</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">upper</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">lowerOpen</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-s1">upperOpen</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">only</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">lowerBound</span><span class="pl-kos">(</span><span class="pl-s1">bound</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">open</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">upperBound</span><span class="pl-kos">(</span><span class="pl-s1">bound</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">open</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">But it does not work.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new IDBKeyRange(); // error"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">IDBKeyRange</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// error</span></pre></div> <p dir="auto">Please recovery.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IDBKeyRange { upper: any; upperOpen: boolean; lower: any; lowerOpen: boolean; bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; only(value: any): IDBKeyRange; lowerBound(bound: any, open?: boolean): IDBKeyRange; upperBound(bound: any, open?: boolean): IDBKeyRange; } "><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IDBKeyRange</span> <span class="pl-kos">{</span> <span class="pl-c1">upper</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c1">upperOpen</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-c1">lower</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c1">lowerOpen</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-c1">bound</span><span class="pl-kos">(</span><span class="pl-s1">lower</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">upper</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">lowerOpen</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-s1">upperOpen</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">only</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">lowerBound</span><span class="pl-kos">(</span><span class="pl-s1">bound</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">open</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-c1">upperBound</span><span class="pl-kos">(</span><span class="pl-s1">bound</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">open</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">IDBKeyRange</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
0
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18362.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/05/2020 15:58:03<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>
<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
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0"><pre class="notranslate"><code class="notranslate">Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <h2 dir="auto">Test-CTRLC.ps1</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[console]::TreatControlCAsInput = $true Start-Sleep -Seconds 1 $Host.UI.RawUI.FlushInputBuffer() Do { if ($Host.UI.RawUI.KeyAvailable) { $Key = [int]$Host.UI.RawUI.ReadKey(&quot;AllowCtrlC,IncludeKeyUp,NoEcho&quot;).Character Write-Host &quot;Key available - $Key&quot; if (3 -eq $Key -or ' ' -eq $Key) { [console]::TreatControlCAsInput = $false Write-Host &quot;Ctrl-C detected, exiting script...&quot; -ForegroundColor Yellow Break } #$Host.UI.RawUI.FlushInputBuffer() } } While ($true) "><pre class="notranslate"><code class="notranslate">[console]::TreatControlCAsInput = $true Start-Sleep -Seconds 1 $Host.UI.RawUI.FlushInputBuffer() Do { if ($Host.UI.RawUI.KeyAvailable) { $Key = [int]$Host.UI.RawUI.ReadKey("AllowCtrlC,IncludeKeyUp,NoEcho").Character Write-Host "Key available - $Key" if (3 -eq $Key -or ' ' -eq $Key) { [console]::TreatControlCAsInput = $false Write-Host "Ctrl-C detected, exiting script..." -ForegroundColor Yellow Break } #$Host.UI.RawUI.FlushInputBuffer() } } While ($true) </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Ctrl+C should be readable from the <code class="notranslate">$Host.UI.RawUI.KeyAvailable</code> and <code class="notranslate">$Host.UI.RawUI.ReadKey</code> functions</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><code class="notranslate">[console]::TreatControlCAsInput = $true</code> Does turn off Ctrl+C<br> Either <code class="notranslate">$Host.UI.RawUI.KeyAvailable</code> or <code class="notranslate">$Host.UI.RawUI.ReadKey</code> is not working correctly</p> <h1 dir="auto">What works</h1> <p dir="auto">Start PowerShell console outside of Windows Terminal. aka. standard powershell console window<br> Run the above style of code and Ctrl+C is detected</p> <h1 dir="auto">Images</h1> <h2 dir="auto">PowerShell 6 (x64) Console (works)</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21229341/65292478-f5651600-db9a-11e9-8677-b764c98a3957.png"><img src="https://user-images.githubusercontent.com/21229341/65292478-f5651600-db9a-11e9-8677-b764c98a3957.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">PowerShell 7 in Windows Terminal</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21229341/65292520-19c0f280-db9b-11e9-97f2-a16ca2b3ee84.png"><img src="https://user-images.githubusercontent.com/21229341/65292520-19c0f280-db9b-11e9-97f2-a16ca2b3ee84.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.175 Windows Terminal version: 0.2.1831.0 PowerShell Core 6.2.1 PowerShell 5.1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.175 Windows Terminal version: 0.2.1831.0 PowerShell Core 6.2.1 PowerShell 5.1 </code></pre></div> <p dir="auto">I'm on a Microsoft Surface Book. There is no Pause key and no Break key. Ctrl+Break is not an option for stopping a program unless I plug in an external keyboard or do some sort of key remapping specifically for this.</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Create a script in PowerShell that intercepts Ctrl+C so it can gracefully shut down. Run that script and try to use Ctrl+C. The script can't intercept it.</p> <p dir="auto">It behaves the same in PowerShell Core and in PowerShell.</p> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[Console]::TreatControlCAsInput = $True Start-Sleep -Seconds 1 $Host.UI.RawUI.FlushInputBuffer() $exiting = $false while ((-Not $exiting)) { Write-Host &quot;Sleeping...&quot; Start-Sleep -Seconds 1 while ($Host.UI.RawUI.KeyAvailable -and ($Key = $Host.UI.RawUI.ReadKey(&quot;AllowCtrlC,NoEcho,IncludeKeyUp&quot;))) { If ([Int]$Key.Character -eq 3) { Write-Warning &quot;Got CTRL-C!&quot; $exiting = $true } $Host.UI.RawUI.FlushInputBuffer() } } Write-Host &quot;Done.&quot; [Console]::TreatControlCAsInput = $False"><pre class="notranslate">[<span class="pl-k">Console</span>]::TreatControlCAsInput <span class="pl-k">=</span> <span class="pl-c1">$True</span> <span class="pl-c1">Start-Sleep</span> <span class="pl-k">-</span>Seconds <span class="pl-c1">1</span> <span class="pl-c1">$Host<span class="pl-smi">.UI.RawUI.FlushInputBuffer</span></span>() <span class="pl-smi">$exiting</span> <span class="pl-k">=</span> <span class="pl-c1">$false</span> <span class="pl-k">while</span> ((<span class="pl-k">-Not</span> <span class="pl-smi">$exiting</span>)) { <span class="pl-c1">Write-Host</span> <span class="pl-s"><span class="pl-pds">"</span>Sleeping...<span class="pl-pds">"</span></span> <span class="pl-c1">Start-Sleep</span> <span class="pl-k">-</span>Seconds <span class="pl-c1">1</span> <span class="pl-k">while</span> (<span class="pl-c1">$Host<span class="pl-smi">.UI.RawUI.KeyAvailable</span></span> <span class="pl-k">-and</span> (<span class="pl-smi">$Key</span> <span class="pl-k">=</span> <span class="pl-c1">$Host<span class="pl-smi">.UI.RawUI.ReadKey</span></span>(<span class="pl-s"><span class="pl-pds">"</span>AllowCtrlC,NoEcho,IncludeKeyUp<span class="pl-pds">"</span></span>))) { <span class="pl-k">If</span> ([<span class="pl-k">Int</span>]<span class="pl-smi">$Key<span class="pl-smi">.Character</span></span> <span class="pl-k">-eq</span> <span class="pl-c1">3</span>) { <span class="pl-c1">Write-Warning</span> <span class="pl-s"><span class="pl-pds">"</span>Got CTRL-C!<span class="pl-pds">"</span></span> <span class="pl-smi">$exiting</span> <span class="pl-k">=</span> <span class="pl-c1">$true</span> } <span class="pl-c1">$Host<span class="pl-smi">.UI.RawUI.FlushInputBuffer</span></span>() } } <span class="pl-c1">Write-Host</span> <span class="pl-s"><span class="pl-pds">"</span>Done.<span class="pl-pds">"</span></span> [<span class="pl-k">Console</span>]::TreatControlCAsInput <span class="pl-k">=</span> <span class="pl-c1">$False</span></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I should be able to hit Ctrl+C to stop the program. In a standard PowerShell terminal (not hosted in the new Microsoft Terminal) this works fine.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The program pauses, ostensibly to allow copy/paste behavior to work, and if I hit Enter it continues running. There is no way to capture Ctrl+C.</p>
1
<p dir="auto">Having votes on a signle request does not appear to be effective, so maybe if in stead of voting on an exisisting one we create hundreds of code folding requests will they add it?</p> <p dir="auto">been wanting to use VS Code for months now, and it's frustrating to have complicated features like extenstions added, but something simple like code folding is left.</p> <p dir="auto">Gonna give up on VS Code in a month :(</p>
<p dir="auto">I searched but couldnt find this in the issues. Id love to be able to collapse sections of the code. Any thoughts?</p>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">TypeError is raised when running a query that joins two tables and has a with_entities() clause, if the with_entities contains a column that is of type sqlalchemy_utils.JSONType. That comes from the SQLAlchemy-Utils library.</p> <p dir="auto">I don't think this is a bug in SQLAlchemy-Utils since it worked in previous versions of SQLAlchemy? I could be wrong though, maybe it's a latent bug that some change in SQLAlchemy 1.4.19 has only now exposed.</p> <p dir="auto">This worked in SQLAlchemy 1.4.18, error started with SQLAlchemy 1.4.19 and persists in all versions above that.</p> <p dir="auto">I found that it works in 1.4.18 because <code class="notranslate">self._unique_filter_state</code> is None in call to <code class="notranslate">ResultInternal._iterator_getter()</code> in sqlalchemy/engine/result.py. In versions greater than that, <code class="notranslate">self._unique_filter_state</code> is set to a 2-tuple with value <code class="notranslate">(set(), None)</code>. A different code path is walked down when it's not null, which is what raises the error:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/sqlalchemy/sqlalchemy/blob/680baea6b83c497e862f3f0ade28e11940cfd895/lib/sqlalchemy/engine/result.py#L364">sqlalchemy/lib/sqlalchemy/engine/result.py</a> </p> <p class="mb-0 color-fg-muted"> Line 364 in <a data-pjax="true" class="commit-tease-sha" href="/sqlalchemy/sqlalchemy/commit/680baea6b83c497e862f3f0ade28e11940cfd895">680baea</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="L364" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="364"></td> <td id="LC364" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">_unique_filter_state</span>: </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;&quot;&quot; pip install SQLAlchemy-Utils==0.37.8 pip install SQLAlchemy==1.4.23 -- code below works on SQLAlchemy==1.4.18. fails on 1.4.19. so it was introduced with 1.4.19 In [2]: print(sys.version, sys.platform) 3.6.9 (default, Apr 20 2021, 10:15:16) [GCC 9.3.0] linux &quot;&quot;&quot; import sqlalchemy_utils from sqlalchemy import Column, ForeignKey, Integer, JSON, create_engine from sqlalchemy.orm import declarative_base, relationship, Session Base = declarative_base() class AAA(Base): __tablename__ = 'aaa' id = Column(Integer, primary_key=True) json_column = Column(sqlalchemy_utils.JSONType, nullable=False) class BBB(Base): __tablename__ = 'bbb' id = Column(Integer, primary_key=True) aaa_id = Column(Integer, ForeignKey('aaa.id'), nullable=True) parent = relationship('AAA', backref='children') class CCC(Base): __tablename__ = 'ccc' id = Column(Integer, primary_key=True) json_column = Column(JSON, nullable=False) class DDD(Base): __tablename__ = 'ddd' id = Column(Integer, primary_key=True) ccc_id = Column(Integer, ForeignKey('ccc.id'), nullable=True) parent = relationship('CCC', backref='children') def main(): eng = create_engine('postgresql://postgres@localhost/mcve', echo=False) Base.metadata.drop_all(eng) Base.metadata.create_all(eng) db_session = Session(eng) db_session.add(AAA(id=13, json_column=[1, 2, 3])) db_session.add(BBB(id=333, aaa_id=13)) db_session.add(CCC(id=13, json_column=[1, 2, 3])) db_session.add(DDD(id=333, ccc_id=13)) db_session.commit() print('\nthis works') query = db_session.query(AAA).with_entities(AAA.id, AAA.json_column) for (parent_id, json_column) in query: print(parent_id, json_column) print('\nthis works also') query = db_session.query(AAA).join(BBB).with_entities(AAA.id) for (parent_id,) in query: print(parent_id) print('\nthis works also. using the JSON type instead of sqlalchemy_utils.JSONType') query = db_session.query(CCC).join(DDD).with_entities(CCC.id, CCC.json_column) for (parent_id, json_column) in query: print(parent_id, json_column) print('\nbut this fails with TypeError: unhashable type: list. ' 'Problem comes from having AAA.json_column in the with_entities() clause, then iterating over the query:') query = db_session.query(AAA).join(BBB).with_entities(AAA.id, AAA.json_column) for (parent_id, json_column) in query: print(parent_id, json_column) if __name__ == '__main__': main()"><pre class="notranslate"><span class="pl-s">"""</span> <span class="pl-s">pip install SQLAlchemy-Utils==0.37.8</span> <span class="pl-s"></span> <span class="pl-s">pip install SQLAlchemy==1.4.23</span> <span class="pl-s"></span> <span class="pl-s">-- code below works on SQLAlchemy==1.4.18. fails on 1.4.19. so it was introduced with 1.4.19</span> <span class="pl-s"></span> <span class="pl-s">In [2]: print(sys.version, sys.platform)</span> <span class="pl-s">3.6.9 (default, Apr 20 2021, 10:15:16) [GCC 9.3.0] linux</span> <span class="pl-s">"""</span> <span class="pl-k">import</span> <span class="pl-s1">sqlalchemy_utils</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Column</span>, <span class="pl-v">ForeignKey</span>, <span class="pl-v">Integer</span>, <span class="pl-v">JSON</span>, <span class="pl-s1">create_engine</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>, <span class="pl-s1">relationship</span>, <span class="pl-v">Session</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">AAA</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'aaa'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">json_column</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-s1">sqlalchemy_utils</span>.<span class="pl-v">JSONType</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">class</span> <span class="pl-v">BBB</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'bbb'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">aaa_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'aaa.id'</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">parent</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'AAA'</span>, <span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-s">'children'</span>) <span class="pl-k">class</span> <span class="pl-v">CCC</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'ccc'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">json_column</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">JSON</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">class</span> <span class="pl-v">DDD</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'ddd'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">ccc_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'ccc.id'</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">parent</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'CCC'</span>, <span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-s">'children'</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-s1">eng</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'postgresql://postgres@localhost/mcve'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">drop_all</span>(<span class="pl-s1">eng</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">eng</span>) <span class="pl-s1">db_session</span> <span class="pl-c1">=</span> <span class="pl-v">Session</span>(<span class="pl-s1">eng</span>) <span class="pl-s1">db_session</span>.<span class="pl-en">add</span>(<span class="pl-v">AAA</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">13</span>, <span class="pl-s1">json_column</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])) <span class="pl-s1">db_session</span>.<span class="pl-en">add</span>(<span class="pl-v">BBB</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">333</span>, <span class="pl-s1">aaa_id</span><span class="pl-c1">=</span><span class="pl-c1">13</span>)) <span class="pl-s1">db_session</span>.<span class="pl-en">add</span>(<span class="pl-v">CCC</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">13</span>, <span class="pl-s1">json_column</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])) <span class="pl-s1">db_session</span>.<span class="pl-en">add</span>(<span class="pl-v">DDD</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">333</span>, <span class="pl-s1">ccc_id</span><span class="pl-c1">=</span><span class="pl-c1">13</span>)) <span class="pl-s1">db_session</span>.<span class="pl-en">commit</span>() <span class="pl-en">print</span>(<span class="pl-s">'<span class="pl-cce">\n</span>this works'</span>) <span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-s1">db_session</span>.<span class="pl-en">query</span>(<span class="pl-v">AAA</span>).<span class="pl-en">with_entities</span>(<span class="pl-v">AAA</span>.<span class="pl-s1">id</span>, <span class="pl-v">AAA</span>.<span class="pl-s1">json_column</span>) <span class="pl-k">for</span> (<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</span>) <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-en">print</span>(<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</span>) <span class="pl-en">print</span>(<span class="pl-s">'<span class="pl-cce">\n</span>this works also'</span>) <span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-s1">db_session</span>.<span class="pl-en">query</span>(<span class="pl-v">AAA</span>).<span class="pl-en">join</span>(<span class="pl-v">BBB</span>).<span class="pl-en">with_entities</span>(<span class="pl-v">AAA</span>.<span class="pl-s1">id</span>) <span class="pl-k">for</span> (<span class="pl-s1">parent_id</span>,) <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-en">print</span>(<span class="pl-s1">parent_id</span>) <span class="pl-en">print</span>(<span class="pl-s">'<span class="pl-cce">\n</span>this works also. using the JSON type instead of sqlalchemy_utils.JSONType'</span>) <span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-s1">db_session</span>.<span class="pl-en">query</span>(<span class="pl-v">CCC</span>).<span class="pl-en">join</span>(<span class="pl-v">DDD</span>).<span class="pl-en">with_entities</span>(<span class="pl-v">CCC</span>.<span class="pl-s1">id</span>, <span class="pl-v">CCC</span>.<span class="pl-s1">json_column</span>) <span class="pl-k">for</span> (<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</span>) <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-en">print</span>(<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</span>) <span class="pl-en">print</span>(<span class="pl-s">'<span class="pl-cce">\n</span>but this fails with TypeError: unhashable type: list. '</span> <span class="pl-s">'Problem comes from having AAA.json_column in the with_entities() clause, then iterating over the query:'</span>) <span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-s1">db_session</span>.<span class="pl-en">query</span>(<span class="pl-v">AAA</span>).<span class="pl-en">join</span>(<span class="pl-v">BBB</span>).<span class="pl-en">with_entities</span>(<span class="pl-v">AAA</span>.<span class="pl-s1">id</span>, <span class="pl-v">AAA</span>.<span class="pl-s1">json_column</span>) <span class="pl-k">for</span> (<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</span>) <span class="pl-c1">in</span> <span class="pl-s1">query</span>: <span class="pl-en">print</span>(<span class="pl-s1">parent_id</span>, <span class="pl-s1">json_column</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-en">main</span>()</pre></div> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python mcve.py this works 13 [1, 2, 3] this works also 13 this works also. using the JSON type instead of sqlalchemy_utils.JSONType 13 [1, 2, 3] but this fails with TypeError: unhashable type: list. Problem comes from having AAA.json_column in the with_entities() clause, then iterating over the query: Traceback (most recent call last): File &quot;mcve.py&quot;, line 82, in &lt;module&gt; main() File &quot;mcve.py&quot;, line 77, in main for (parent_id, json_column) in query: File &quot;/home/jhersch/.virtualenvs/gemini3.6.9/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 371, in iterrows if hashed in uniques: TypeError: unhashable type: 'list'"><pre class="notranslate"><code class="notranslate">$ python mcve.py this works 13 [1, 2, 3] this works also 13 this works also. using the JSON type instead of sqlalchemy_utils.JSONType 13 [1, 2, 3] but this fails with TypeError: unhashable type: list. Problem comes from having AAA.json_column in the with_entities() clause, then iterating over the query: Traceback (most recent call last): File "mcve.py", line 82, in &lt;module&gt; main() File "mcve.py", line 77, in main for (parent_id, json_column) in query: File "/home/jhersch/.virtualenvs/gemini3.6.9/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 371, in iterrows if hashed in uniques: TypeError: unhashable type: 'list' </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>OS: linux</li> <li>Python: 3.6.9</li> <li>SQLAlchemy: reproduces in 1.4.19 through 1.4.23. does NOT reproduce in 1.4.18</li> <li>Database: postgresql</li> <li>DBAPI: psycopg2</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">If I look in postgres for the definitions of the relevant tables with JSON columns, I find their schemas are identical up to renames. So problem is certainly not in at the db level. I suppose it's in the ORM, when the json_column value is used. In one case it is converted to something that can be hashed (maybe a JSON string?) and in the other it's left as a list, which cannot be hashed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mcve=# \d aaa Table &quot;public.aaa&quot; Column | Type | Collation | Nullable | Default -------------+---------+-----------+----------+--------------------------------- id | integer | | not null | nextval('aaa_id_seq'::regclass) json_column | json | | not null | Indexes: &quot;aaa_pkey&quot; PRIMARY KEY, btree (id) Referenced by: TABLE &quot;bbb&quot; CONSTRAINT &quot;bbb_aaa_id_fkey&quot; FOREIGN KEY (aaa_id) REFERENCES aaa(id) mcve=# \d ccc Table &quot;public.ccc&quot; Column | Type | Collation | Nullable | Default -------------+---------+-----------+----------+--------------------------------- id | integer | | not null | nextval('ccc_id_seq'::regclass) json_column | json | | not null | Indexes: &quot;ccc_pkey&quot; PRIMARY KEY, btree (id) Referenced by: TABLE &quot;ddd&quot; CONSTRAINT &quot;ddd_ccc_id_fkey&quot; FOREIGN KEY (ccc_id) REFERENCES ccc(id)"><pre class="notranslate"><code class="notranslate">mcve=# \d aaa Table "public.aaa" Column | Type | Collation | Nullable | Default -------------+---------+-----------+----------+--------------------------------- id | integer | | not null | nextval('aaa_id_seq'::regclass) json_column | json | | not null | Indexes: "aaa_pkey" PRIMARY KEY, btree (id) Referenced by: TABLE "bbb" CONSTRAINT "bbb_aaa_id_fkey" FOREIGN KEY (aaa_id) REFERENCES aaa(id) mcve=# \d ccc Table "public.ccc" Column | Type | Collation | Nullable | Default -------------+---------+-----------+----------+--------------------------------- id | integer | | not null | nextval('ccc_id_seq'::regclass) json_column | json | | not null | Indexes: "ccc_pkey" PRIMARY KEY, btree (id) Referenced by: TABLE "ddd" CONSTRAINT "ddd_ccc_id_fkey" FOREIGN KEY (ccc_id) REFERENCES ccc(id) </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">The code looks like this (skipping a log of details):</p> <p dir="auto">class visit_dim_category(object):<br> pass</p> <p dir="auto">...</p> <p dir="auto">class schema<br> ...</p> <p dir="auto">#somewhere in class schema:</p> <p dir="auto">self.visit_dim_category = Table( "visit_dim_category", self.metadata,<br> Column("id",Integer, primary_key=True)<br> ,Column("affiliate", Integer, ForeignKey("affiliate.id"))<br> ,Column("product", Integer, ForeignKey("product.id"))<br> )</p> <p dir="auto">Index("visit_dim_category_idx1",self.visit_dim_category.c.affiliate, self.visit_dim_category.c.product, unique=True)</p> <p dir="auto">...</p> <p dir="auto">visit_dim_category.mapper = mapper(visit_dim_category, self.visit_dim_category)</p> <h2 dir="auto"></h2> <p dir="auto">#creating test db<br> db = create_engine(conf.connection())<br> schema = schema(db)<br> schema.metadata.drop_all()<br> schema.metadata.create_all()</p> <p dir="auto">it works fine in 0.2.7 and 0.2.8 but after updrade to 0.3 this code gives the following errors:</p> <p dir="auto">[04:49 ]cff@joy:~/work/stats3/server/test# ./test_db.py<br> create test schema...<br> mysql://root:root@localhost/stat3<br> Traceback (most recent call last):<br> File "./test_db.py", line 15, in ?<br> schema.metadata.create_all()<br> File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 862, in<br> create_all<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 413, in create<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 437, in _run_visitor<br> File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 882, in<br> accept_schema_visitor<br> File "build/bdist.linux-i686/egg/sqlalchemy/ansisql.py", line 637,<br> in visit_metadata<br> File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 268, in<br> accept_schema_visitor<br> File "build/bdist.linux-i686/egg/sqlalchemy/ansisql.py", line 671,<br> in visit_table<br> File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 819, in<br> accept_schema_visitor<br> File "build/bdist.linux-i686/egg/sqlalchemy/ansisql.py", line 749,<br> in visit_index<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 763, in execute<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 365, in proxy<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 329, in _execute_raw<br> File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line<br> 348, in _execute<br> sqlalchemy.exceptions.SQLError: (OperationalError) (1061, "Duplicate<br> key name 'visit_dim_category_idx1'") 'CREATE UNIQUE INDEX<br> visit_dim_category_idx1 ON visit_dim_category (affiliate, product)' ()</p>
0
<p dir="auto">Tried building Atom on Windows (8.1) after a long time and ran into some problems with the latest master version (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/atom/commit/98d3646fee7e22e5731058457e19976ab3139377/hovercard" href="https://github.com/atom/atom/commit/98d3646fee7e22e5731058457e19976ab3139377"><tt>98d3646</tt></a>).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\atom [master]&gt; script/build Node: v0.12.2 npm: v2.7.4 Python: v2.7.7 Installing build modules... Installing apm... child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. gyp ERR! build error gyp ERR! stack Error: `msbuild` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\atom\build\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command &quot;node&quot; &quot;C:\\atom\\build\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot; gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Windows_NT 6.3.9600 npm ERR! argv &quot;node&quot; &quot;C:\\atom\\build\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--userconfig=C:\\atom\\build\\.npmrc&quot; &quot;--target=0.10.35&quot; &quot;install&quot; &quot;--loglevel&quot; &quot;error&quot; npm ERR! node v0.12.2 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE npm ERR! [email protected] install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the chromium-pickle package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls chromium-pickle npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\atom\apm\npm-debug.log"><pre class="notranslate"><code class="notranslate">C:\atom [master]&gt; script/build Node: v0.12.2 npm: v2.7.4 Python: v2.7.7 Installing build modules... Installing apm... child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. child_process: customFds option is deprecated, use stdio instead. gyp ERR! build error gyp ERR! stack Error: `msbuild` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\atom\build\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\\atom\\build\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm ERR! Windows_NT 6.3.9600 npm ERR! argv "node" "C:\\atom\\build\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig=C:\\atom\\build\\.npmrc" "--target=0.10.35" "install" "--loglevel" "error" npm ERR! node v0.12.2 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE npm ERR! [email protected] install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the chromium-pickle package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls chromium-pickle npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\atom\apm\npm-debug.log </code></pre></div> <p dir="auto">Since that doesn't really tell me why <code class="notranslate">node-gyp rebuild</code> bailed, I ran the command manually in that directory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle [master]&gt; node-gyp rebuild gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info spawn python gyp info spawn args [ 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=auto', gyp info spawn args '-I', gyp info spawn args 'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\izuzak\\.node-gyp\\0.12.2\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\izuzak\\.node-gyp\\0.12.2', gyp info spawn args '-Dmodule_root_dir=C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build', gyp info spawn args '-Goutput_dir=.' ] Warning: Missing input files: C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\tests\compilation.cc gyp info spawn msbuild gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] Building the projects in this solution one at a time. To enable parallel build, please add the &quot;/m&quot; switch. dynamic_annotations.c src\base\third_party\dynamic_annotations\dynamic_annotations.c(38): fatal error C1081: 'c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h': file name too long [C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\base.vcxproj] native_mate.vcxproj -&gt; C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\build\Release\\native_mate.lib gyp ERR! build error gyp ERR! stack Error: `msbuild` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\izuzak\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command &quot;node&quot; &quot;C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot; gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok"><pre class="notranslate"><code class="notranslate">C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle [master]&gt; node-gyp rebuild gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info spawn python gyp info spawn args [ 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=auto', gyp info spawn args '-I', gyp info spawn args 'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\izuzak\\.node-gyp\\0.12.2\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\izuzak\\.node-gyp\\0.12.2', gyp info spawn args '-Dmodule_root_dir=C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build', gyp info spawn args '-Goutput_dir=.' ] Warning: Missing input files: C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\tests\compilation.cc gyp info spawn msbuild gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. dynamic_annotations.c src\base\third_party\dynamic_annotations\dynamic_annotations.c(38): fatal error C1081: 'c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h': file name too long [C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\base.vcxproj] native_mate.vcxproj -&gt; C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\build\Release\\native_mate.lib gyp ERR! build error gyp ERR! stack Error: `msbuild` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\izuzak\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.3.9600 gyp ERR! command "node" "C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle gyp ERR! node -v v0.12.2 gyp ERR! node-gyp -v v1.0.3 gyp ERR! not ok </code></pre></div> <p dir="auto">Notice the path which is reported as too long:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h"><pre class="notranslate"><code class="notranslate">c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h </code></pre></div> <p dir="auto">That path is over 264 characters long = too long. I see the same error if I open base-minimal project in VS Studio Express and trigger a build.</p> <p dir="auto">I tried building an older version of Atom (e.g. Atom 0.192.0), and that took me past building apm and past installing packages, all the way to <a href="https://github.com/atom/atom/issues/6415" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6415/hovercard">this error</a>. But that's another problem, and makes me believe this problem was introduced after 0.192.0. Also, I just tried cloning <a href="https://github.com/atom/node-chromium-pickle">https://github.com/atom/node-chromium-pickle</a> to a folder closer to the root and running <code class="notranslate">npm install</code> in that folder and that worked just fine -- no long file name problems.</p> <p dir="auto">Anyone else seeing the problem above when building the latest master on Windows? /cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zcbenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zcbenz">@zcbenz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paulcbetts/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paulcbetts">@paulcbetts</a> Perhaps somehow related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67220153" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6313" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/6313/hovercard" href="https://github.com/atom/atom/pull/6313">#6313</a>?</p> <p dir="auto">Possible cause of problems: that path above which is reported as too long looks very suspicious as well. Notice the duplicated <code class="notranslate">base\third_party\dynamic_annotations</code> part in the path near the end. As far as I can tell, that's happening <a href="https://github.com/zcbenz/base-minimal/blob/383005fc9673e8f603cffc7ae653a74d160f9d07/src/base/third_party/dynamic_annotations/dynamic_annotations.c#L38">here</a>. Notice that <code class="notranslate">dynamic_annotations.h</code> and <code class="notranslate">dynamic_annotations.c</code> are actually in the same folder. After I changed that line from:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;base/third_party/dynamic_annotations/dynamic_annotations.h&quot;"><pre class="notranslate"><code class="notranslate">#include "base/third_party/dynamic_annotations/dynamic_annotations.h" </code></pre></div> <p dir="auto">to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;dynamic_annotations.h&quot;"><pre class="notranslate"><code class="notranslate">#include "dynamic_annotations.h" </code></pre></div> <p dir="auto">I was able to build chromium-pickle without the long file name problems.</p>
<p dir="auto">if it is intended to be used as a text edior ,and i think it is, it takes really long time to atom get opened.</p> <p dir="auto">I mean, to edit a simple text file; i can open tens of leafpad instances until atom gets started.</p> <p dir="auto">I do not expect it to be as fast as leafpad but it should not be slower than sublime.</p>
0
<p dir="auto">I would like to know if it is possible to mix validation group and group sequence ?</p> <p dir="auto">I used GroupSequence like this :</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" * @Assert\GroupSequence({&quot;Branch&quot;, &quot;Step2&quot;}) * @ProjectAssert\Configuration(groups={&quot;Step2&quot;}) */ class Branch // some property with validator. // and /** * @SensioAssert\Yaml() */ private $configurationVariables; /** * @SensioAssert\Twig() */ private $configurationTemplate;"><pre class="notranslate"> * @<span class="pl-en"><span class="pl-v">Assert</span>\<span class="pl-v">GroupSequence</span></span>({"<span class="pl-s">Branch</span>", "<span class="pl-s">Step2</span>"}) * @<span class="pl-en"><span class="pl-v">ProjectAssert</span>\<span class="pl-v">Configuration</span></span>(groups={"<span class="pl-s">Step2</span>"}) */ <span class="pl-k">class</span> <span class="pl-v">Branch</span> <span class="pl-c">// some property with validator.</span> <span class="pl-c">// and</span> <span class="pl-c">/**</span> <span class="pl-c"> * @SensioAssert\Yaml() </span> <span class="pl-c"> */</span> private <span class="pl-s1"><span class="pl-c1">$</span>configurationVariables</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @SensioAssert\Twig()</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-s1"><span class="pl-c1">$</span>configurationTemplate</span>;</pre></div> <p dir="auto">And it works like a charm.</p> <p dir="auto">But now, I want to preview the branch configuration. So I <strong>do not need</strong> validate everything. I just want to validate <code class="notranslate">configurationVariables</code> and <code class="notranslate">configurationTemplate</code> in a first step, and then the whole configuration with <code class="notranslate">ProjectAssert\Configuration</code> in a second step.</p> <p dir="auto">So I added <code class="notranslate">groups={"preview"}</code> on <code class="notranslate">configurationVariables</code> and <code class="notranslate">configurationTemplate</code>.<br> But I do not know how to add a group on my validation sequence.<br> AFAIK, a POPO can attach only one GroupSequence, and a GroupSequence can not be inside a group.</p>
<p dir="auto">Currently, the API of <code class="notranslate">ValidatorInterface</code> does not support group sequences. This should be made possible by supporting the following calls:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$validator-&gt;validate($object, new GroupSequence(array('first', 'second'))); $validator-&gt;validateProperty($object, 'foo', new GroupSequence(array('first', 'second'))); $validator-&gt;validatePropertyValue('Class', 'foo', 'bar', new GroupSequence(array('first', 'second'))); $validator-&gt;validateValue($object, array($constraint1, $constraint2), new GroupSequence(array('first', 'second')));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>object</span>, <span class="pl-k">new</span> <span class="pl-v">GroupSequence</span>(<span class="pl-en">array</span>(<span class="pl-s">'first'</span>, <span class="pl-s">'second'</span>))); <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">validateProperty</span>(<span class="pl-s1"><span class="pl-c1">$</span>object</span>, <span class="pl-s">'foo'</span>, <span class="pl-k">new</span> <span class="pl-v">GroupSequence</span>(<span class="pl-en">array</span>(<span class="pl-s">'first'</span>, <span class="pl-s">'second'</span>))); <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">validatePropertyValue</span>(<span class="pl-s">'Class'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'bar'</span>, <span class="pl-k">new</span> <span class="pl-v">GroupSequence</span>(<span class="pl-en">array</span>(<span class="pl-s">'first'</span>, <span class="pl-s">'second'</span>))); <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">validateValue</span>(<span class="pl-s1"><span class="pl-c1">$</span>object</span>, <span class="pl-en">array</span>(<span class="pl-s1"><span class="pl-c1">$</span>constraint1</span>, <span class="pl-s1"><span class="pl-c1">$</span>constraint2</span>), <span class="pl-k">new</span> <span class="pl-v">GroupSequence</span>(<span class="pl-en">array</span>(<span class="pl-s">'first'</span>, <span class="pl-s">'second'</span>)));</pre></div>
1
<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>7.0.0-beta.4 through 7.0.0, 8.x</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.14.6</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong>: 7.0.0-beta.3, 6.x</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Starting an app with a proxy server should not lead to a crash, the <code class="notranslate">login</code> event should be emitted.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Electron <code class="notranslate">7.0.0-beta.4</code>: Silent crash<br> Electron <code class="notranslate">7.0.0-beta.5 – 7.0.0</code>: <code class="notranslate">login</code> event not emitted, network non-functional</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">You'll need a proxy server to reproduce the missing <code class="notranslate">login</code> event, which might be a somewhat difficult to get. In our testing, the issue exists regardless of the proxy server used (even a simple basic auth proxy fails just like a fancy NTLM one).</p> <p dir="auto"><a href="https://gist.github.com/4d032c5ec44983f714d5bbab2bb472e9">https://gist.github.com/4d032c5ec44983f714d5bbab2bb472e9</a></p> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3>
<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>7.0.0</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>6.1.2</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><a href="https://github.com/electron/electron/blob/v7.0.0/docs/api/web-contents.md#event-login">https://github.com/electron/electron/blob/v7.0.0/docs/api/web-contents.md#event-login</a> triggered</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">login event not triggered</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">run following code</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {app, BrowserWindow} = require('electron') app.once('ready', async () =&gt; { win = new BrowserWindow() app.on('login', console.log) win.webContents.on('login', console.log) win.webContents.once('did-finish-load', async () =&gt; { const html = await win.webContents.executeJavaScript('document.documentElement.innerHTML') console.log(html) app.quit() }) await win.webContents.loadURL('https://httpbin.org/basic-auth/user/passwd') })"><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-s1">app</span><span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">'ready'</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">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-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'login'</span><span class="pl-kos">,</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'login'</span><span class="pl-kos">,</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">once</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-k">const</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">executeJavaScript</span><span class="pl-kos">(</span><span class="pl-s">'document.documentElement.innerHTML'</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">html</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-k">await</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'https://httpbin.org/basic-auth/user/passwd'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
1
<h2 dir="auto">1. Environmental description</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Horizontal sharding database ssm project + spring-namespace the question like issues#24876 I submitted the two questions So far it has not been solved."><pre class="notranslate"><code class="notranslate">Horizontal sharding database ssm project + spring-namespace the question like issues#24876 I submitted the two questions So far it has not been solved. </code></pre></div> <h2 dir="auto">1.1. dependencies</h2> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;mysql&lt;/groupId&gt; &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt; &lt;version&gt;8.0.25&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt; &lt;version&gt;5.1.9.RELEASE&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mybatis&lt;/groupId&gt; &lt;artifactId&gt;mybatis&lt;/artifactId&gt; &lt;version&gt;3.5.4&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mybatis&lt;/groupId&gt; &lt;artifactId&gt;mybatis-spring&lt;/artifactId&gt; &lt;version&gt;2.0.3&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt; &lt;version&gt;5.1.9.RELEASE&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.aspectj&lt;/groupId&gt; &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt; &lt;version&gt;1.9.6&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt; &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt; &lt;version&gt;2.11.4&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.projectlombok&lt;/groupId&gt; &lt;artifactId&gt;lombok&lt;/artifactId&gt; &lt;version&gt;1.18.20&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;shardingsphere-jdbc-core&lt;/artifactId&gt; &lt;version&gt;5.2.1&lt;/version&gt; &lt;/dependency&gt; &lt;!-- https://mvnrepository.com/artifact/org.apache.shardingsphere/shardingsphere-jdbc-core-spring-namespace --&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;shardingsphere-jdbc-core-spring-namespace&lt;/artifactId&gt; &lt;version&gt;5.2.1&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">dependencies</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;mysql&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;mysql-connector-java&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;8.0.25&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.springframework&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;spring-webmvc&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;5.1.9.RELEASE&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.mybatis&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;mybatis&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;3.5.4&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.mybatis&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;mybatis-spring&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;2.0.3&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.springframework&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;spring-jdbc&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;5.1.9.RELEASE&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.aspectj&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;aspectjweaver&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;1.9.6&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;com.fasterxml.jackson.core&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;jackson-databind&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;2.11.4&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.projectlombok&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;lombok&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;1.18.20&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.apache.shardingsphere&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;shardingsphere-jdbc-core&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;5.2.1&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; <span class="pl-c"><span class="pl-c">&lt;!--</span> https://mvnrepository.com/artifact/org.apache.shardingsphere/shardingsphere-jdbc-core-spring-namespace <span class="pl-c">--&gt;</span></span> &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.apache.shardingsphere&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;shardingsphere-jdbc-core-spring-namespace&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;5.2.1&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt; &lt;/<span class="pl-ent">dependencies</span>&gt;</pre></div> <h2 dir="auto">1.2. spring config</h2> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:context=&quot;http://www.springframework.org/schema/context&quot; xmlns:tx=&quot;http://www.springframework.org/schema/tx&quot; xmlns:shardingsphere=&quot;http://shardingsphere.apache.org/schema/shardingsphere/datasource&quot; xmlns:sharding=&quot;http://shardingsphere.apache.org/schema/shardingsphere/sharding&quot; xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://shardingsphere.apache.org/schema/shardingsphere/datasource http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd http://shardingsphere.apache.org/schema/shardingsphere/sharding http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd &quot;&gt; &lt;context:component-scan base-package=&quot;com.baidu.cn.mapper&quot; /&gt; &lt;bean id=&quot;demo_ds_0&quot; class=&quot;com.zaxxer.hikari.HikariDataSource&quot; destroy-method=&quot;close&quot;&gt; &lt;property name=&quot;driverClassName&quot; value=&quot;com.mysql.cj.jdbc.Driver&quot;/&gt; &lt;property name=&quot;jdbcUrl&quot; value=&quot;jdbc:mysql://localhost:3306/aaaa?serverTimezone=UTC&amp;amp;useSSL=false&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF-8&quot;/&gt; &lt;property name=&quot;username&quot; value=&quot;root&quot;/&gt; &lt;property name=&quot;password&quot; value=&quot;rootroot&quot;/&gt; &lt;/bean&gt; &lt;bean id=&quot;demo_ds_1&quot; class=&quot;com.zaxxer.hikari.HikariDataSource&quot; destroy-method=&quot;close&quot;&gt; &lt;property name=&quot;driverClassName&quot; value=&quot;com.mysql.cj.jdbc.Driver&quot;/&gt; &lt;property name=&quot;jdbcUrl&quot; value=&quot;jdbc:mysql://localhost:3306/bbbb?serverTimezone=UTC&amp;amp;useSSL=false&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF-8&quot;/&gt; &lt;property name=&quot;username&quot; value=&quot;root&quot;/&gt; &lt;property name=&quot;password&quot; value=&quot;rootroot&quot;/&gt; &lt;/bean&gt; &lt;sharding:standard-strategy id=&quot;databaseStrategy&quot; sharding-column=&quot;id&quot; algorithm-ref=&quot;inlineStrategyShardingAlgorithm&quot; /&gt; &lt;sharding:sharding-algorithm id=&quot;inlineStrategyShardingAlgorithm&quot; type=&quot;INLINE&quot;&gt; &lt;props&gt; &lt;prop key=&quot;algorithm-expression&quot;&gt;demo_ds_${id % 2}&lt;/prop&gt; &lt;/props&gt; &lt;/sharding:sharding-algorithm&gt; &lt;sharding:key-generate-algorithm id=&quot;snowflakeAlgorithm&quot; type=&quot;SNOWFLAKE&quot;&gt; &lt;/sharding:key-generate-algorithm&gt; &lt;sharding:key-generate-strategy id=&quot;empKeyGenerator&quot; column=&quot;id&quot; algorithm-ref=&quot;snowflakeAlgorithm&quot; /&gt; &lt;sharding:rule id=&quot;shardingRule&quot;&gt; &lt;sharding:table-rules&gt; &lt;sharding:table-rule logic-table=&quot;t_emp&quot; database-strategy-ref=&quot;databaseStrategy&quot; key-generate-strategy-ref=&quot;empKeyGenerator&quot; /&gt; &lt;/sharding:table-rules&gt; &lt;/sharding:rule&gt; &lt;shardingsphere:data-source id=&quot;shardingDataSource&quot; database-name=&quot;sharding-databases&quot; data-source-names=&quot;demo_ds_0, demo_ds_1&quot; rule-refs=&quot;shardingRule&quot; /&gt; &lt;bean id=&quot;transactionManager&quot; class=&quot;org.springframework.jdbc.datasource.DataSourceTransactionManager&quot;&gt; &lt;property name=&quot;dataSource&quot; ref=&quot;shardingDataSource&quot; /&gt; &lt;/bean&gt; &lt;tx:annotation-driven /&gt; &lt;bean id=&quot;sqlSessionFactory&quot; class=&quot;org.mybatis.spring.SqlSessionFactoryBean&quot;&gt; &lt;property name=&quot;dataSource&quot; ref=&quot;shardingDataSource&quot;/&gt; &lt;/bean&gt; &lt;bean class=&quot;org.mybatis.spring.mapper.MapperScannerConfigurer&quot;&gt; &lt;property name=&quot;basePackage&quot; value=&quot;com.baidu.cn.mapper&quot;/&gt; &lt;property name=&quot;sqlSessionFactoryBeanName&quot; value=&quot;sqlSessionFactory&quot;/&gt; &lt;/bean&gt; "><pre class="notranslate">&lt;<span class="pl-ent">beans</span> <span class="pl-e">xmlns</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/beans<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">xsi</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.w3.org/2001/XMLSchema-instance<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">context</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/context<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">tx</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/tx<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">shardingsphere</span>=<span class="pl-s"><span class="pl-pds">"</span>http://shardingsphere.apache.org/schema/shardingsphere/datasource<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">sharding</span>=<span class="pl-s"><span class="pl-pds">"</span>http://shardingsphere.apache.org/schema/shardingsphere/sharding<span class="pl-pds">"</span></span> <span class="pl-e">xsi</span><span class="pl-e">:</span><span class="pl-e">schemaLocation</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/beans</span> <span class="pl-s"> http://www.springframework.org/schema/beans/spring-beans.xsd</span> <span class="pl-s"> http://www.springframework.org/schema/tx</span> <span class="pl-s"> http://www.springframework.org/schema/tx/spring-tx.xsd</span> <span class="pl-s"> http://www.springframework.org/schema/context</span> <span class="pl-s"> http://www.springframework.org/schema/context/spring-context.xsd</span> <span class="pl-s"> http://shardingsphere.apache.org/schema/shardingsphere/datasource</span> <span class="pl-s"> http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd</span> <span class="pl-s"> http://shardingsphere.apache.org/schema/shardingsphere/sharding</span> <span class="pl-s"> http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd</span> <span class="pl-s"> <span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">context</span><span class="pl-ent">:</span><span class="pl-ent">component-scan</span> <span class="pl-e">base-package</span>=<span class="pl-s"><span class="pl-pds">"</span>com.baidu.cn.mapper<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">bean</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demo_ds_0<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>com.zaxxer.hikari.HikariDataSource<span class="pl-pds">"</span></span> <span class="pl-e">destroy-method</span>=<span class="pl-s"><span class="pl-pds">"</span>close<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>driverClassName<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>com.mysql.cj.jdbc.Driver<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>jdbcUrl<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>jdbc:mysql://localhost:3306/aaaa?serverTimezone=UTC<span class="pl-c1">&amp;amp;</span>useSSL=false<span class="pl-c1">&amp;amp;</span>useUnicode=true<span class="pl-c1">&amp;amp;</span>characterEncoding=UTF-8<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>username<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>root<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>password<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>rootroot<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">bean</span>&gt; &lt;<span class="pl-ent">bean</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demo_ds_1<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>com.zaxxer.hikari.HikariDataSource<span class="pl-pds">"</span></span> <span class="pl-e">destroy-method</span>=<span class="pl-s"><span class="pl-pds">"</span>close<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>driverClassName<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>com.mysql.cj.jdbc.Driver<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>jdbcUrl<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>jdbc:mysql://localhost:3306/bbbb?serverTimezone=UTC<span class="pl-c1">&amp;amp;</span>useSSL=false<span class="pl-c1">&amp;amp;</span>useUnicode=true<span class="pl-c1">&amp;amp;</span>characterEncoding=UTF-8<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>username<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>root<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>password<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>rootroot<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">bean</span>&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">standard-strategy</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>databaseStrategy<span class="pl-pds">"</span></span> <span class="pl-e">sharding-column</span>=<span class="pl-s"><span class="pl-pds">"</span>id<span class="pl-pds">"</span></span> <span class="pl-e">algorithm-ref</span>=<span class="pl-s"><span class="pl-pds">"</span>inlineStrategyShardingAlgorithm<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">sharding-algorithm</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>inlineStrategyShardingAlgorithm<span class="pl-pds">"</span></span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>INLINE<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">props</span>&gt; &lt;<span class="pl-ent">prop</span> <span class="pl-e">key</span>=<span class="pl-s"><span class="pl-pds">"</span>algorithm-expression<span class="pl-pds">"</span></span>&gt;demo_ds_${id % 2}&lt;/<span class="pl-ent">prop</span>&gt; &lt;/<span class="pl-ent">props</span>&gt; &lt;/<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">sharding-algorithm</span>&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">key-generate-algorithm</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>snowflakeAlgorithm<span class="pl-pds">"</span></span> <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>SNOWFLAKE<span class="pl-pds">"</span></span>&gt; &lt;/<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">key-generate-algorithm</span>&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">key-generate-strategy</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>empKeyGenerator<span class="pl-pds">"</span></span> <span class="pl-e">column</span>=<span class="pl-s"><span class="pl-pds">"</span>id<span class="pl-pds">"</span></span> <span class="pl-e">algorithm-ref</span>=<span class="pl-s"><span class="pl-pds">"</span>snowflakeAlgorithm<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">rule</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingRule<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">table-rules</span>&gt; &lt;<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">table-rule</span> <span class="pl-e">logic-table</span>=<span class="pl-s"><span class="pl-pds">"</span>t_emp<span class="pl-pds">"</span></span> <span class="pl-e">database-strategy-ref</span>=<span class="pl-s"><span class="pl-pds">"</span>databaseStrategy<span class="pl-pds">"</span></span> <span class="pl-e">key-generate-strategy-ref</span>=<span class="pl-s"><span class="pl-pds">"</span>empKeyGenerator<span class="pl-pds">"</span></span> /&gt; &lt;/<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">table-rules</span>&gt; &lt;/<span class="pl-ent">sharding</span><span class="pl-ent">:</span><span class="pl-ent">rule</span>&gt; &lt;<span class="pl-ent">shardingsphere</span><span class="pl-ent">:</span><span class="pl-ent">data-source</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingDataSource<span class="pl-pds">"</span></span> <span class="pl-e">database-name</span>=<span class="pl-s"><span class="pl-pds">"</span>sharding-databases<span class="pl-pds">"</span></span> <span class="pl-e">data-source-names</span>=<span class="pl-s"><span class="pl-pds">"</span>demo_ds_0, demo_ds_1<span class="pl-pds">"</span></span> <span class="pl-e">rule-refs</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingRule<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">bean</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>transactionManager<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>org.springframework.jdbc.datasource.DataSourceTransactionManager<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>dataSource<span class="pl-pds">"</span></span> <span class="pl-e">ref</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingDataSource<span class="pl-pds">"</span></span> /&gt; &lt;/<span class="pl-ent">bean</span>&gt; &lt;<span class="pl-ent">tx</span><span class="pl-ent">:</span><span class="pl-ent">annotation-driven</span> /&gt; &lt;<span class="pl-ent">bean</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>sqlSessionFactory<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>org.mybatis.spring.SqlSessionFactoryBean<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>dataSource<span class="pl-pds">"</span></span> <span class="pl-e">ref</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingDataSource<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">bean</span>&gt; &lt;<span class="pl-ent">bean</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>org.mybatis.spring.mapper.MapperScannerConfigurer<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>basePackage<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>com.baidu.cn.mapper<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>sqlSessionFactoryBeanName<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>sqlSessionFactory<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">bean</span>&gt; </pre></div> <h2 dir="auto">1.3 springmvc config</h2> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:context=&quot;http://www.springframework.org/schema/context&quot; xmlns:mvc=&quot;http://www.springframework.org/schema/mvc&quot; xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd&quot;&gt; &lt;context:component-scan base-package=&quot;com.baidu.cn.controller&quot;/&gt; &lt;mvc:annotation-driven/&gt; &lt;/beans&gt;"><pre class="notranslate">&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>UTF-8<span class="pl-pds">"</span></span>?&gt; &lt;<span class="pl-ent">beans</span> <span class="pl-e">xmlns</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/beans<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">xsi</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.w3.org/2001/XMLSchema-instance<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">context</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/context<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">mvc</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/mvc<span class="pl-pds">"</span></span> <span class="pl-e">xsi</span><span class="pl-e">:</span><span class="pl-e">schemaLocation</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">context</span><span class="pl-ent">:</span><span class="pl-ent">component-scan</span> <span class="pl-e">base-package</span>=<span class="pl-s"><span class="pl-pds">"</span>com.baidu.cn.controller<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">mvc</span><span class="pl-ent">:</span><span class="pl-ent">annotation-driven</span>/&gt; &lt;/<span class="pl-ent">beans</span>&gt;</pre></div> <h2 dir="auto">1.4 web.xml</h2> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;web-app&gt; &lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;classpath:spring.xml&lt;/param-value&gt; &lt;/context-param&gt; &lt;listener&gt; &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt; &lt;/listener&gt; &lt;servlet&gt; &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;init-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;classpath:mvc.xml&lt;/param-value&gt; &lt;/init-param&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt; &lt;url-pattern&gt;/&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;/web-app&gt;"><pre class="notranslate">&lt;<span class="pl-ent">web-app</span>&gt; &lt;<span class="pl-ent">context-param</span>&gt; &lt;<span class="pl-ent">param-name</span>&gt;contextConfigLocation&lt;/<span class="pl-ent">param-name</span>&gt; &lt;<span class="pl-ent">param-value</span>&gt;classpath:spring.xml&lt;/<span class="pl-ent">param-value</span>&gt; &lt;/<span class="pl-ent">context-param</span>&gt; &lt;<span class="pl-ent">listener</span>&gt; &lt;<span class="pl-ent">listener-class</span>&gt;org.springframework.web.context.ContextLoaderListener&lt;/<span class="pl-ent">listener-class</span>&gt; &lt;/<span class="pl-ent">listener</span>&gt; &lt;<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;dispatcher&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">servlet-class</span>&gt;org.springframework.web.servlet.DispatcherServlet&lt;/<span class="pl-ent">servlet-class</span>&gt; &lt;<span class="pl-ent">init-param</span>&gt; &lt;<span class="pl-ent">param-name</span>&gt;contextConfigLocation&lt;/<span class="pl-ent">param-name</span>&gt; &lt;<span class="pl-ent">param-value</span>&gt;classpath:mvc.xml&lt;/<span class="pl-ent">param-value</span>&gt; &lt;/<span class="pl-ent">init-param</span>&gt; &lt;/<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-mapping</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;dispatcher&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">url-pattern</span>&gt;/&lt;/<span class="pl-ent">url-pattern</span>&gt; &lt;/<span class="pl-ent">servlet-mapping</span>&gt; &lt;/<span class="pl-ent">web-app</span>&gt;</pre></div> <h2 dir="auto">1.5. tomcat start error</h2> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingDataSource': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource]: Constructor threw exception; nested exception is java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1341) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1187) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4678) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1727) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1406) at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource]: Constructor threw exception; nested exception is java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300) ... 61 more Caused by: java.lang.RuntimeException: Failed to get driver instance for jdbcUrl=jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL at com.zaxxer.hikari.util.DriverDataSource.&lt;init&gt;(DriverDataSource.java:114) at com.zaxxer.hikari.pool.PoolBase.initializeDataSource(PoolBase.java:321) at com.zaxxer.hikari.pool.PoolBase.&lt;init&gt;(PoolBase.java:110) at com.zaxxer.hikari.pool.HikariPool.&lt;init&gt;(HikariPool.java:108) at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) at org.apache.shardingsphere.mode.repository.standalone.jdbc.JDBCRepository.init(JDBCRepository.java:67) at org.apache.shardingsphere.infra.util.spi.type.required.RequiredSPIRegistry.getRegisteredService(RequiredSPIRegistry.java:45) at org.apache.shardingsphere.mode.repository.standalone.StandalonePersistRepositoryFactory.getInstance(StandalonePersistRepositoryFactory.java:44) at org.apache.shardingsphere.mode.manager.standalone.StandaloneContextManagerBuilder.build(StandaloneContextManagerBuilder.java:44) at org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource.createContextManager(ShardingSphereDataSource.java:76) at org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource.&lt;init&gt;(ShardingSphereDataSource.java:64) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) ... 63 more Caused by: java.sql.SQLException: No suitable driver at java.sql/java.sql.DriverManager.getDriver(DriverManager.java:298) at com.zaxxer.hikari.util.DriverDataSource.&lt;init&gt;(DriverDataSource.java:106) ... 78 more"><pre class="notranslate"> <span class="pl-smi">org</span>.<span class="pl-smi">springframework</span>.<span class="pl-smi">beans</span>.<span class="pl-smi">factory</span>.<span class="pl-smi">BeanCreationException</span>: <span class="pl-s1">Error</span> <span class="pl-s1">creating</span> <span class="pl-s1">bean</span> <span class="pl-s1">with</span> <span class="pl-s1">name</span> <span class="pl-s">'shardingDataSource'</span>: <span class="pl-s1">Bean</span> <span class="pl-s1">instantiation</span> <span class="pl-s1">via</span> <span class="pl-s1">constructor</span> <span class="pl-s1">failed</span>; <span class="pl-smi">nested</span> <span class="pl-s1">exception</span> <span class="pl-smi">is</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">BeanInstantiationException</span>: <span class="pl-s1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">instantiate</span> [<span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">driver</span>.<span class="pl-s1">jdbc</span>.<span class="pl-s1">core</span>.<span class="pl-s1">datasource</span>.<span class="pl-s1">ShardingSphereDataSource</span>]: <span class="pl-s1">Constructor</span> <span class="pl-s1">threw</span> <span class="pl-s1">exception</span>; <span class="pl-smi">nested</span> <span class="pl-s1">exception</span> <span class="pl-smi">is</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">RuntimeException</span>: <span class="pl-s1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">get</span> <span class="pl-s1">driver</span> <span class="pl-s1">instance</span> <span class="pl-s1">for</span> <span class="pl-s1">jdbcUrl</span>=<span class="pl-s1">jdbc</span>:<span class="pl-s1">h2</span>:<span class="pl-s1">mem</span>:<span class="pl-s1">config</span>;<span class="pl-c1">DB_CLOSE_DELAY</span>=-<span class="pl-c1">1</span>;<span class="pl-c1">DATABASE_TO_UPPER</span>=<span class="pl-c1">false</span>;<span class="pl-c1">MODE</span>=<span class="pl-smi">MYSQL</span> <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">ConstructorResolver</span>.<span class="pl-en">instantiate</span>(<span class="pl-smi">ConstructorResolver</span>.<span class="pl-smi">java</span>:<span class="pl-c1">304</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">ConstructorResolver</span>.<span class="pl-en">autowireConstructor</span>(<span class="pl-smi">ConstructorResolver</span>.<span class="pl-smi">java</span>:<span class="pl-c1">285</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractAutowireCapableBeanFactory</span>.<span class="pl-en">autowireConstructor</span>(<span class="pl-smi">AbstractAutowireCapableBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1341</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractAutowireCapableBeanFactory</span>.<span class="pl-en">createBeanInstance</span>(<span class="pl-smi">AbstractAutowireCapableBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1187</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractAutowireCapableBeanFactory</span>.<span class="pl-en">doCreateBean</span>(<span class="pl-smi">AbstractAutowireCapableBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">555</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractAutowireCapableBeanFactory</span>.<span class="pl-en">createBean</span>(<span class="pl-smi">AbstractAutowireCapableBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">515</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractBeanFactory</span>.<span class="pl-en">lambda$doGetBean$0</span>(<span class="pl-smi">AbstractBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">320</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">DefaultSingletonBeanRegistry</span>.<span class="pl-en">getSingleton</span>(<span class="pl-smi">DefaultSingletonBeanRegistry</span>.<span class="pl-smi">java</span>:<span class="pl-c1">222</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractBeanFactory</span>.<span class="pl-en">doGetBean</span>(<span class="pl-smi">AbstractBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">318</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractBeanFactory</span>.<span class="pl-en">getBean</span>(<span class="pl-smi">AbstractBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">199</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">DefaultListableBeanFactory</span>.<span class="pl-en">preInstantiateSingletons</span>(<span class="pl-smi">DefaultListableBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">845</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">finishBeanFactoryInitialization</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">877</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">context</span>.<span class="pl-s1">support</span>.<span class="pl-s1">AbstractApplicationContext</span>.<span class="pl-en">refresh</span>(<span class="pl-smi">AbstractApplicationContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">549</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">web</span>.<span class="pl-s1">context</span>.<span class="pl-s1">ContextLoader</span>.<span class="pl-en">configureAndRefreshWebApplicationContext</span>(<span class="pl-smi">ContextLoader</span>.<span class="pl-smi">java</span>:<span class="pl-c1">400</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">web</span>.<span class="pl-s1">context</span>.<span class="pl-s1">ContextLoader</span>.<span class="pl-en">initWebApplicationContext</span>(<span class="pl-smi">ContextLoader</span>.<span class="pl-smi">java</span>:<span class="pl-c1">291</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">web</span>.<span class="pl-s1">context</span>.<span class="pl-s1">ContextLoaderListener</span>.<span class="pl-en">contextInitialized</span>(<span class="pl-smi">ContextLoaderListener</span>.<span class="pl-smi">java</span>:<span class="pl-c1">103</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">core</span>.<span class="pl-s1">StandardContext</span>.<span class="pl-en">listenerStart</span>(<span class="pl-smi">StandardContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">4678</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">core</span>.<span class="pl-s1">StandardContext</span>.<span class="pl-en">startInternal</span>(<span class="pl-smi">StandardContext</span>.<span class="pl-smi">java</span>:<span class="pl-c1">5139</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LifecycleBase</span>.<span class="pl-en">start</span>(<span class="pl-smi">LifecycleBase</span>.<span class="pl-smi">java</span>:<span class="pl-c1">183</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">core</span>.<span class="pl-s1">ContainerBase</span>.<span class="pl-en">addChildInternal</span>(<span class="pl-smi">ContainerBase</span>.<span class="pl-smi">java</span>:<span class="pl-c1">717</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">core</span>.<span class="pl-s1">ContainerBase</span>.<span class="pl-en">addChild</span>(<span class="pl-smi">ContainerBase</span>.<span class="pl-smi">java</span>:<span class="pl-c1">690</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">core</span>.<span class="pl-s1">StandardHost</span>.<span class="pl-en">addChild</span>(<span class="pl-smi">StandardHost</span>.<span class="pl-smi">java</span>:<span class="pl-c1">705</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">startup</span>.<span class="pl-s1">HostConfig</span>.<span class="pl-en">manageApp</span>(<span class="pl-smi">HostConfig</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1727</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-en">invoke0</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">NativeMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">DelegatingMethodAccessorImpl</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DelegatingMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">43</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Method</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">Method</span>.<span class="pl-smi">java</span>:<span class="pl-c1">566</span>) <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">tomcat</span>.<span class="pl-s1">util</span>.<span class="pl-s1">modeler</span>.<span class="pl-s1">BaseModelMBean</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">BaseModelMBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">288</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>/<span class="pl-s1">com</span>.<span class="pl-s1">sun</span>.<span class="pl-s1">jmx</span>.<span class="pl-s1">interceptor</span>.<span class="pl-s1">DefaultMBeanServerInterceptor</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DefaultMBeanServerInterceptor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>/<span class="pl-s1">com</span>.<span class="pl-s1">sun</span>.<span class="pl-s1">jmx</span>.<span class="pl-s1">mbeanserver</span>.<span class="pl-s1">JmxMBeanServer</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">JmxMBeanServer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">801</span>) <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">mbeans</span>.<span class="pl-s1">MBeanFactory</span>.<span class="pl-en">createStandardContext</span>(<span class="pl-smi">MBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">456</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">catalina</span>.<span class="pl-s1">mbeans</span>.<span class="pl-s1">MBeanFactory</span>.<span class="pl-en">createStandardContext</span>(<span class="pl-smi">MBeanFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">405</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-en">invoke0</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">NativeMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">DelegatingMethodAccessorImpl</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DelegatingMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">43</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Method</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">Method</span>.<span class="pl-smi">java</span>:<span class="pl-c1">566</span>) <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">tomcat</span>.<span class="pl-s1">util</span>.<span class="pl-s1">modeler</span>.<span class="pl-s1">BaseModelMBean</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">BaseModelMBean</span>.<span class="pl-smi">java</span>:<span class="pl-c1">288</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>/<span class="pl-s1">com</span>.<span class="pl-s1">sun</span>.<span class="pl-s1">jmx</span>.<span class="pl-s1">interceptor</span>.<span class="pl-s1">DefaultMBeanServerInterceptor</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DefaultMBeanServerInterceptor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">809</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>/<span class="pl-s1">com</span>.<span class="pl-s1">sun</span>.<span class="pl-s1">jmx</span>.<span class="pl-s1">mbeanserver</span>.<span class="pl-s1">JmxMBeanServer</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">JmxMBeanServer</span>.<span class="pl-smi">java</span>:<span class="pl-c1">801</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>/<span class="pl-s1">com</span>.<span class="pl-s1">sun</span>.<span class="pl-s1">jmx</span>.<span class="pl-s1">remote</span>.<span class="pl-s1">security</span>.<span class="pl-s1">MBeanServerAccessController</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">MBeanServerAccessController</span>.<span class="pl-smi">java</span>:<span class="pl-c1">468</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">javax</span>.<span class="pl-s1">management</span>.<span class="pl-s1">remote</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">RMIConnectionImpl</span>.<span class="pl-s1">doOperation</span>(<span class="pl-smi">RMIConnectionImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1466</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">javax</span>.<span class="pl-s1">management</span>.<span class="pl-s1">remote</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">RMIConnectionImpl$PrivilegedOperation</span>.<span class="pl-en">run</span>(<span class="pl-smi">RMIConnectionImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1307</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">security</span>.<span class="pl-s1">AccessController</span>.<span class="pl-s1">doPrivileged</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">javax</span>.<span class="pl-s1">management</span>.<span class="pl-s1">remote</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">RMIConnectionImpl</span>.<span class="pl-en">doPrivilegedOperation</span>(<span class="pl-smi">RMIConnectionImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1406</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">management</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">javax</span>.<span class="pl-s1">management</span>.<span class="pl-s1">remote</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">RMIConnectionImpl</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">RMIConnectionImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">827</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-en">invoke0</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">NativeMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">DelegatingMethodAccessorImpl</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DelegatingMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">43</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Method</span>.<span class="pl-s1">invoke</span>(<span class="pl-smi">Method</span>.<span class="pl-smi">java</span>:<span class="pl-c1">566</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">server</span>.<span class="pl-s1">UnicastServerRef</span>.<span class="pl-en">dispatch</span>(<span class="pl-smi">UnicastServerRef</span>.<span class="pl-smi">java</span>:<span class="pl-c1">359</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">Transport$1</span>.<span class="pl-s1">run</span>(<span class="pl-smi">Transport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">200</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">Transport$1</span>.<span class="pl-en">run</span>(<span class="pl-smi">Transport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">197</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">security</span>.<span class="pl-s1">AccessController</span>.<span class="pl-s1">doPrivileged</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">Transport</span>.<span class="pl-en">serviceCall</span>(<span class="pl-smi">Transport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">196</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">tcp</span>.<span class="pl-s1">TCPTransport</span>.<span class="pl-s1">handleMessages</span>(<span class="pl-smi">TCPTransport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">562</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">tcp</span>.<span class="pl-s1">TCPTransport$ConnectionHandler</span>.<span class="pl-en">run0</span>(<span class="pl-smi">TCPTransport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">796</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">tcp</span>.<span class="pl-s1">TCPTransport$ConnectionHandler</span>.<span class="pl-s1">lambda$run$0</span>(<span class="pl-smi">TCPTransport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">677</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">security</span>.<span class="pl-s1">AccessController</span>.<span class="pl-en">doPrivileged</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">rmi</span>/<span class="pl-s1">sun</span>.<span class="pl-s1">rmi</span>.<span class="pl-s1">transport</span>.<span class="pl-s1">tcp</span>.<span class="pl-s1">TCPTransport$ConnectionHandler</span>.<span class="pl-s1">run</span>(<span class="pl-smi">TCPTransport</span>.<span class="pl-smi">java</span>:<span class="pl-c1">676</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor</span>.<span class="pl-en">runWorker</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1128</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">concurrent</span>.<span class="pl-s1">ThreadPoolExecutor$Worker</span>.<span class="pl-s1">run</span>(<span class="pl-smi">ThreadPoolExecutor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">628</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">834</span>) <span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">BeanInstantiationException</span>: <span class="pl-s1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">instantiate</span> [<span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">driver</span>.<span class="pl-s1">jdbc</span>.<span class="pl-s1">core</span>.<span class="pl-s1">datasource</span>.<span class="pl-s1">ShardingSphereDataSource</span>]: <span class="pl-s1">Constructor</span> <span class="pl-s1">threw</span> <span class="pl-s1">exception</span>; <span class="pl-smi">nested</span> <span class="pl-s1">exception</span> <span class="pl-smi">is</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">RuntimeException</span>: <span class="pl-s1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">get</span> <span class="pl-s1">driver</span> <span class="pl-s1">instance</span> <span class="pl-s1">for</span> <span class="pl-s1">jdbcUrl</span>=<span class="pl-s1">jdbc</span>:<span class="pl-s1">h2</span>:<span class="pl-s1">mem</span>:<span class="pl-s1">config</span>;<span class="pl-c1">DB_CLOSE_DELAY</span>=-<span class="pl-c1">1</span>;<span class="pl-c1">DATABASE_TO_UPPER</span>=<span class="pl-c1">false</span>;<span class="pl-c1">MODE</span>=<span class="pl-smi">MYSQL</span> <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">BeanUtils</span>.<span class="pl-en">instantiateClass</span>(<span class="pl-smi">BeanUtils</span>.<span class="pl-smi">java</span>:<span class="pl-c1">184</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">SimpleInstantiationStrategy</span>.<span class="pl-en">instantiate</span>(<span class="pl-smi">SimpleInstantiationStrategy</span>.<span class="pl-smi">java</span>:<span class="pl-c1">117</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">factory</span>.<span class="pl-s1">support</span>.<span class="pl-s1">ConstructorResolver</span>.<span class="pl-en">instantiate</span>(<span class="pl-smi">ConstructorResolver</span>.<span class="pl-smi">java</span>:<span class="pl-c1">300</span>) ... <span class="pl-c1">61</span> <span class="pl-s1">more</span> <span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">RuntimeException</span>: <span class="pl-s1">Failed</span> <span class="pl-k">to</span> <span class="pl-s1">get</span> <span class="pl-s1">driver</span> <span class="pl-s1">instance</span> <span class="pl-k">for</span> <span class="pl-s1">jdbcUrl</span>=<span class="pl-s1">jdbc</span>:<span class="pl-s1">h2</span>:<span class="pl-s1">mem</span>:<span class="pl-s1">config</span>;<span class="pl-c1">DB_CLOSE_DELAY</span>=-<span class="pl-c1">1</span>;<span class="pl-c1">DATABASE_TO_UPPER</span>=<span class="pl-c1">false</span>;<span class="pl-c1">MODE</span>=<span class="pl-smi">MYSQL</span> <span class="pl-s1">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">util</span>.<span class="pl-s1">DriverDataSource</span>.&lt;<span class="pl-smi">init</span>&gt;(<span class="pl-smi">DriverDataSource</span>.<span class="pl-smi">java</span>:<span class="pl-c1">114</span>) <span class="pl-smi">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">pool</span>.<span class="pl-s1">PoolBase</span>.<span class="pl-en">initializeDataSource</span>(<span class="pl-smi">PoolBase</span>.<span class="pl-smi">java</span>:<span class="pl-c1">321</span>) <span class="pl-s1">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">pool</span>.<span class="pl-s1">PoolBase</span>.&lt;<span class="pl-smi">init</span>&gt;(<span class="pl-smi">PoolBase</span>.<span class="pl-smi">java</span>:<span class="pl-c1">110</span>) <span class="pl-smi">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">pool</span>.<span class="pl-s1">HikariPool</span>.&lt;<span class="pl-smi">init</span>&gt;(<span class="pl-smi">HikariPool</span>.<span class="pl-smi">java</span>:<span class="pl-c1">108</span>) <span class="pl-smi">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">HikariDataSource</span>.<span class="pl-en">getConnection</span>(<span class="pl-smi">HikariDataSource</span>.<span class="pl-smi">java</span>:<span class="pl-c1">112</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">mode</span>.<span class="pl-s1">repository</span>.<span class="pl-s1">standalone</span>.<span class="pl-s1">jdbc</span>.<span class="pl-s1">JDBCRepository</span>.<span class="pl-en">init</span>(<span class="pl-smi">JDBCRepository</span>.<span class="pl-smi">java</span>:<span class="pl-c1">67</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">infra</span>.<span class="pl-s1">util</span>.<span class="pl-s1">spi</span>.<span class="pl-s1">type</span>.<span class="pl-s1">required</span>.<span class="pl-s1">RequiredSPIRegistry</span>.<span class="pl-en">getRegisteredService</span>(<span class="pl-smi">RequiredSPIRegistry</span>.<span class="pl-smi">java</span>:<span class="pl-c1">45</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">mode</span>.<span class="pl-s1">repository</span>.<span class="pl-s1">standalone</span>.<span class="pl-s1">StandalonePersistRepositoryFactory</span>.<span class="pl-en">getInstance</span>(<span class="pl-smi">StandalonePersistRepositoryFactory</span>.<span class="pl-smi">java</span>:<span class="pl-c1">44</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">mode</span>.<span class="pl-s1">manager</span>.<span class="pl-s1">standalone</span>.<span class="pl-s1">StandaloneContextManagerBuilder</span>.<span class="pl-en">build</span>(<span class="pl-smi">StandaloneContextManagerBuilder</span>.<span class="pl-smi">java</span>:<span class="pl-c1">44</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">driver</span>.<span class="pl-s1">jdbc</span>.<span class="pl-s1">core</span>.<span class="pl-s1">datasource</span>.<span class="pl-s1">ShardingSphereDataSource</span>.<span class="pl-en">createContextManager</span>(<span class="pl-smi">ShardingSphereDataSource</span>.<span class="pl-smi">java</span>:<span class="pl-c1">76</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">shardingsphere</span>.<span class="pl-s1">driver</span>.<span class="pl-s1">jdbc</span>.<span class="pl-s1">core</span>.<span class="pl-s1">datasource</span>.<span class="pl-s1">ShardingSphereDataSource</span>.&lt;<span class="pl-smi">init</span>&gt;(<span class="pl-smi">ShardingSphereDataSource</span>.<span class="pl-smi">java</span>:<span class="pl-c1">64</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeConstructorAccessorImpl</span>.<span class="pl-en">newInstance0</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeConstructorAccessorImpl</span>.<span class="pl-s1">newInstance</span>(<span class="pl-smi">NativeConstructorAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">jdk</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">DelegatingConstructorAccessorImpl</span>.<span class="pl-en">newInstance</span>(<span class="pl-smi">DelegatingConstructorAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">45</span>) <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">base</span>/<span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Constructor</span>.<span class="pl-s1">newInstance</span>(<span class="pl-smi">Constructor</span>.<span class="pl-smi">java</span>:<span class="pl-c1">490</span>) <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">springframework</span>.<span class="pl-s1">beans</span>.<span class="pl-s1">BeanUtils</span>.<span class="pl-en">instantiateClass</span>(<span class="pl-smi">BeanUtils</span>.<span class="pl-smi">java</span>:<span class="pl-c1">172</span>) ... <span class="pl-c1">63</span> <span class="pl-s1">more</span> <span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-smi">java</span>.<span class="pl-smi">sql</span>.<span class="pl-smi">SQLException</span>: <span class="pl-s1">No</span> <span class="pl-s1">suitable</span> <span class="pl-s1">driver</span> <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-smi">sql</span>/<span class="pl-s1">java</span>.<span class="pl-smi">sql</span>.<span class="pl-smi">DriverManager</span>.<span class="pl-smi">getDriver</span>(<span class="pl-smi">DriverManager</span>.<span class="pl-smi">java</span>:<span class="pl-c1">298</span>) <span class="pl-smi">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">zaxxer</span>.<span class="pl-s1">hikari</span>.<span class="pl-s1">util</span>.<span class="pl-s1">DriverDataSource</span>.&lt;<span class="pl-smi">init</span>&gt;(<span class="pl-smi">DriverDataSource</span>.<span class="pl-smi">java</span>:<span class="pl-c1">106</span>) ... <span class="pl-c1">78</span> <span class="pl-s1">more</span></pre></div> <h2 dir="auto">2. My Question</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I write it the same to Official example . Why report an error? how to solve"><pre class="notranslate"><code class="notranslate">I write it the same to Official example . Why report an error? how to solve </code></pre></div>
<p dir="auto">Sometimes shardingValue have been removed in hintShardingAlgorithm?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="HintManager hintManager = HintManager.getInstance(); hintManager.setDatabaseShardingValue(ShardingActivitiConstant.ALL_DATASOURCES); List&lt;Order&gt; orderList = orderService.getOrderList(); "><pre class="notranslate"><code class="notranslate">HintManager hintManager = HintManager.getInstance(); hintManager.setDatabaseShardingValue(ShardingActivitiConstant.ALL_DATASOURCES); List&lt;Order&gt; orderList = orderService.getOrderList(); </code></pre></div> <p dir="auto">same code,some times the value of the shardingValue variable as follow.<br> <code class="notranslate">ListShardingValue(logicTableName=DB_TABLE_NAME, columnName=DB_COLUMN_NAME, values=[all])</code><br> but sometimes, the value of the shardingValue variable as follow.<br> <code class="notranslate">ListShardingValue(logicTableName=DB_TABLE_NAME, columnName=DB_COLUMN_NAME, values=[])</code><br> <strong>Is shardingValue value limited?</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@SuppressWarnings(&quot;unchecked&quot;) private static ShardingValue getShardingValue(final String logicTable, final Collection&lt;Comparable&lt;?&gt;&gt; values) { Preconditions.checkArgument(null != values &amp;&amp; !values.isEmpty()); return new ListShardingValue(logicTable, DB_COLUMN_NAME, values); }"><pre class="notranslate"><code class="notranslate">@SuppressWarnings("unchecked") private static ShardingValue getShardingValue(final String logicTable, final Collection&lt;Comparable&lt;?&gt;&gt; values) { Preconditions.checkArgument(null != values &amp;&amp; !values.isEmpty()); return new ListShardingValue(logicTable, DB_COLUMN_NAME, values); } </code></pre></div> <p dir="auto">ps: I use this version</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependency&gt; &lt;groupId&gt;io.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-spring-boot-starter&lt;/artifactId&gt; &lt;version&gt;3.0.0&lt;/version&gt; &lt;/dependency&gt; "><pre class="notranslate"><code class="notranslate">&lt;dependency&gt; &lt;groupId&gt;io.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-spring-boot-starter&lt;/artifactId&gt; &lt;version&gt;3.0.0&lt;/version&gt; &lt;/dependency&gt; </code></pre></div> <p dir="auto">I find this class.<br> HintManagerHolder.Class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" private static final Multimap&lt;String, Comparable&lt;?&gt;&gt; DATABASE_SHARDING_VALUES = HashMultimap.create(); private static final Multimap&lt;String, Comparable&lt;?&gt;&gt; TABLE_SHARDING_VALUES = HashMultimap.create();"><pre class="notranslate"><code class="notranslate"> private static final Multimap&lt;String, Comparable&lt;?&gt;&gt; DATABASE_SHARDING_VALUES = HashMultimap.create(); private static final Multimap&lt;String, Comparable&lt;?&gt;&gt; TABLE_SHARDING_VALUES = HashMultimap.create(); </code></pre></div> <p dir="auto">not threadlocal params, I think this may be problem!</p>
0
<h2 dir="auto">🐛 Bug</h2> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch input = torch.zeros ([1,1,1]) input2 = torch.zeros ([1,4,1,1]) out= torch.zeros([1]) torch.cholesky_solve(input=input, input2=input2, out=out)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">input</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span> ([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>]) <span class="pl-s1">input2</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span> ([<span class="pl-c1">1</span>,<span class="pl-c1">4</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>]) <span class="pl-s1">out</span><span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span>([<span class="pl-c1">1</span>]) <span class="pl-s1">torch</span>.<span class="pl-en">cholesky_solve</span>(<span class="pl-s1">input</span><span class="pl-c1">=</span><span class="pl-s1">input</span>, <span class="pl-s1">input2</span><span class="pl-c1">=</span><span class="pl-s1">input2</span>, <span class="pl-s1">out</span><span class="pl-c1">=</span><span class="pl-s1">out</span>)</pre></div> <p dir="auto">Output:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="free(): invalid pointer Aborted (core dumped)"><pre class="notranslate"><span class="pl-en">free</span>(): <span class="pl-s1">invalid</span> <span class="pl-s1">pointer</span> <span class="pl-v">Aborted</span> (<span class="pl-s1">core</span> <span class="pl-s1">dumped</span>)</pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Expect no aborts</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <p dir="auto">PyTorch version: 1.5.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.1</p> <p dir="auto">OS: Ubuntu 18.04.4 LTS<br> GCC version: Could not collect<br> CMake version: version 3.14.0</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: No<br> CUDA runtime version: No CUDA<br> GPU models and configuration: No CUDA<br> Nvidia driver version: No CUDA<br> cuDNN version: No CUDA</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.18.1<br> [pip] torch==1.5.0<br> [pip] torchvision==0.6.0a0+82fd1c8<br> [conda] blas 1.0 mkl<br> [conda] cudatoolkit 10.1.243 h6bb024c_0<br> [conda] mkl 2020.1 217<br> [conda] mkl-include 2020.1 217<br> [conda] mkl-service 2.3.0 py37he904b0f_0<br> [conda] mkl_fft 1.0.15 py37ha843d7b_0<br> [conda] mkl_random 1.1.0 py37hd6b4f25_0<br> [conda] numpy 1.18.1 py37h4f9e942_0<br> [conda] numpy-base 1.18.1 py37hde5b4d6_1<br> [conda] pytorch 1.5.0 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch<br> [conda] torchvision 0.6.0 py37_cu101 pytorch</p> <h2 dir="auto">Additional context</h2> <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/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</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></p>
<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="472938990" data-permission-text="Title is private" data-url="https://github.com/pytorch/vision/issues/1172" data-hovercard-type="issue" data-hovercard-url="/pytorch/vision/issues/1172/hovercard" href="https://github.com/pytorch/vision/issues/1172">pytorch/vision#1172</a>, but in main torch repo so we can keep all milestone issues together.</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.31.1]</li> <li>Operating System: [All]</li> <li>Browser: [not relevant]</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ ... testDir: &quot;tests&quot;, testMatch: &quot;**/*.spec.ts&quot;, ... });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ... <span class="pl-s1">testDir</span>: <span class="pl-s">"tests"</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-s">"**/*.spec.ts"</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>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// test.utl.ts import { expect, test } from &quot;@playwright/test&quot;; export function sharedTest() { return test(&quot;The Shared Test&quot;, () =&gt; expect(true, &quot;the smart shared test&quot;).toBeTruthy()); }"><pre class="notranslate"><span class="pl-c">// test.utl.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">sharedTest</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">"The Shared Test"</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-en">expect</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"the smart shared test"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeTruthy</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-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// suiteN.spec.ts ... test.describe.serial(&quot;Suite N&quot;, () =&gt; { test(&quot;Test A&quot;, () =&gt; {...}); sharedTest(); test(&quot;Test B&quot;, () =&gt; {...}); });"><pre class="notranslate"><span class="pl-c">// suiteN.spec.ts</span> ... <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">.</span><span class="pl-en">serial</span><span class="pl-kos">(</span><span class="pl-s">"Suite N"</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-en">test</span><span class="pl-kos">(</span><span class="pl-s">"Test A"</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">sharedTest</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"Test B"</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-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"><strong>Steps</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="playwright test --list"><pre class="notranslate"><code class="notranslate">playwright test --list </code></pre></div> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The output contains the filenames and suites according to the <code class="notranslate">*.spec.ts</code> mask only.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">The output contains also the permutations of <code class="notranslate">test.utl.ts &gt; Suite N The Shared Test</code> instead of <code class="notranslate">suiteN.spec.ts &gt; Suite N The Shared Test</code></p> <p dir="auto"><strong>Workaround</strong></p> <p dir="auto">Not found.<br> Trying to set config property <code class="notranslate">testIgnore: "**/test.utl.ts"</code> doesn't effect.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.2</li> <li>Operating System: Pop!_OS 22.04</li> <li>Browser: Chromium and WebKit (Firefox is ok)</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <p dir="auto">N/A</p> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// script.mjs import { chromium } from 'playwright-core' // import { firefox as chromium } from 'playwright-core' // import { webkit as chromium } from 'playwright-core' const module = String(new URL('module.js', import.meta.url)) const browser = await chromium.launch({ headless: false }) const page = await browser.newPage({ bypassCSP: true }) // await page.goto(String(new URL('index.html', import.meta.url))) await page.addScriptTag({ type: 'module', url: module })"><pre class="notranslate"><span class="pl-c">// script.mjs</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">chromium</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'playwright-core'</span> <span class="pl-c">// import { firefox as chromium } from 'playwright-core'</span> <span class="pl-c">// import { webkit as chromium } from 'playwright-core'</span> <span class="pl-k">const</span> <span class="pl-s1">module</span> <span class="pl-c1">=</span> <span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-c1">URL</span><span class="pl-kos">(</span><span class="pl-s">'module.js'</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">headless</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">bypassCSP</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c">// await page.goto(String(new URL('index.html', import.meta.url)))</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">addScriptTag</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">'module'</span><span class="pl-kos">,</span> <span class="pl-c1">url</span>: <span class="pl-s1">module</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="// module.js console.log('hello')"><pre class="notranslate"><span class="pl-c">// module.js</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">'hello'</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>node script.mjs</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto"><code class="notranslate">hello</code> is logged to the browser console.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">In Chrome and WebKit, the script fails due to an error. Inspecting the network tab in the browser reveals this is a CSP error, despite <code class="notranslate">bypassCSP</code> being true.</p> <p dir="auto">Likewise, a dynamic import inside <code class="notranslate">page.evaluate()</code> causes a CSP error.</p> <p dir="auto">Creating an <code class="notranslate">index.html</code> file to navigate to doesn’t work either.</p>
0
<h3 dir="auto">Describe the issue:</h3> <p dir="auto">xref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1393203766" data-permission-text="Title is private" data-url="https://github.com/numba/numba/issues/8478" data-hovercard-type="issue" data-hovercard-url="/numba/numba/issues/8478/hovercard" href="https://github.com/numba/numba/issues/8478">numba/numba#8478</a></p> <p dir="auto">For a long time, the <code class="notranslate">.types</code> attribute on ufuncs has contained char typecode descriptions of the implemented loops. For example:</p> <div class="highlight highlight-text-python-console notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np In [2]: np.sin.types Out[2]: ['e-&gt;e', 'f-&gt;f', 'd-&gt;d', 'f-&gt;f', 'd-&gt;d', 'g-&gt;g', 'F-&gt;F', 'D-&gt;D', 'G-&gt;G', 'O-&gt;O']"><pre class="notranslate">In [1]: <span class="pl-k">import</span> numpy <span class="pl-k">as</span> np In [2]: np.sin.types Out[2]: ['e-&gt;e', 'f-&gt;f', 'd-&gt;d', 'f-&gt;f', 'd-&gt;d', 'g-&gt;g', 'F-&gt;F', 'D-&gt;D', 'G-&gt;G', 'O-&gt;O']</pre></div> <p dir="auto">Since (I think) NumPy 1.23, ISA specific dispatch loops have been added to some ufuncs, these also appear in <code class="notranslate">.types</code> as additional registrations ahead of the "original" registered loops. Example:</p> <div class="highlight highlight-text-python-console notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [3]: np.fmax.types Out[3]: ['ff-&gt;f', 'dd-&gt;d', 'gg-&gt;g', '??-&gt;?', 'bb-&gt;b', 'BB-&gt;B', 'hh-&gt;h', 'HH-&gt;H', 'ii-&gt;i', 'II-&gt;I', 'll-&gt;l', 'LL-&gt;L', 'qq-&gt;q', 'QQ-&gt;Q', 'ee-&gt;e', 'ff-&gt;f', 'dd-&gt;d', 'gg-&gt;g', 'FF-&gt;F', 'DD-&gt;D', 'GG-&gt;G', 'mm-&gt;m', 'MM-&gt;M', 'OO-&gt;O']"><pre class="notranslate">In [3]: np.fmax.types Out[3]: ['ff-&gt;f', 'dd-&gt;d', 'gg-&gt;g', '??-&gt;?', 'bb-&gt;b', 'BB-&gt;B', 'hh-&gt;h', 'HH-&gt;H', 'ii-&gt;i', 'II-&gt;I', 'll-&gt;l', 'LL-&gt;L', 'qq-&gt;q', 'QQ-&gt;Q', 'ee-&gt;e', 'ff-&gt;f', 'dd-&gt;d', 'gg-&gt;g', 'FF-&gt;F', 'DD-&gt;D', 'GG-&gt;G', 'mm-&gt;m', 'MM-&gt;M', 'OO-&gt;O']</pre></div> <p dir="auto">Note how the <code class="notranslate">ff-&gt;f</code>, <code class="notranslate">dd-&gt;d</code> and <code class="notranslate">gg-&gt;g</code> types occur a) first and are b) replicated later on.</p> <p dir="auto">I'm not sure that this is actually an issue that would matter in practice except that...</p> <ol dir="auto"> <li>In Numba, the <code class="notranslate">.types</code> is used as part of the matching logic for type specific code generation, this is now broken by the above due to the following. In NumPy 1.23 a call in Numba to <code class="notranslate">np.fmax(int64, int64)</code> resolves via <code class="notranslate">ff-&gt;f</code> as it is the first "match" (can cast to the type), whereas prior to this it would first match on <code class="notranslate">ll-&gt;l</code> (as none of the types prior to this would be a safe cast).</li> <li>The <code class="notranslate">.types</code> description/char codes are not capturing that some of the loops registered are ISA specific, it looks like a potential mistake/bug in the output.</li> </ol> <p dir="auto">Essentially this ticket is to seek clarification over the intent so that I can patch Numba against it!</p> <p dir="auto">Many thanks in advance for your help.</p> <h3 dir="auto">Reproduce the 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 print(np.fmax.types)"><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-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-s1">fmax</span>.<span class="pl-s1">types</span>)</pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate">N/A</pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">NumPy version 1.23.1</p> <h3 dir="auto">Context for the issue:</h3> <p dir="auto">Impacts Numba. xref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1393203766" data-permission-text="Title is private" data-url="https://github.com/numba/numba/issues/8478" data-hovercard-type="issue" data-hovercard-url="/numba/numba/issues/8478/hovercard" href="https://github.com/numba/numba/issues/8478">numba/numba#8478</a></p>
<p dir="auto">Apologies if this is a duplicate as it seems such an obvious bug but I could not find another issue about it. Legacy printing mode omits the plus signs for complex arrays.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.ones(5, dtype=np.complex128) array([1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j]) &gt;&gt;&gt; np.set_printoptions(legacy=&quot;1.13&quot;) &gt;&gt;&gt; np.ones(5, dtype=np.complex128) array([ 1. 0.j, 1. 0.j, 1. 0.j, 1. 0.j, 1. 0.j])"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</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-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">5</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">complex128</span>) <span class="pl-en">array</span>([<span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">set_printoptions</span>(<span class="pl-s1">legacy</span><span class="pl-c1">=</span><span class="pl-s">"1.13"</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">5</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">complex128</span>) <span class="pl-en">array</span>([ <span class="pl-c1">1.</span> <span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span> <span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span> <span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span> <span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span> <span class="pl-c1">0.j</span>])</pre></div> <p dir="auto">The output on numpy 1.13.3 is</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.ones(5, dtype=np.complex128) array([ 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j, 1.+0.j])"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">5</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">complex128</span>) <span class="pl-en">array</span>([ <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>, <span class="pl-c1">1.</span><span class="pl-c1">+</span><span class="pl-c1">0.j</span>])</pre></div>
0
<h4 dir="auto">A small, complete example of the issue</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here df = pd.DataFrame(columns=['a','b','c']) df.groupby('a',as_index=False).agg({'b':'nunique'})"><pre class="notranslate"><span class="pl-c"># Your code here</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">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'c'</span>]) <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'a'</span>,<span class="pl-s1">as_index</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">agg</span>({<span class="pl-s">'b'</span>:<span class="pl-s">'nunique'</span>})</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">We shouldn't get an Exception</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 16.0.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None <p dir="auto">pandas: 0.19.0<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: 0.25.1<br> numpy: 1.11.2<br> scipy: 0.18.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.4.8<br> patsy: 0.4.1<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: 1.1.0<br> tables: 3.3.0<br> numexpr: 2.6.1<br> matplotlib: 1.5.3<br> openpyxl: 2.4.0<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.3<br> lxml: 3.6.4<br> bs4: 4.5.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.9<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.43.0<br> pandas_datareader: None</p> </details> i get the following output <p dir="auto">Traceback (most recent call last):<br> File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 75, in <br> testDfGroup()<br> File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 71, in testDfGroup<br> df.groupby('a',as_index=False).agg({'b':'nunique'})<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3774, in aggregate<br> return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3272, in aggregate<br> result, how = self._aggregate(arg, _level=_level, *args, **kwargs)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 549, in _aggregate<br> result = _agg(arg, _agg_1dim)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 500, in _agg<br> result[fname] = func(fname, agg_how)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 483, in _agg_1dim<br> return colg.aggregate(how, _level=(_level or 0) + 1)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 2660, in aggregate<br> return getattr(self, func_or_funcs)(*args, **kwargs)<br> File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3023, in nunique<br> res = out if ids[0] != -1 else out[1:]<br> IndexError: index 0 is out of bounds for axis 0 with size 0</p>
<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="In [18]: b = pandas.Series() In [19]: g = b.groupby(level = 0) In [20]: g.nunique() --------------------------------------------------------------------------- IndexError Traceback (most recent call last) &lt;ipython-input-20-fbbfc3108eac&gt; in &lt;module&gt;() ----&gt; 1 g.nunique() /usr/local/lib/python2.7/dist-packages/pandas/core/groupby.pyc in nunique(self, dropna) 2693 2694 out = np.add.reduceat(inc, idx).astype('int64', copy=False) -&gt; 2695 return Series(out if ids[0] != -1 else out[1:], 2696 index=self.grouper.result_index, 2697 name=self.name) IndexError: index 0 is out of bounds for axis 0 with size 0"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">18</span>]: <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">Series</span>() <span class="pl-v">In</span> [<span class="pl-c1">19</span>]: <span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">level</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>) <span class="pl-v">In</span> [<span class="pl-c1">20</span>]: <span class="pl-s1">g</span>.<span class="pl-en">nunique</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">IndexError</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">20</span><span class="pl-c1">-</span><span class="pl-s1">fbbfc3108eac</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">g</span>.<span class="pl-en">nunique</span>() <span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">local</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">dist</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">groupby</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">nunique</span>(<span class="pl-s1">self</span>, <span class="pl-s1">dropna</span>) <span class="pl-c1">2693</span> <span class="pl-c1">2694</span> <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">add</span>.<span class="pl-en">reduceat</span>(<span class="pl-s1">inc</span>, <span class="pl-s1">idx</span>).<span class="pl-en">astype</span>(<span class="pl-s">'int64'</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">2695</span> <span class="pl-s1">return</span> <span class="pl-v">Series</span>(<span class="pl-s1">out</span> <span class="pl-k">if</span> <span class="pl-s1">ids</span>[<span class="pl-c1">0</span>] <span class="pl-c1">!=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-k">else</span> <span class="pl-s1">out</span>[<span class="pl-c1">1</span>:], <span class="pl-c1">2696</span> <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">grouper</span>.<span class="pl-s1">result_index</span>, <span class="pl-c1">2697</span> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">name</span>) <span class="pl-v">IndexError</span>: <span class="pl-s1">index</span> <span class="pl-c1">0</span> <span class="pl-c1">is</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-s1">bounds</span> <span class="pl-s1">for</span> <span class="pl-s1">axis</span> <span class="pl-c1">0</span> <span class="pl-k">with</span> <span class="pl-s1">size</span> <span class="pl-c1">0</span></pre></div> <h4 dir="auto">Expected Output</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="0"><pre class="notranslate"><span class="pl-c1">0</span></pre></div> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-79-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.17.1 nose: 1.3.1 pip: 8.0.2 setuptools: 20.1.1 Cython: None numpy: 1.10.4 scipy: 0.13.3 statsmodels: 0.5.0 IPython: 4.1.1 sphinx: None patsy: 0.2.1 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.2.2 matplotlib: 1.3.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: None lxml: None bs4: 4.2.1 html5lib: 0.999 httplib2: 0.8 apiclient: None sqlalchemy: None pymysql: None psycopg2: None Jinja2: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-79-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.17.1 nose: 1.3.1 pip: 8.0.2 setuptools: 20.1.1 Cython: None numpy: 1.10.4 scipy: 0.13.3 statsmodels: 0.5.0 IPython: 4.1.1 sphinx: None patsy: 0.2.1 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: None tables: 3.1.1 numexpr: 2.2.2 matplotlib: 1.3.1 openpyxl: 1.7.0 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: None lxml: None bs4: 4.2.1 html5lib: 0.999 httplib2: 0.8 apiclient: None sqlalchemy: None pymysql: None psycopg2: None Jinja2: None </code></pre></div>
1
<p dir="auto">Move all parent/child queries (has_child, has_parent, top_children) from id cache to field data. This has a number of advantages:</p> <ul dir="auto"> <li>Parent/child memory footprint will get reduced by using field data, compared to what it now takes with id cache. The id cache use concrete object arrays to store the parent ids which is wasteful in terms of memory usage compared the field data which uses native byte arrays to store the parent ids (via Lucene's PagedBytes). Initial benchmarks have shown that the memory usage can be reduced up to half with parent/child using field data.</li> <li>Parent child can use paged data structures because field data uses paged data structures under the hood as well. This will result in a better stability because on the jvm level, because of less garbage collection, which boils down to the fact that the storage behind paged data structures is reused between requests and paged data structures taking less memory in general compared to the concrete object arrays in id cache.</li> <li>By reusing the field data parent/child can reuse its infrastructure For example using the CircuitBreaker to fail search requests if too much memory is being spent on parent/child rather then going out of memory.</li> <li>The id cache is similar to field data in a sense that represents field values into memory by removing the id cache a lot of duplicate logic / code will be removed.</li> </ul> <p dir="auto">These advantages come at a cost of a small performance loss of up to 10% in query time execution, but the advantages outweigh the performance loss in terms of stability, predictability (less sudden gc collections) and less memory usage.</p> <p dir="auto">The id cache can be removed, since nothing inside ES is using it. For backward compatibility reason in 1.x releases the id cache statistics will be reported as was before, but it will be based on the <code class="notranslate">_parent</code> field in field data and the <code class="notranslate">_parent</code> field will not be reported in field data statistics.</p>
<p dir="auto">If there is already an ES running on a port and we try to bind to it, you can get weird errors. In case they're NPEs, I'm assuming because it's 2.x trying to talk to 1.4.4. We should handle this more gracefully.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-09-21 10:01:01,575][INFO ][org.elasticsearch.node ] [Fabian Cortez] version[2.0.0-rc1-SNAPSHOT], pid[438], build[33dbe64/2015-09-21T14:49:58Z] [2015-09-21 10:01:01,576][INFO ][org.elasticsearch.node ] [Fabian Cortez] initializing ... [2015-09-21 10:01:01,628][INFO ][org.elasticsearch.plugins] [Fabian Cortez] loaded [], sites [] [2015-09-21 10:01:01,663][INFO ][org.elasticsearch.env ] [Fabian Cortez] using [1] data paths, mounts [[/d (/dev/md0)]], net usable_space [76.4gb], net total_space [447.4gb], spins? [possibly], types [xfs] [2015-09-21 10:01:02,360][INFO ][org.elasticsearch.node ] [Fabian Cortez] initialized [2015-09-21 10:01:02,360][INFO ][org.elasticsearch.node ] [Fabian Cortez] starting ... [2015-09-21 10:01:02,399][INFO ][org.elasticsearch.transport.netty] [Fabian Cortez] Bound profile [default] to address {127.0.0.1:9305} [2015-09-21 10:01:02,399][INFO ][org.elasticsearch.transport.netty] [Fabian Cortez] Bound profile [default] to address {[::1]:9300} [2015-09-21 10:01:02,400][INFO ][org.elasticsearch.transport] [Fabian Cortez] bound_address {127.0.0.1:9305}, publish_address {127.0.0.1:9305} [2015-09-21 10:01:02,406][INFO ][org.elasticsearch.discovery] [Fabian Cortez] elasticsearch/f_e00ueOTImtSTXhxQC_cA [2015-09-21 10:01:02,458][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xcc2174cb, /127.0.0.1:53000 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,462][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x84cb4c45, /127.0.0.1:38328 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,459][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xb6785399, /127.0.0.1:48065 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,458][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x1347095e, /127.0.0.1:34728 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,463][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x6230ba89, /127.0.0.1:54629 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,914][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x8f5f6d28, /127.0.0.1:54635 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,915][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x07361647, /127.0.0.1:34740 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,915][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x67a1d1de, /127.0.0.1:53010 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,916][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xcf4c2ebd, /127.0.0.1:48070 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,917][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x16ad7265, /127.0.0.1:38331 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,420][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x8f6c4c02, /127.0.0.1:38338 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xf632c28f, /127.0.0.1:34751 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x56b6d7fc, /127.0.0.1:54643 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x07ff7527, /127.0.0.1:53021 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x76758374, /127.0.0.1:48079 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:06,920][INFO ][org.elasticsearch.cluster.service] [Fabian Cortez] new_master {Fabian Cortez}{f_e00ueOTImtSTXhxQC_cA}{127.0.0.1}{127.0.0.1:9305}, reason: zen-disco-join(elected_as_master, [0] joins received) [2015-09-21 10:01:06,953][INFO ][org.elasticsearch.http.netty] [Fabian Cortez] Bound http to address {127.0.0.1:9205} [2015-09-21 10:01:06,954][INFO ][org.elasticsearch.http.netty] [Fabian Cortez] Bound http to address {[::1]:9200} [2015-09-21 10:01:06,954][INFO ][org.elasticsearch.http ] [Fabian Cortez] bound_address {127.0.0.1:9205}, publish_address {127.0.0.1:9205} [2015-09-21 10:01:06,955][INFO ][org.elasticsearch.node ] [Fabian Cortez] started [2015-09-21 10:01:06,970][INFO ][org.elasticsearch.gateway] [Fabian Cortez] recovered [0] indices into cluster_state C-c C-c^C[2015-09-21 10:01:07,486][INFO ][org.elasticsearch.node ] [Fabian Cortez] stopping ... [2015-09-21 10:01:07,495][INFO ][org.elasticsearch.node ] [Fabian Cortez] stopped [2015-09-21 10:01:07,495][INFO ][org.elasticsearch.node ] [Fabian Cortez] closing ... [2015-09-21 10:01:07,498][INFO ][org.elasticsearch.node ] [Fabian Cortez] closed"><pre class="notranslate"><code class="notranslate">[2015-09-21 10:01:01,575][INFO ][org.elasticsearch.node ] [Fabian Cortez] version[2.0.0-rc1-SNAPSHOT], pid[438], build[33dbe64/2015-09-21T14:49:58Z] [2015-09-21 10:01:01,576][INFO ][org.elasticsearch.node ] [Fabian Cortez] initializing ... [2015-09-21 10:01:01,628][INFO ][org.elasticsearch.plugins] [Fabian Cortez] loaded [], sites [] [2015-09-21 10:01:01,663][INFO ][org.elasticsearch.env ] [Fabian Cortez] using [1] data paths, mounts [[/d (/dev/md0)]], net usable_space [76.4gb], net total_space [447.4gb], spins? [possibly], types [xfs] [2015-09-21 10:01:02,360][INFO ][org.elasticsearch.node ] [Fabian Cortez] initialized [2015-09-21 10:01:02,360][INFO ][org.elasticsearch.node ] [Fabian Cortez] starting ... [2015-09-21 10:01:02,399][INFO ][org.elasticsearch.transport.netty] [Fabian Cortez] Bound profile [default] to address {127.0.0.1:9305} [2015-09-21 10:01:02,399][INFO ][org.elasticsearch.transport.netty] [Fabian Cortez] Bound profile [default] to address {[::1]:9300} [2015-09-21 10:01:02,400][INFO ][org.elasticsearch.transport] [Fabian Cortez] bound_address {127.0.0.1:9305}, publish_address {127.0.0.1:9305} [2015-09-21 10:01:02,406][INFO ][org.elasticsearch.discovery] [Fabian Cortez] elasticsearch/f_e00ueOTImtSTXhxQC_cA [2015-09-21 10:01:02,458][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xcc2174cb, /127.0.0.1:53000 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,462][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x84cb4c45, /127.0.0.1:38328 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,459][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xb6785399, /127.0.0.1:48065 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,458][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x1347095e, /127.0.0.1:34728 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:02,463][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x6230ba89, /127.0.0.1:54629 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,914][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x8f5f6d28, /127.0.0.1:54635 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,915][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x07361647, /127.0.0.1:34740 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,915][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x67a1d1de, /127.0.0.1:53010 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,916][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xcf4c2ebd, /127.0.0.1:48070 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:03,917][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x16ad7265, /127.0.0.1:38331 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,420][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x8f6c4c02, /127.0.0.1:38338 =&gt; /127.0.0.1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0xf632c28f, /127.0.0.1:34751 =&gt; /127.0.0.1:9304]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x56b6d7fc, /127.0.0.1:54643 =&gt; /127.0.0.1:9301]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x07ff7527, /127.0.0.1:53021 =&gt; /127.0.0.1:9303]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:05,425][WARN ][org.elasticsearch.transport.netty] [Fabian Cortez] exception caught on transport layer [[id: 0x76758374, /127.0.0.1:48079 =&gt; /127.0.0.1:9302]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2015-09-21 10:01:06,920][INFO ][org.elasticsearch.cluster.service] [Fabian Cortez] new_master {Fabian Cortez}{f_e00ueOTImtSTXhxQC_cA}{127.0.0.1}{127.0.0.1:9305}, reason: zen-disco-join(elected_as_master, [0] joins received) [2015-09-21 10:01:06,953][INFO ][org.elasticsearch.http.netty] [Fabian Cortez] Bound http to address {127.0.0.1:9205} [2015-09-21 10:01:06,954][INFO ][org.elasticsearch.http.netty] [Fabian Cortez] Bound http to address {[::1]:9200} [2015-09-21 10:01:06,954][INFO ][org.elasticsearch.http ] [Fabian Cortez] bound_address {127.0.0.1:9205}, publish_address {127.0.0.1:9205} [2015-09-21 10:01:06,955][INFO ][org.elasticsearch.node ] [Fabian Cortez] started [2015-09-21 10:01:06,970][INFO ][org.elasticsearch.gateway] [Fabian Cortez] recovered [0] indices into cluster_state C-c C-c^C[2015-09-21 10:01:07,486][INFO ][org.elasticsearch.node ] [Fabian Cortez] stopping ... [2015-09-21 10:01:07,495][INFO ][org.elasticsearch.node ] [Fabian Cortez] stopped [2015-09-21 10:01:07,495][INFO ][org.elasticsearch.node ] [Fabian Cortez] closing ... [2015-09-21 10:01:07,498][INFO ][org.elasticsearch.node ] [Fabian Cortez] closed </code></pre></div>
0
<p dir="auto">when i press alt the F in the File menu is underlined yet when i press ALT+F i get editor:move-to-end-of-word?<br> and when i press ALT+H to supposedly access the help menu i get editor:delete-to-beginning-of-word?<br> the rest of the menu keyboard shortcuts work<br> conflict only happens when an editor window has focus i guess<br> it works fine when for example all files are closed or no editor has focus<br> i am on windows</p>
<p dir="auto">I don’t really stick to one computer to program, and some computers don’t have editors. Currently I use Sublime Text portable, but it would be great if there was a portable version of Atom.</p>
0
<p dir="auto">We are using the Java client, and we have some custom code to inflate Java objects from the returned doucments. The get and search APIs seem to return completely different interfaces and object trees, even though they both contain the same underlying information. This is a problem for us because our inflation code is then duplicated which introduces possible bugs. Can the get and search APIs on the Java client be refactored so they use the same data structures for each hit returned?</p>
<p dir="auto">This typically happens if the query contains eg. two inner hits definitions on the same nested path and does not define explicit names for inner hits.</p>
0
<p dir="auto"><a href="http://stackoverflow.com/questions/32553207/values-missing-when-loaded-from-pandas-hdf5-file/32587108?noredirect=1#comment53034458_32587108" rel="nofollow">http://stackoverflow.com/questions/32553207/values-missing-when-loaded-from-pandas-hdf5-file/32587108?noredirect=1#comment53034458_32587108</a></p> <p dir="auto">e.g.</p> <p dir="auto">if I</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df.to_hdf('foo.h5','df',encoding='utf-8')"><pre class="notranslate"><code class="notranslate">df.to_hdf('foo.h5','df',encoding='utf-8') </code></pre></div> <p dir="auto">then</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pd.read_hdf('foo.h5','df')"><pre class="notranslate"><code class="notranslate">pd.read_hdf('foo.h5','df') </code></pre></div> <p dir="auto">should pick up the encoding for each table (unless the user overrides by passing in <code class="notranslate">encoding=...</code></p>
<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="&gt;&gt;&gt; ser = pd.Series(pd.Categorical([np.nan])) &gt;&gt;&gt; ser.nunique() ValueError: buffer source array is read-only"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</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-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>])) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">ser</span>.<span class="pl-en">nunique</span>() <span class="pl-v">ValueError</span>: <span class="pl-s1">buffer</span> <span class="pl-s1">source</span> <span class="pl-s1">array</span> <span class="pl-c1">is</span> <span class="pl-s1">read</span><span class="pl-c1">-</span><span class="pl-s1">only</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The above code gave 0 in v20.3 and is expected to give 0 also in v0.21. The problem is independent of if I set some categories.</p> <p dir="auto"><strong>EDIT</strong>: Actually this doesn't give error if I set categories. so this only happens if no categories are set. The use case for no categories in my case is programmatically reading in data, where some columns are empty and of dtype categorical.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">0 (zero)</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/81372093f1fdc0c07e4b45ba0f47b0360fabd405/hovercard" href="https://github.com/pandas-dev/pandas/commit/81372093f1fdc0c07e4b45ba0f47b0360fabd405"><tt>8137209</tt></a><br> python: 3.5.4.final.0<br> python-bits: 32<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.21.0<br> pytest: 3.2.3<br> pip: 9.0.1<br> setuptools: 36.5.0.post20170922<br> Cython: None<br> numpy: 1.13.3<br> scipy: None<br> pyarrow: None<br> xarray: None<br> IPython: 6.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2017.3<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: None<br> openpyxl: 2.4.8<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: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
0
<p dir="auto">I cooked up a minimal example (a modified example from the julia docs) in order to show my problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func_dict = Dict{Int,Function}() function mycustomsort{T}(a::T, b::T) return func_dict[1](a,b) end # Last chance to define mycompare here(!!) const mycustomsort_c = cfunction(mycustomsort, Cint, (Ref{Cdouble}, Ref{Cdouble}) ) # Too late; the world has changed! function mycompare{T}(a::T, b::T) return convert(Cint, a&lt;b ? -1 : a&gt;b ? +1 : 0)::Cint end func_dict[1] = mycompare A = [1.0,5,2,3] ccall(:qsort, Void, (Ptr{Cdouble}, Csize_t, Csize_t, Ptr{Void}), A, length(A), sizeof(eltype(A)), mycustomsort_c) println(A)"><pre class="notranslate"><code class="notranslate">func_dict = Dict{Int,Function}() function mycustomsort{T}(a::T, b::T) return func_dict[1](a,b) end # Last chance to define mycompare here(!!) const mycustomsort_c = cfunction(mycustomsort, Cint, (Ref{Cdouble}, Ref{Cdouble}) ) # Too late; the world has changed! function mycompare{T}(a::T, b::T) return convert(Cint, a&lt;b ? -1 : a&gt;b ? +1 : 0)::Cint end func_dict[1] = mycompare A = [1.0,5,2,3] ccall(:qsort, Void, (Ptr{Cdouble}, Csize_t, Csize_t, Ptr{Void}), A, length(A), sizeof(eltype(A)), mycustomsort_c) println(A) </code></pre></div> <p dir="auto">One gets the output:</p> <blockquote> <p dir="auto">ERROR: LoadError: MethodError: no method matching mycompare(::Float64, ::Float64)<br> The applicable method may be too new: running in world age 20393, while current world is 20394.</p> </blockquote> <p dir="auto">Yes in the (constructed) example above, one can use the workaround to define <code class="notranslate">mycompare</code> before <code class="notranslate">mycustomsort_c</code>. But in real world examples this is not always possible.</p> <p dir="auto"><em>Real world example:</em> I'm the author of the ODEInterface package (available for Julia v0.4, v0.5, and trunk before 23.12.2016). There the idea is, that the user can write julia functions (e.g. the right-hand side of an ODE) and give this julia-functions to the ODEInterface. Inside the ODEInterface Fortran codes are called. These Fortran-Codes call Callback-functions that (in my case) are cfunctions of the ODEInterface that in turn try to call the user-given Julia function. Since Pull <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161551964" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17057" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/17057/hovercard" href="https://github.com/JuliaLang/julia/pull/17057">#17057</a> this is not possible anymore, because the ODEInterface (and hence the cfunctions) are typically loaded/compiled before the user defines the problems he/she wants to solve.</p> <p dir="auto">Any idea how I can solve this problem?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.6.0-dev.1704 Commit 0a0c41c* (2016-12-27 16:34 UTC) Platform Info: OS: Linux (x86_64-redhat-linux) CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell)"><pre class="notranslate"><code class="notranslate">Julia Version 0.6.0-dev.1704 Commit 0a0c41c* (2016-12-27 16:34 UTC) Platform Info: OS: Linux (x86_64-redhat-linux) CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.7.1 (ORCJIT, haswell) </code></pre></div>
<p dir="auto">It seems much harder to pass a proper closure as a callback function in Julia 0.6 than in previous versions due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161551964" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/17057" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/17057/hovercard" href="https://github.com/JuliaLang/julia/pull/17057">#17057</a>. In particular, the method <del>described in the manual and</del> <a href="http://julialang.org/blog/2013/05/callback" rel="nofollow">in this blog post</a> no longer works: passing the <code class="notranslate">Function</code> via a "thunk" <code class="notranslate">void*</code> that is called from a <code class="notranslate">cfunction</code> fails because the <code class="notranslate">Function</code> sees an "old world age".</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198098805" data-permission-text="Title is private" data-url="https://github.com/JuliaPy/PyCall.jl/issues/343" data-hovercard-type="issue" data-hovercard-url="/JuliaPy/PyCall.jl/issues/343/hovercard" href="https://github.com/JuliaPy/PyCall.jl/issues/343">JuliaPy/PyCall.jl#343</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198135795" data-permission-text="Title is private" data-url="https://github.com/JuliaMath/Cubature.jl/issues/22" data-hovercard-type="issue" data-hovercard-url="/JuliaMath/Cubature.jl/issues/22/hovercard" href="https://github.com/JuliaMath/Cubature.jl/issues/22">JuliaMath/Cubature.jl#22</a> and <a href="https://discourse.julialang.org/t/help-with-solving-a-world-age-error-in-package-on-julia-master/1126" rel="nofollow">the mailing list</a>, for example, but this will affect any package wrapping a C library that expects callback functions.</p> <p dir="auto">In PyCall, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yuyichao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yuyichao">@yuyichao</a> suggested using <code class="notranslate">eval</code>, but this is clunky and seems likely to impose a large performance penalty. Is there a better solution?</p>
1
<p dir="auto">Hello,<br> I am new to 6to5 and I am trying to convert some of my ES6 files into ES5. I have had some success with this but wasn't entirely sure my approach was right. This is what I am doing:</p> <ol dir="auto"> <li>Using <code class="notranslate">grunt-6to5</code> to transpile my code</li> <li>Using <code class="notranslate">grunt-browserify</code> to concatenate my files into a bundle</li> </ol> <p dir="auto">using the following <code class="notranslate">grunfile</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ '6to5': { dist: { files: [{ expand: true, cwd: 'public/js/', src: ['**/*.js'], dest: 'public/dist/' }] } }, browserify: { dist: { files: { 'public/dist/bundle.js' : 'public/dist/app.js' } } } }); grunt.registerTask('default', ['6to5', 'browserify']); }"><pre class="notranslate"><code class="notranslate">module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ '6to5': { dist: { files: [{ expand: true, cwd: 'public/js/', src: ['**/*.js'], dest: 'public/dist/' }] } }, browserify: { dist: { files: { 'public/dist/bundle.js' : 'public/dist/app.js' } } } }); grunt.registerTask('default', ['6to5', 'browserify']); } </code></pre></div> <p dir="auto">My question is, is this the right approach or is there anyway I can combine both these steps into one?</p> <p dir="auto">Also, upon transpiling a class, the output doesn't look as pretty as advertised. It adds the following block to every transpiled file (and it is understandable)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };"><pre class="notranslate"><code class="notranslate">var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; </code></pre></div> <p dir="auto">My class goes from</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class myclass { greet() { console.log('Hello world'); } }"><pre class="notranslate"><code class="notranslate">class myclass { greet() { console.log('Hello world'); } } </code></pre></div> <p dir="auto">to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; var myclass = (function () { function myclass() {} _prototypeProperties(myclass, null, { greet: { value: function greet() { console.log(&quot;Hello world&quot;); }, writable: true, enumerable: true, configurable: true } }); return myclass; })();"><pre class="notranslate"><code class="notranslate">"use strict"; var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; var myclass = (function () { function myclass() {} _prototypeProperties(myclass, null, { greet: { value: function greet() { console.log("Hello world"); }, writable: true, enumerable: true, configurable: true } }); return myclass; })(); </code></pre></div> <p dir="auto">Which is fine but upon bundling them using broswerify, every class that got transpiled has the <code class="notranslate">_prototypeProperties</code> duplicated. Is there a trick to avoid this?</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">Given the current code block:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test(function() { var a = 1; // one } // two );"><pre class="notranslate"><span class="pl-en">test</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-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// one</span> <span class="pl-kos">}</span> <span class="pl-c">// two</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The first line of comment is incorrectly attributed to the trailingComments of the anonymous function:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;type&quot;: &quot;File&quot;, &quot;program&quot;: { &quot;body&quot;: [ { &quot;type&quot;: &quot;ExpressionStatement&quot;, &quot;expression&quot;: { &quot;type&quot;: &quot;CallExpression&quot;, &quot;arguments&quot;: [ { &quot;type&quot;: &quot;FunctionExpression&quot;, &quot;body&quot;: { &quot;type&quot;: &quot;BlockStatement&quot;, }, &quot;trailingComments&quot;: [ { &quot;type&quot;: &quot;CommentLine&quot;, &quot;value&quot;: &quot; two&quot;, &quot;start&quot;: 34, &quot;end&quot;: 40, &quot;loc&quot;: { &quot;start&quot;: { &quot;line&quot;: 4, &quot;column&quot;: 2 }, &quot;end&quot;: { &quot;line&quot;: 4, &quot;column&quot;: 8 } } }, { &quot;type&quot;: &quot;CommentLine&quot;, &quot;value&quot;: &quot; three&quot;, &quot;start&quot;: 46, &quot;end&quot;: 54, &quot;loc&quot;: { &quot;start&quot;: { &quot;line&quot;: 6, &quot;column&quot;: 1 }, &quot;end&quot;: { &quot;line&quot;: 6, &quot;column&quot;: 9 } } } ]"><pre class="notranslate"><code class="notranslate">{ "type": "File", "program": { "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "arguments": [ { "type": "FunctionExpression", "body": { "type": "BlockStatement", }, "trailingComments": [ { "type": "CommentLine", "value": " two", "start": 34, "end": 40, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 4, "column": 8 } } }, { "type": "CommentLine", "value": " three", "start": 46, "end": 54, "loc": { "start": { "line": 6, "column": 1 }, "end": { "line": 6, "column": 9 } } } ] </code></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> trailingComments for the anonymous function should only contain the second comment line.</p>
0
<h3 dir="auto">The problem</h3> <p dir="auto">Although they are not commonly used, SecurityBundle provides some useful functions called <code class="notranslate">logout_path()</code> and <code class="notranslate">logout_url()</code> (<a href="http://symfony.com/doc/current/reference/twig_reference.html#logout-path" rel="nofollow">see reference</a>).</p> <p dir="auto">In regular Symfony applications I don't use them because I always know exactly the URL or the route name associated with the logout action. However, when developing some code that can be integrated in any Symfony application I can no longer know the logout URL and I must use <code class="notranslate">logout_*()</code> functions.</p> <p dir="auto">The problem is that these functions, obviously, require the name of the user provider to generate the URL. But again, I cannot know the name of the user provider for the Symfony application which is going to use this software.</p> <h3 dir="auto">The solution</h3> <p dir="auto">The current solution seems verbose and a bit weird to me:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a href=&quot;{{ logout_path(app.security.token.providerKey) }}&quot;&gt;Close session&lt;/a&gt;"><pre class="notranslate">&lt;a href="<span class="pl-s">{{ logout_path(app.security.token.providerKey) }}</span>"&gt;<span class="pl-v">Close</span> session&lt;/a&gt;</pre></div> <p dir="auto">What do you think about making this argument optional? If you set it, the URL is generated for that provider. If you don't set the argument, the function automatically selects the right provider for the current user:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;a href=&quot;{{ logout_path() }}&quot;&gt;Close session&lt;/a&gt;"><pre class="notranslate">&lt;a href="<span class="pl-s">{{ logout_path() }}</span>"&gt;<span class="pl-v">Close</span> session&lt;/a&gt;</pre></div>
<p dir="auto">Hi,</p> <p dir="auto">I am trying to use the new <a href="http://symfony.com/blog/new-in-symfony-2-8-service-auto-wiring" rel="nofollow">auto wiring feature</a> to automatically load the entity manager to my service:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_test_service.test: class: MyTestBundle\Service\TestService autowire: true"><pre class="notranslate"><span class="pl-ent">my_test_service.test</span>: <span class="pl-ent">class</span>: <span class="pl-s">MyTestBundle\Service\TestService</span> <span class="pl-ent">autowire</span>: <span class="pl-c1">true</span></pre></div> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use Doctrine\ORM\EntityManager; class TestService { public function __construct(EntityManager $em) { } }"><pre class="notranslate"><span class="pl-k">use</span> <span class="pl-v">Doctrine</span>\<span class="pl-c1">ORM</span>\<span class="pl-v">EntityManager</span>; <span class="pl-k">class</span> <span class="pl-v">TestService</span> { <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-smi"><span class="pl-smi">EntityManager</span></span> <span class="pl-s1"><span class="pl-c1">$</span>em</span>) { } }</pre></div> <p dir="auto">Result is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeException in AutowirePass.php line 231: Unable to autowire argument of type &quot;Doctrine\ORM\EntityManager&quot; for the service &quot;my_test_service.test&quot;."><pre class="notranslate"><code class="notranslate">RuntimeException in AutowirePass.php line 231: Unable to autowire argument of type "Doctrine\ORM\EntityManager" for the service "my_test_service.test". </code></pre></div> <p dir="auto">Any idea?</p> <p dir="auto">Thanks</p> <p dir="auto">Seb</p>
0
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">404 not found</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="Here: https://docs.scipy.org/doc/scipy/reference/tutorial/index.html#user-guide when click `Getting started` 404: https://docs.scipy.org/doc/scipy/reference/getting_started.html"><pre class="notranslate"><span class="pl-v">Here</span>: <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">docs</span>.<span class="pl-s1">scipy</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-s1">doc</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">reference</span><span class="pl-c1">/</span><span class="pl-s1">tutorial</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">html</span><span class="pl-c">#user-guide</span> <span class="pl-s1">when</span> <span class="pl-s1">click</span> <span class="pl-s">`Getting started`</span> <span class="pl-c1">404</span>: <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">docs</span>.<span class="pl-s1">scipy</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-s1">doc</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span><span class="pl-c1">/</span><span class="pl-s1">reference</span><span class="pl-c1">/</span><span class="pl-s1">getting_started</span>.<span class="pl-s1">html</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Not Found The requested URL /doc/scipy/reference/getting_started.html was not found on this server. Apache/2.4.39 (Ubuntu) Server at docs.scipy.org Port 443"><pre class="notranslate">Not Found The requested URL /doc/scipy/reference/getting_started.html was not found on this server. Apache/2.4.39 (Ubuntu) Server at docs.scipy.org Port 443</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">NULL</p>
<p dir="auto">After Big Sur update I'm not able to install scipy in any of my virtualenvs.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install scipy"><pre class="notranslate"><code class="notranslate">pip install scipy </code></pre></div> <p dir="auto">generate this error</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. Note: Accelerate is no longer supported. ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/ernestoarbitrio/.virtualenvs/histolab/bin/python /Users/ernestoarbitrio/.virtualenvs/histolab/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/3j/s7l7gl410xx64sk3zg9_ngh40000gn/T/tmppxmdgj6o Check the logs for full command output."><pre class="notranslate"> numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. Note: Accelerate is no longer supported. ---------------------------------------- ERROR: Command errored out with <span class="pl-c1">exit</span> status 1: /Users/ernestoarbitrio/.virtualenvs/histolab/bin/python /Users/ernestoarbitrio/.virtualenvs/histolab/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/3j/s7l7gl410xx64sk3zg9_ngh40000gn/T/tmppxmdgj6o Check the logs <span class="pl-k">for</span> full <span class="pl-c1">command</span> output.</pre></div>
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/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">Orientation in StepButton's props should be optional as document described.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Orientation is a required prop, cause type missmatch.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;StepButton /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-smi">StepButton</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">ERROR in /xxx/xx.tsx<br> [tsl] ERROR in /xxx/xx.tsx(240,29)<br> TS2322: Type '{ children: string[]; }' is not assignable to type 'IntrinsicAttributes &amp; StepButtonProps &amp; { children?: ReactNode; }'.<br> Type '{ children: string[]; }' is not assignable to type 'StepButtonProps'.<br> Property 'orientation' is missing in type '{ children: string[]; }'.</p> <h2 dir="auto">Context</h2> <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.27</td> </tr> <tr> <td>TypeScript</td> <td>2.6.2</td> </tr> </tbody> </table>
<h3 dir="auto">Problem description</h3> <p dir="auto">React release 15.2.0 will cause some of the components generating<br> Unknown prop <code class="notranslate">tooltipPosition</code> on tag. Remove this prop from the element. For details, see <a href="https://fb.me/react-unknown-prop" rel="nofollow">https://fb.me/react-unknown-prop</a></p><p dir="auto"></p> <p dir="auto">Referring <a href="https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b">https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b</a></p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.1</li> <li>React: 15.2.0</li> <li>Browser: Chrome</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6867081/16677133/94ab0c9e-4515-11e6-925d-7e28d62a27c8.png"><img src="https://cloud.githubusercontent.com/assets/6867081/16677133/94ab0c9e-4515-11e6-925d-7e28d62a27c8.png" alt="screen shot 2016-07-08 at 2 09 00 pm" style="max-width: 100%;"></a></p><p></p>
0
<p dir="auto">I think that certain functions should return the same type as the input, if they implement <code class="notranslate">__array_wrap__</code>, but aren't necessarily subclass of <code class="notranslate">ndarray</code>. The pandas <code class="notranslate">Series</code> class is an instance of this. We'd like it if functions like <code class="notranslate">where</code>, <code class="notranslate">diff</code>, and a few others returned a <code class="notranslate">Series</code> object similar to how ufuncs work.</p> <p dir="auto">Here are the current functions that don't behave in the desired way:</p> <ul dir="auto"> <li><code class="notranslate">zeros_like</code></li> <li><code class="notranslate">ones_like</code></li> <li><code class="notranslate">empty_like</code></li> <li><code class="notranslate">sort</code></li> <li><code class="notranslate">diff</code></li> <li><code class="notranslate">where</code></li> </ul> <p dir="auto">Here's a related pandas issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28721737" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/6539" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/6539/hovercard" href="https://github.com/pandas-dev/pandas/issues/6539">pandas-dev/pandas#6539</a></p> <p dir="auto">There may be others as well.</p> <p dir="auto">Here's an example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [13]: import pandas as pd In [14]: import numpy as np In [15]: s = pd.Series(np.random.randn(10)) In [16]: s Out[16]: 0 0.5885 1 -0.0710 2 0.0832 3 0.7473 4 0.9818 5 1.0533 6 -2.3336 7 0.5666 8 0.4181 9 0.2505 dtype: float64 In [17]: np.abs(s) Out[17]: 0 0.5885 1 0.0710 2 0.0832 3 0.7473 4 0.9818 5 1.0533 6 2.3336 7 0.5666 8 0.4181 9 0.2505 dtype: float64 In [18]: np.em np.emath np.empty np.empty_like In [18]: np.empty_like(s) Out[18]: array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])"><pre class="notranslate"><code class="notranslate">In [13]: import pandas as pd In [14]: import numpy as np In [15]: s = pd.Series(np.random.randn(10)) In [16]: s Out[16]: 0 0.5885 1 -0.0710 2 0.0832 3 0.7473 4 0.9818 5 1.0533 6 -2.3336 7 0.5666 8 0.4181 9 0.2505 dtype: float64 In [17]: np.abs(s) Out[17]: 0 0.5885 1 0.0710 2 0.0832 3 0.7473 4 0.9818 5 1.0533 6 2.3336 7 0.5666 8 0.4181 9 0.2505 dtype: float64 In [18]: np.em np.emath np.empty np.empty_like In [18]: np.empty_like(s) Out[18]: array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]) </code></pre></div>
<p dir="auto">Is there a reason <code class="notranslate">np.diff,np.ones_like,np.empty_like</code> do not call <code class="notranslate">__array_wrap__</code> on exit; am I doing something wrong, or is this a bug? (using numpy 1.7.1)</p> <p dir="auto">Create a NDLike class which is a container for a ndarray</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [34]: %cpaste Pasting code; enter '--' alone on the line to stop or use Ctrl-D. :class NDLike(object): : def __init__(self, values): : self.values = values : def __array__(self, result=None): : return self.values : def __array_wrap__(self, result): : return type(self)(result) : def __repr__(self): : return &quot;[%s]\n%s&quot; % (type(self),self.values) :-- In [35]: x = NDLike(randn(10)) In [36]: x Out[36]: [&lt;class '__main__.NDLike'&gt;] [-0.90565484 -0.84590628 -0.66540701 -0.82185958 -0.74112001 0.16294691 -0.7707505 0.51350363 -1.89373784 -1.24690582]"><pre class="notranslate"><code class="notranslate">In [34]: %cpaste Pasting code; enter '--' alone on the line to stop or use Ctrl-D. :class NDLike(object): : def __init__(self, values): : self.values = values : def __array__(self, result=None): : return self.values : def __array_wrap__(self, result): : return type(self)(result) : def __repr__(self): : return "[%s]\n%s" % (type(self),self.values) :-- In [35]: x = NDLike(randn(10)) In [36]: x Out[36]: [&lt;class '__main__.NDLike'&gt;] [-0.90565484 -0.84590628 -0.66540701 -0.82185958 -0.74112001 0.16294691 -0.7707505 0.51350363 -1.89373784 -1.24690582] </code></pre></div> <p dir="auto">A ufunc calls <code class="notranslate">__array__</code> on function enter, and <code class="notranslate">__array_wrap__</code> on exit</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [37]: np.add(x,1) Out[37]: [&lt;class '__main__.NDLike'&gt;] [ 0.09434516 0.15409372 0.33459299 0.17814042 0.25887999 1.16294691 0.2292495 1.51350363 -0.89373784 -0.24690582]"><pre class="notranslate"><code class="notranslate">In [37]: np.add(x,1) Out[37]: [&lt;class '__main__.NDLike'&gt;] [ 0.09434516 0.15409372 0.33459299 0.17814042 0.25887999 1.16294691 0.2292495 1.51350363 -0.89373784 -0.24690582] </code></pre></div> <p dir="auto">I have found that both <code class="notranslate">np.diff, np.ones_like, np.empty_like</code> DO NOT appear<br> to call <code class="notranslate">__array_wrap__</code> on function exit. This only difference that I can see is that these are basically pieces of python code wrapping other code, rather than direct c-level calls, e.g. <code class="notranslate">np.ones_like</code> calls <code class="notranslate">empty</code> a c-level call.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [38]: np.diff(x) Out[38]: array([ 0.05974856, 0.18049927, -0.15645257, 0.08073957, 0.90406691, -0.93369741, 1.28425413, -2.40724147, 0.64683202]) In [39]: np.ones_like(x) Out[39]: array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) In [40]: np.empty_like(x) Out[40]: array([ 6.93756448e-310, 2.35850497e-316, 2.58198627e-316, 2.60377180e-316, 2.59158775e-316, 1.34657789e-316, 1.27678658e-316, 0.00000000e+000, 2.46663143e-316, 1.63041663e-322]) "><pre class="notranslate"><code class="notranslate">In [38]: np.diff(x) Out[38]: array([ 0.05974856, 0.18049927, -0.15645257, 0.08073957, 0.90406691, -0.93369741, 1.28425413, -2.40724147, 0.64683202]) In [39]: np.ones_like(x) Out[39]: array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) In [40]: np.empty_like(x) Out[40]: array([ 6.93756448e-310, 2.35850497e-316, 2.58198627e-316, 2.60377180e-316, 2.59158775e-316, 1.34657789e-316, 1.27678658e-316, 0.00000000e+000, 2.46663143e-316, 1.63041663e-322]) </code></pre></div> <p dir="auto">Is there a reason these do not call <code class="notranslate">__array_wrap__</code> on exit; am I doing something wrong, or is this a bug?</p> <p dir="auto">Some context:</p> <p dir="auto">I have refactored pandas <code class="notranslate">Series</code> object from a <code class="notranslate">ndarray</code> sub-class to a sub-class that is common in the pandas hierarchy (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13763019" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/3482" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/3482/hovercard" href="https://github.com/pandas-dev/pandas/pull/3482">pandas-dev/pandas#3482</a>), for ease of code use/modification, etc. This issue only comes up if the <code class="notranslate">ndarrayness</code> is somewhat abused in that a user is expecting that a <code class="notranslate">Series</code> object that goes into an ndarray comes out with another <code class="notranslate">Series</code> object. (which is the case for nearly every method/ufunc by using either wrapped methods or the <code class="notranslate">__array__/__array_wrap__</code> machinery)</p> <p dir="auto">Thanks for taking a look</p> <p dir="auto">Jeff</p>
1
<h2 dir="auto">Problem Description</h2> <p dir="auto">When running <code class="notranslate">npm start</code> after running <code class="notranslate">npm install</code> in the webpack example, the following error occurs:</p> <p dir="auto"><code class="notranslate">Module build failed: Error: Failed to load plugin material-ui: Cannot find module 'eslint-plugin-material-ui'</code></p> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li><code class="notranslate">git clone --depth 1 https://github.com/callemall/material-ui</code></li> <li><code class="notranslate">cd material-ui/examples/webpack-example/</code></li> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">npm start</code></li> </ol> <p dir="auto">Here's the full output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home # git clone --depth 1 https://github.com/callemall/material-ui Cloning into 'material-ui'... remote: Counting objects: 1706, done. remote: Compressing objects: 100% (1483/1483), done. remote: Total 1706 (delta 208), reused 1022 (delta 171), pack-reused 0 Receiving objects: 100% (1706/1706), 1.56 MiB | 0 bytes/s, done. Resolving deltas: 100% (208/208), done. Checking connectivity... done. /home # cd material-ui/examples/webpack-example/ /home/material-ui/examples/webpack-example # npm install [email protected] /home/material-ui/examples/webpack-example +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | | `-- [email protected] | | | | | `-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | `-- [email protected] `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected] `-- [email protected] npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] /home/material-ui/examples/webpack-example # npm start &gt; [email protected] start /home/material-ui/examples/webpack-example &gt; webpack-dev-server --config webpack-dev-server.config.js --progress --inline --colors 70% 1/1 build moduleshttp://localhost:3000/ webpack result is served from / content is served from src/www Hash: 5d771ea5b5a5046fbf3c Version: webpack 1.12.14 Time: 1109ms chunk {0} app.js (main) 216 kB [rendered] [0] multi main 76 bytes {0} [built] [1 error] [1] (webpack)-dev-server/client?http://localhost:3000 2.67 kB {0} [built] [2] ./~/url/url.js 22.3 kB {0} [built] [3] ./~/url/~/punycode/punycode.js 14.6 kB {0} [built] [4] (webpack)/buildin/module.js 251 bytes {0} [built] [5] ./~/querystring/index.js 127 bytes {0} [built] [6] ./~/querystring/decode.js 2.4 kB {0} [built] [7] ./~/querystring/encode.js 2.09 kB {0} [built] [8] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built] [9] ./~/sockjs-client/lib/transport-list.js 613 bytes {0} [built] [10] ./~/sockjs-client/lib/transport/websocket.js 2.68 kB {0} [built] [11] ./~/process/browser.js 2.06 kB {0} [built] [12] ./~/sockjs-client/lib/utils/event.js 2 kB {0} [built] [13] ./~/sockjs-client/lib/utils/random.js 746 bytes {0} [built] [14] ./~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built] [15] ./~/sockjs-client/lib/utils/url.js 975 bytes {0} [built] [16] ./~/url-parse/index.js 6.55 kB {0} [built] [17] ./~/requires-port/index.js 753 bytes {0} [built] [18] ./~/url-parse/lolcation.js 1.4 kB {0} [built] [19] ./~/querystringify/index.js 1.3 kB {0} [built] [20] ./~/debug/browser.js 3.76 kB {0} [built] [21] ./~/debug/debug.js 4.1 kB {0} [built] [22] ./~/ms/index.js 2.33 kB {0} [built] [23] ./~/inherits/inherits_browser.js 672 bytes {0} [built] [24] ./~/sockjs-client/lib/event/emitter.js 1.11 kB {0} [built] [25] ./~/sockjs-client/lib/event/eventtarget.js 1.75 kB {0} [built] [26] ./~/sockjs-client/lib/transport/browser/websocket.js 58 bytes {0} [built] [27] ./~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built] [28] ./~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built] [29] ./~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built] [30] ./~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built] [31] ./~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built] [32] ./~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built] [33] ./~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built] [34] ./~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.67 kB {0} [built] [35] ./~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built] [36] ./~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built] [37] ./~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built] [38] ./~/sockjs-client/lib/transport/sender/xdr.js 2.42 kB {0} [built] [39] ./~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built] [40] ./~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built] [41] ./~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built] [42] ./~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built] [43] ./~/sockjs-client/lib/transport/iframe.js 3.8 kB {0} [built] [44] ./~/json3/lib/json3.js 43.3 kB {0} [built] [45] (webpack)/buildin/amd-options.js 43 bytes {0} [built] [46] ./~/sockjs-client/lib/version.js 25 bytes {0} [built] [47] ./~/sockjs-client/lib/utils/iframe.js 4.95 kB {0} [built] [48] ./~/sockjs-client/lib/utils/object.js 532 bytes {0} [built] [49] ./~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built] [50] ./~/sockjs-client/lib/transport/receiver/htmlfile.js 2.17 kB {0} [built] [51] ./~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built] [52] ./~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built] [53] ./~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built] [54] ./~/sockjs-client/lib/transport/receiver/jsonp.js 5.49 kB {0} [built] [55] ./~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built] [56] ./~/sockjs-client/lib/main.js 11.9 kB {0} [built] [57] ./~/sockjs-client/lib/shims.js 18.2 kB {0} [built] [58] ./~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built] [59] ./~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built] [60] ./~/sockjs-client/lib/utils/log.js 386 bytes {0} [built] [61] ./~/sockjs-client/lib/event/event.js 485 bytes {0} [built] [62] ./~/sockjs-client/lib/location.js 177 bytes {0} [built] [63] ./~/sockjs-client/lib/event/close.js 295 bytes {0} [built] [64] ./~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built] [65] ./~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built] [66] ./~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built] [67] ./~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built] [68] ./~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built] [69] ./~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built] [70] ./~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built] [71] ./~/sockjs-client/lib/facade.js 723 bytes {0} [built] [72] ./~/strip-ansi/index.js 161 bytes {0} [built] [73] ./~/ansi-regex/index.js 135 bytes {0} [built] [74] (webpack)/hot/dev-server.js 1.85 kB {0} [built] [75] (webpack)/hot/log-apply-result.js 813 bytes {0} [built] [76] (webpack)/hot/only-dev-server.js 2.25 kB {0} [built] ERROR in ./src/app/app.jsx Module build failed: Error: Failed to load plugin material-ui: Cannot find module 'eslint-plugin-material-ui' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object.module.exports.load (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/plugins.js:116:26) at Array.forEach (native) at Object.module.exports.loadAll (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/plugins.js:134:21) at Object.load (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/config-file.js:443:21) at loadConfig (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config.js:67:33) at getLocalConfig (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config.js:129:23) @ multi main webpack: bundle is now VALID.``` Versions -------- This is happening as of e6952c8."><pre class="notranslate"><code class="notranslate">/home # git clone --depth 1 https://github.com/callemall/material-ui Cloning into 'material-ui'... remote: Counting objects: 1706, done. remote: Compressing objects: 100% (1483/1483), done. remote: Total 1706 (delta 208), reused 1022 (delta 171), pack-reused 0 Receiving objects: 100% (1706/1706), 1.56 MiB | 0 bytes/s, done. Resolving deltas: 100% (208/208), done. Checking connectivity... done. /home # cd material-ui/examples/webpack-example/ /home/material-ui/examples/webpack-example # npm install [email protected] /home/material-ui/examples/webpack-example +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | | `-- [email protected] | | | | | `-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | | `-- [email protected] | | | | `-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | `-- [email protected] | | | `-- [email protected] | | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | +-- [email protected] | | | `-- [email protected] | | `-- [email protected] | `-- [email protected] | +-- [email protected] | `-- [email protected] `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | | `-- [email protected] | `-- [email protected] +-- [email protected] | +-- [email protected] | | `-- [email protected] | +-- [email protected] | +-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected] `-- [email protected] npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] /home/material-ui/examples/webpack-example # npm start &gt; [email protected] start /home/material-ui/examples/webpack-example &gt; webpack-dev-server --config webpack-dev-server.config.js --progress --inline --colors 70% 1/1 build moduleshttp://localhost:3000/ webpack result is served from / content is served from src/www Hash: 5d771ea5b5a5046fbf3c Version: webpack 1.12.14 Time: 1109ms chunk {0} app.js (main) 216 kB [rendered] [0] multi main 76 bytes {0} [built] [1 error] [1] (webpack)-dev-server/client?http://localhost:3000 2.67 kB {0} [built] [2] ./~/url/url.js 22.3 kB {0} [built] [3] ./~/url/~/punycode/punycode.js 14.6 kB {0} [built] [4] (webpack)/buildin/module.js 251 bytes {0} [built] [5] ./~/querystring/index.js 127 bytes {0} [built] [6] ./~/querystring/decode.js 2.4 kB {0} [built] [7] ./~/querystring/encode.js 2.09 kB {0} [built] [8] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built] [9] ./~/sockjs-client/lib/transport-list.js 613 bytes {0} [built] [10] ./~/sockjs-client/lib/transport/websocket.js 2.68 kB {0} [built] [11] ./~/process/browser.js 2.06 kB {0} [built] [12] ./~/sockjs-client/lib/utils/event.js 2 kB {0} [built] [13] ./~/sockjs-client/lib/utils/random.js 746 bytes {0} [built] [14] ./~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built] [15] ./~/sockjs-client/lib/utils/url.js 975 bytes {0} [built] [16] ./~/url-parse/index.js 6.55 kB {0} [built] [17] ./~/requires-port/index.js 753 bytes {0} [built] [18] ./~/url-parse/lolcation.js 1.4 kB {0} [built] [19] ./~/querystringify/index.js 1.3 kB {0} [built] [20] ./~/debug/browser.js 3.76 kB {0} [built] [21] ./~/debug/debug.js 4.1 kB {0} [built] [22] ./~/ms/index.js 2.33 kB {0} [built] [23] ./~/inherits/inherits_browser.js 672 bytes {0} [built] [24] ./~/sockjs-client/lib/event/emitter.js 1.11 kB {0} [built] [25] ./~/sockjs-client/lib/event/eventtarget.js 1.75 kB {0} [built] [26] ./~/sockjs-client/lib/transport/browser/websocket.js 58 bytes {0} [built] [27] ./~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built] [28] ./~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built] [29] ./~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built] [30] ./~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built] [31] ./~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built] [32] ./~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built] [33] ./~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built] [34] ./~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.67 kB {0} [built] [35] ./~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built] [36] ./~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built] [37] ./~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built] [38] ./~/sockjs-client/lib/transport/sender/xdr.js 2.42 kB {0} [built] [39] ./~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built] [40] ./~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built] [41] ./~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built] [42] ./~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built] [43] ./~/sockjs-client/lib/transport/iframe.js 3.8 kB {0} [built] [44] ./~/json3/lib/json3.js 43.3 kB {0} [built] [45] (webpack)/buildin/amd-options.js 43 bytes {0} [built] [46] ./~/sockjs-client/lib/version.js 25 bytes {0} [built] [47] ./~/sockjs-client/lib/utils/iframe.js 4.95 kB {0} [built] [48] ./~/sockjs-client/lib/utils/object.js 532 bytes {0} [built] [49] ./~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built] [50] ./~/sockjs-client/lib/transport/receiver/htmlfile.js 2.17 kB {0} [built] [51] ./~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built] [52] ./~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built] [53] ./~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built] [54] ./~/sockjs-client/lib/transport/receiver/jsonp.js 5.49 kB {0} [built] [55] ./~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built] [56] ./~/sockjs-client/lib/main.js 11.9 kB {0} [built] [57] ./~/sockjs-client/lib/shims.js 18.2 kB {0} [built] [58] ./~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built] [59] ./~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built] [60] ./~/sockjs-client/lib/utils/log.js 386 bytes {0} [built] [61] ./~/sockjs-client/lib/event/event.js 485 bytes {0} [built] [62] ./~/sockjs-client/lib/location.js 177 bytes {0} [built] [63] ./~/sockjs-client/lib/event/close.js 295 bytes {0} [built] [64] ./~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built] [65] ./~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built] [66] ./~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built] [67] ./~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built] [68] ./~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built] [69] ./~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built] [70] ./~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built] [71] ./~/sockjs-client/lib/facade.js 723 bytes {0} [built] [72] ./~/strip-ansi/index.js 161 bytes {0} [built] [73] ./~/ansi-regex/index.js 135 bytes {0} [built] [74] (webpack)/hot/dev-server.js 1.85 kB {0} [built] [75] (webpack)/hot/log-apply-result.js 813 bytes {0} [built] [76] (webpack)/hot/only-dev-server.js 2.25 kB {0} [built] ERROR in ./src/app/app.jsx Module build failed: Error: Failed to load plugin material-ui: Cannot find module 'eslint-plugin-material-ui' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object.module.exports.load (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/plugins.js:116:26) at Array.forEach (native) at Object.module.exports.loadAll (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/plugins.js:134:21) at Object.load (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config/config-file.js:443:21) at loadConfig (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config.js:67:33) at getLocalConfig (/home/material-ui/examples/webpack-example/node_modules/eslint/lib/config.js:129:23) @ multi main webpack: bundle is now VALID.``` Versions -------- This is happening as of e6952c8. </code></pre></div>
<h3 dir="auto">Problem description</h3> <p dir="auto">Documentation for AutoComplete props is incorrect. The following passage:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Other properties (not documented) are applied to the root element."><pre class="notranslate"><code class="notranslate">Other properties (not documented) are applied to the root element. </code></pre></div> <p dir="auto">Should read:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Other properties (not documented) are applied to the TextField element."><pre class="notranslate"><code class="notranslate">Other properties (not documented) are applied to the TextField element. </code></pre></div>
0
<p dir="auto">When working on the Multiview PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="436163421" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16316" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16316/hovercard" href="https://github.com/mrdoob/three.js/pull/16316">#16316</a> I'm facing a problem with the shader generation: If you are going to use multiview you need to add an specific directive on the shader: <code class="notranslate">layout(num_views = 2) in;</code>. This will require a FBO with a TextureArray2D attached with two views.</p> <p dir="auto">Typically if we require a multiview session is because we are going to use an <code class="notranslate">ArrayCamera</code> with multiple views (as a CAD software) or we want to render both eyes in VR so we will get a huge improvement. But if we render just 1 view it will add a penalty because we will sill be using a two-dimensional FBO.</p> <p dir="auto">Ideally we could have a "simple" way to compile the same program for different "app's presets" so we could switch between the programs as the presets change.<br> For example we could compile the with or without multiview and use these shaders depending if we are in VR presenting or just painting in 2D to the canvas.</p> <p dir="auto">Is there any ideas or any similar work already done in this area?</p>
<p dir="auto">It would be necessary to have multiple multiple webglprogram on a single material to solve <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="231769076" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11400" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11400/hovercard" href="https://github.com/mrdoob/three.js/issues/11400">#11400</a>.</p> <p dir="auto">This would require several steps to be taken to get this done:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Figuring out what parameters are necessary to generate a webglprogram and use a single parameter source to create it. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="544223064" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/18279" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/18279/hovercard" href="https://github.com/mrdoob/three.js/pull/18279">#18279</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Build single parameter source from 4 parameter sources: material, object, renderer, scene. <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Material parameter: gets regenerated when needsUpdate is true</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Renderer parameter: gets regenerated every render</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Scene parameter: gets regenerated every render</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> object parameter: gets regenerated every ??</li> </ul> </li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Create keys based of the 4 parameter sources to figure out if something changed.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use single parameter source as key to figure out if program needs to be created.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Use single parameter source as key to figure out which program to use.</li> </ul> <p dir="auto">We would also need to track which program gets used by which material to make sure that the programs get deleted when the material gets disposed of.</p>
1
<p dir="auto">pytorch1.6<br> ubuntu20.0<br> code:<br> for i, (inp, labels) in enumerate(tqdm(train_loader)):<br> inp = inp.to(device)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" with torch.cuda.amp.autocast(): preds = model(inp) batch_size = inp.size(0) text, length = converter.encode(labels) preds_size = torch.IntTensor([preds.size(0)] * batch_size) loss = criterion(preds, text, preds_size, length) optimizer.zero_grad() scaler.scale(loss).backward() scaler.step(optimizer) scaler.update()"><pre class="notranslate"><code class="notranslate"> with torch.cuda.amp.autocast(): preds = model(inp) batch_size = inp.size(0) text, length = converter.encode(labels) preds_size = torch.IntTensor([preds.size(0)] * batch_size) loss = criterion(preds, text, preds_size, length) optimizer.zero_grad() scaler.scale(loss).backward() scaler.step(optimizer) scaler.update() </code></pre></div> <p dir="auto">erro:<br> CUDNN_STATUS_BAD_PARAM,<br> but i use normal mode is ok</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mcarilli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcarilli">@mcarilli</a></p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">get cuDNN error: CUDNN_STATUS_BAD_PARAM in cnn-lstm network forward method</p> <h2 dir="auto">To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch from torch import nn, optim from torch.cuda.amp import GradScaler, autocast class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.conv1 = nn.Conv1d(1, 10, 2) self.lstm = nn.LSTM(input_size=10, hidden_size=10, batch_first=True,bidirectional=True) def forward(self, x): x = self.conv1(x) x = x.permute(0, 2, 1) x, _ = self.lstm(x) return x net = Net().cuda() net.train() optimizer = optim.SGD(net.parameters(), lr=1e-3) scaler = GradScaler() optimizer.zero_grad() with autocast(): output = net(torch.rand(10,1,10).cuda())"><pre class="notranslate"><code class="notranslate">import torch from torch import nn, optim from torch.cuda.amp import GradScaler, autocast class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.conv1 = nn.Conv1d(1, 10, 2) self.lstm = nn.LSTM(input_size=10, hidden_size=10, batch_first=True,bidirectional=True) def forward(self, x): x = self.conv1(x) x = x.permute(0, 2, 1) x, _ = self.lstm(x) return x net = Net().cuda() net.train() optimizer = optim.SGD(net.parameters(), lr=1e-3) scaler = GradScaler() optimizer.zero_grad() with autocast(): output = net(torch.rand(10,1,10).cuda()) </code></pre></div> <h2 dir="auto">Environment</h2> <p dir="auto">torch==1.6.0 nightly (2020-04-10)</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mcarilli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcarilli">@mcarilli</a></p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/csarofeen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/csarofeen">@csarofeen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ptrblck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ptrblck">@ptrblck</a></p>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">My TSLint gives an error (see screenshot) after upgrading from 0.21.4 to 0.23.0 axios.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">If in <code class="notranslate">AxiosPromise</code> you pass any value other than <code class="notranslate">unknown</code>, then TSLint throws an error. For example, if I receive a {name: string} object in response, then I cannot use the interface to specify this in <code class="notranslate">AxiosPromise</code>.</p> <h4 dir="auto">Expected behavior</h4> <p dir="auto">I would like to pass the response interface if I know exactly what to expect.</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 0.23.0</li> <li>Node.js Version 16.9.0</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/87366536/137320916-606b5aaa-709c-403f-890b-de844dbee12d.png"><img src="https://user-images.githubusercontent.com/87366536/137320916-606b5aaa-709c-403f-890b-de844dbee12d.png" alt="Screenshot from 2021-10-14 15-51-55" style="max-width: 100%;"></a></p>
<h4 dir="auto">Describe the bug</h4> <p dir="auto"><a title="CVE-2021-3749" data-hovercard-type="advisory" data-hovercard-url="/advisories/GHSA-cph5-m8f7-6c5x/hovercard" href="https://github.com/advisories/GHSA-cph5-m8f7-6c5x">CVE-2021-3749</a> describing a severity 7.5 Regex DoS vulnerability<br> All our builds failing as a result of HIGH rating during security scan.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto"><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3749" rel="nofollow">https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3749</a></p> <h4 dir="auto">Expected behavior</h4> <p dir="auto">Expect there to not be a security hole (sorry - bot forces me to say something)</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 0.21.1</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">N/A see CVE</p>
0
<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: 08/05/2020 18:14:55<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>
<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">Currently loss functions does not allow weighting each instance differently. For example, in machine translation, we don't want to calculate losses for PAD labels. This can be done with cross entropy by specifying label weights, but can't be done with MSELoss (which is used to train critic/baseline model if we apply RL to MT). Manually writing a new loss function is possible, but having this feature is very convenient. The weights are better be per-instance rather than per-label.</p>
<p dir="auto">It would be useful to have losses that return a batch of losses, rather than summing/mean-ing them. This is useful e.g. for adding weights on the loss that vary for each batch element, and for masking losses on the outputs of variable-length RNNs.</p> <p dir="auto">Most common losses can be emulated using element-wise arithmetic (or in the case of the categorical NLL, a Gather operation), and that was my standard solution in lua torch. However, having them built-in is arguably cleaner and leads to more consistent code for the end user.</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I've forked the geofencing example written by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bkonyi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bkonyi">@bkonyi</a> at <a href="https://github.com/MaikuB/FlutterGeofencing">https://github.com/MaikuB/FlutterGeofencing</a><br> (edit: apologies, I've deleted the fork but I imagine it's not needed anymore. If it is then let me know) to demonstrate this</p> <ol dir="auto"> <li>Follow the steps for enabling a plugin to execute headless Dart code as per <a href="https://medium.com/flutter-io/executing-dart-in-the-background-with-flutter-plugins-and-geofencing-2b3e40a1a124" rel="nofollow">https://medium.com/flutter-io/executing-dart-in-the-background-with-flutter-plugins-and-geofencing-2b3e40a1a124</a>. This will involve writing a custom Application class with overrides and a service that have code where a <code class="notranslate">PluginRegistrantCallback</code> will <code class="notranslate">registerWith</code> the plugin registry of a background view (e.g. see <a href="https://github.com/MaikuB/FlutterGeofencing/blob/master/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingService.kt">here</a>. This typically involves a "foreground" platform channel (for lack of a better description) and a background platform channel being established.</li> <li>Add code on the Android platform side that will execute Dart code normally (i.e. the "non-headless" way) using the following <a href="https://docs.flutter.io/javadoc/io/flutter/plugin/common/MethodChannel.html#invokeMethod-java.lang.String-java.lang.Object-" rel="nofollow">channel.invokeMethod(...)</a> and handle the call on the Flutter side. In the forked repository linked above, whenever a geofence is registered, the Android side will call <code class="notranslate">channel.invokeMethod("register", null)</code> (see <a href="https://github.com/MaikuB/FlutterGeofencing/blob/5f171bcc6a01f9cc4d936983437ab7dba56ca20e/android/src/main/kotlin/io/flutter/plugins/geofencing/GeofencingPlugin.kt#L90">here</a>. This caught in the Flutter to call print the name of the method called, which would be "register" in this case (see <a href="https://github.com/MaikuB/FlutterGeofencing/blob/5f171bcc6a01f9cc4d936983437ab7dba56ca20e/lib/src/geofencing.dart#L163">here</a></li> <li>Run the app and invoke code that execute the logic written in step 2 and notice the Flutter side will catch that a method got called from the platform side. You should <code class="notranslate">method called: register</code> in the debugger output</li> <li>Now invoke logic that triggers headless execution</li> <li>Invoke the logic that was done in step 2 again and the Flutter side doesn't get notification a method got called from the platform side i.e. <code class="notranslate">method called: register</code> isn't displayed again</li> </ol> <p dir="auto">I noticed this whilst incorporating headless execution into my own plugin for notifications. It seems like once a background service calls <a href="https://docs.flutter.io/javadoc/io/flutter/plugin/common/PluginRegistry.PluginRegistrantCallback.html#registerWith-io.flutter.plugin.common.PluginRegistry-" rel="nofollow">this method</a> that enables headless Dart code to fire code that relies on other plugin, calling <code class="notranslate">invokeMethod</code> on the foreground platform channel no longer works. Am not sure what the solution is here or perhaps there's an issue with the engine itself</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale en-AU) • Flutter version 0.9.4 at /Users/michaelbui/flutter • Framework revision f37c235c32 (5 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 27.0.3) • Android SDK at /Users/michaelbui/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 27.0.3 • ANDROID_HOME = /Users/michaelbui/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] IntelliJ IDEA Community Edition (version 2017.3.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 23.0.2 • Dart plugin version 173.4700 [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [✓] Connected devices (1 available) • Pixel 2 XL • 711KPXV0530842 • android-arm64 • Android 9 (API 28) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.14 18A391, locale en-AU) • Flutter version 0.9.4 at /Users/michaelbui/flutter • Framework revision f37c235c32 (5 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 27.0.3) • Android SDK at /Users/michaelbui/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 27.0.3 • ANDROID_HOME = /Users/michaelbui/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] IntelliJ IDEA Community Edition (version 2017.3.5) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 23.0.2 • Dart plugin version 173.4700 [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [✓] Connected devices (1 available) • Pixel 2 XL • 711KPXV0530842 • android-arm64 • Android 9 (API 28) • No issues found! </code></pre></div>
<p dir="auto">Attempting to use a plugin in the context of a background isolate spawned by another plugin will cause failures when making calls over method channels. On Android, the <code class="notranslate">PluginRegistrant</code> interface is used to allow for plugins to register the application's plugins with a <code class="notranslate">FlutterNativeView</code> but no equivalent is available on iOS.</p>
1
<p dir="auto">I'm in a LAN, with last windows build from <a href="http://atom.someguy123.com/#sthash.eU1lJdcA.dpbs" rel="nofollow">http://atom.someguy123.com/#sthash.eU1lJdcA.dpbs</a></p> <p dir="auto">System is a Windows7 x64.</p> <p dir="auto">If I open a local file (desktop for example) loads correctly the file.<br> If I open a remote file (on the private network \172.28.26.*) treeview sees all the files and folders, when I click on a file it opens a tab but doesn't load any text (blank)<br> If I map the remote folder ad a network drive (on I:/) and I open the same directory, files load correctly.</p>
<p dir="auto">OS: Windows 7<br> Atom Version: 0.95.0-3f0640f</p> <p dir="auto">Hosting files on a network drive (i.e. \network\private\myfiles) and opening files in atom does not show anything. Files list on left pane and a tab opens up in editor, but tab is empty and shows nothing.</p> <p dir="auto">Additional Note: I tested using a mapped drive and it worked. It appears there's an issue running atom in Windows and trying to open files on a network path.</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/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.9-SNAPSHOT</li> <li>Operating System version: MacOS 10.14.5</li> <li>Java version: 11.0.2</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>run the org.apache.dubbo.demo.provider.Application in module 'dubbo-demo-xml'</li> <li>run the org.apache.dubbo.demo.consumer.Application in module 'dubbo-demo-xml'</li> <li>Caused by: java.lang.NullPointerException<br> at org.apache.dubbo.registry.client.InstanceAddressURL.addConsumerParams(InstanceAddressURL.java:284)</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">consumer run normally and receives response from provider</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">The NullPointerException occurs .</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoService': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:176) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1827) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1265) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1115) at org.apache.dubbo.demo.consumer.Application.main(Application.java:34) Caused by: java.lang.NullPointerException at org.apache.dubbo.registry.client.InstanceAddressURL.addConsumerParams(InstanceAddressURL.java:284) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.toInvokers(ServiceDiscoveryRegistryDirectory.java:157) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.refreshInvoker(ServiceDiscoveryRegistryDirectory.java:109) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.notify(ServiceDiscoveryRegistryDirectory.java:89) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$notifyAddressChanged$3(ServiceInstancesChangedListener.java:182) at java.util.HashMap.forEach(HashMap.java:1289) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.notifyAddressChanged(ServiceInstancesChangedListener.java:180) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:145) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.lambda$subscribeURLs$3(ServiceDiscoveryRegistry.java:323) at java.lang.Iterable.forEach(Iterable.java:75) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribeURLs(ServiceDiscoveryRegistry.java:321) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.doSubscribe(ServiceDiscoveryRegistry.java:266) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribe(ServiceDiscoveryRegistry.java:255) at org.apache.dubbo.registry.ListenerRegistryWrapper.subscribe(ListenerRegistryWrapper.java:105) at org.apache.dubbo.registry.integration.DynamicDirectory.subscribe(DynamicDirectory.java:137) at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getServiceDiscoveryInvoker(InterfaceCompatibleRegistryProtocol.java:93) at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.doRefer(InterfaceCompatibleRegistryProtocol.java:71) at org.apache.dubbo.registry.client.RegistryProtocol.refer(RegistryProtocol.java:452) at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:72) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:161) at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:366) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:304) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:204) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:68) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169) ... 7 more"><pre class="notranslate"><code class="notranslate">Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoService': FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:176) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1827) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1265) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1115) at org.apache.dubbo.demo.consumer.Application.main(Application.java:34) Caused by: java.lang.NullPointerException at org.apache.dubbo.registry.client.InstanceAddressURL.addConsumerParams(InstanceAddressURL.java:284) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.toInvokers(ServiceDiscoveryRegistryDirectory.java:157) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.refreshInvoker(ServiceDiscoveryRegistryDirectory.java:109) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.notify(ServiceDiscoveryRegistryDirectory.java:89) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$notifyAddressChanged$3(ServiceInstancesChangedListener.java:182) at java.util.HashMap.forEach(HashMap.java:1289) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.notifyAddressChanged(ServiceInstancesChangedListener.java:180) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:145) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.lambda$subscribeURLs$3(ServiceDiscoveryRegistry.java:323) at java.lang.Iterable.forEach(Iterable.java:75) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribeURLs(ServiceDiscoveryRegistry.java:321) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.doSubscribe(ServiceDiscoveryRegistry.java:266) at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribe(ServiceDiscoveryRegistry.java:255) at org.apache.dubbo.registry.ListenerRegistryWrapper.subscribe(ListenerRegistryWrapper.java:105) at org.apache.dubbo.registry.integration.DynamicDirectory.subscribe(DynamicDirectory.java:137) at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getServiceDiscoveryInvoker(InterfaceCompatibleRegistryProtocol.java:93) at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.doRefer(InterfaceCompatibleRegistryProtocol.java:71) at org.apache.dubbo.registry.client.RegistryProtocol.refer(RegistryProtocol.java:452) at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:72) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:161) at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:366) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:304) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:204) at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:68) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:169) ... 7 more </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 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 10.15.3</li> <li>Java version: 1.8.241</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">在dubbo和dubbo-admin中创建MetadataIdentifier对象的参数不统一,导致admin一直提示"无元数据信息,请升级至Dubbo2.7及以上版本,或者查看application.properties中关于config center的配置,详见 这里"</p> <p dir="auto">org.apache.dubbo.metadata.store.RemoteWritableMetadataService#83</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="getMetadataReport().storeProviderMetadata(new MetadataIdentifier(providerUrl.getServiceInterface(), providerUrl.getParameter(VERSION_KEY), providerUrl.getParameter(GROUP_KEY), null, null), serviceDefinition);"><pre class="notranslate"><span class="pl-en">getMetadataReport</span>().<span class="pl-en">storeProviderMetadata</span>(<span class="pl-k">new</span> <span class="pl-smi">MetadataIdentifier</span>(<span class="pl-s1">providerUrl</span>.<span class="pl-en">getServiceInterface</span>(), <span class="pl-s1">providerUrl</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">VERSION_KEY</span>), <span class="pl-s1">providerUrl</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">GROUP_KEY</span>), <span class="pl-c1">null</span>, <span class="pl-c1">null</span>), <span class="pl-s1">serviceDefinition</span>);</pre></div> <p dir="auto">org.apache.dubbo.admin.controller.ServiceController#91</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="MetadataIdentifier identifier = new MetadataIdentifier(interfaze, version, group, Constants.PROVIDER_SIDE, application);"><pre class="notranslate"><span class="pl-smi">MetadataIdentifier</span> <span class="pl-s1">identifier</span> = <span class="pl-k">new</span> <span class="pl-smi">MetadataIdentifier</span>(<span class="pl-s1">interfaze</span>, <span class="pl-s1">version</span>, <span class="pl-s1">group</span>, <span class="pl-smi">Constants</span>.<span class="pl-c1">PROVIDER_SIDE</span>, <span class="pl-s1">application</span>);</pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jonchase" rel="nofollow">Jon Chase</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3954?redirect=false" rel="nofollow">SPR-3954</a></strong> and commented</p> <p dir="auto">Here's the forum thread that covers the bug: <a href="http://forum.springframework.org/showthread.php?t=44442" rel="nofollow">http://forum.springframework.org/showthread.php?t=44442</a></p> <p dir="auto">Basically, when using the Spring MVC JSP forms taglib in FreeMarker templates, binding errors are not output by the &lt;form:errors /&gt; tag. Other tags seem to work fine, however.</p> <p dir="auto">I'll attach an example project that shows the issue.</p> <p dir="auto">I've tried stepping through things in the debugger to see what's happening. The error message is there, and it's being written to a buffer inside one of hte Spring custom tags (although I was kind of lost at that point:)), but it doesn't seem to make its way into the output.</p> <p dir="auto">Interestingly, if I use the form:errorssome message&lt;/form:errors&gt; variation, the "some message" is printed out (although it's not possible to get the real errors, so this doesn't help much, just shows that the error is certainly "there"). Also, I can use the FreeMarker macors that come with Spring MVC (bind and showErrors) to display the error message.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.6, 2.1 M4</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12981/springjsp.zip" rel="nofollow">springjsp.zip</a> (<em>6.27 MB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077603" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8110" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8110/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8110">#8110</a> form:errors and form:option JSP tags don't render in FreeMarker templates (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8683?redirect=false" rel="nofollow">SPR-8683</a></strong> and commented</p> <p dir="auto">AntPathMatcher.AntPatternComparator algorithm wrong for hierarchical matches, Consider an incoming request</p> <p dir="auto">GET /hotels/foo/rooms</p> <p dir="auto">and two patterns that match</p> <p dir="auto">1: /hotels/{hotel}/**<br> 2: /**</p> <p dir="auto">Intuitively 1 is more specific than 2, so the comparator should return negative with compare(1,2) (i.e. 1&lt;2). Unfortunately this is not the case because the comparator thinks that 2 is more specific because it has fewer matching points (wildcards + brackets).</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.6</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398158936" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15181" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15181/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15181">#15181</a> Assign lowest priority to "/<strong>" in AntPathMatcher (_</strong>"duplicates"**_)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112406" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13002" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13002/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13002">#13002</a> AntPatternComparator prefers a less specific match when brackets occur</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398102244" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11407" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11407/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11407">#11407</a> RequestMapping with 3 PathVariable doesn't work</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398107712" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12245" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12245/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12245">#12245</a> Determination of the best pattern match to map a handler to an URL</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/876f756e062339a29b7e5591e9dd6b9fc9ed4c4c/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/876f756e062339a29b7e5591e9dd6b9fc9ed4c4c">spring-attic/spring-framework-issues@<tt>876f756</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-attic/spring-framework-issues/commit/4332c1bb16ebae12602775a4d9780c75db12ea3e/hovercard" href="https://github.com/spring-attic/spring-framework-issues/commit/4332c1bb16ebae12602775a4d9780c75db12ea3e">spring-attic/spring-framework-issues@<tt>4332c1b</tt></a></p> <p dir="auto">6 votes, 10 watchers</p>
0
<ul dir="auto"> <li>Electron version:<br> 1.6.6</li> <li>Operating system:<br> Linux Slackware x64</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Normal install</p> <h3 dir="auto">Actual behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm -g install electron /usr/local/bin/electron -&gt; /usr/local/lib/node_modules/electron/cli.js &gt; [email protected] postinstall /usr/local/lib/node_modules/electron &gt; node install.js /usr/local/lib/node_modules/electron/install.js:47 throw err ^ Error: EACCES: permission denied, open '/root/.electron/electron-v1.6.6-linux-x64.zip' at Error (native) npm ERR! Linux 4.1.13 npm ERR! argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;-g&quot; &quot;install&quot; &quot;electron&quot; npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! code ELIFECYCLE npm ERR! [email protected] postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /tmp/electron-packager/linux-x64/npm-debug.log"><pre class="notranslate"><code class="notranslate">npm -g install electron /usr/local/bin/electron -&gt; /usr/local/lib/node_modules/electron/cli.js &gt; [email protected] postinstall /usr/local/lib/node_modules/electron &gt; node install.js /usr/local/lib/node_modules/electron/install.js:47 throw err ^ Error: EACCES: permission denied, open '/root/.electron/electron-v1.6.6-linux-x64.zip' at Error (native) npm ERR! Linux 4.1.13 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "electron" npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! code ELIFECYCLE npm ERR! [email protected] postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /tmp/electron-packager/linux-x64/npm-debug.log </code></pre></div> <h3 dir="auto">How to reproduce</h3> <p dir="auto">As root: npm install -g electron</p>
<p dir="auto">我想通过快捷方式来获取目标路径的参数,是否有详细的API ,或者代码,想通过参数来打开软件跳转到不同的页面,请问,大大们是否有相关的质料。</p> <p dir="auto">I want to get the parameters of the target path through the shortcut. Do you have a detailed API or code to open the software to jump to different pages through the parameters? Could you please tell me if you have the relevant materials?</p> <p dir="auto">Is there a demo?</p>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I am working on a Three.js project which requires thousands of unique meshes to be rendered. Since number of objects have big impact on rendering performance I merged those objects into single mesh (manually, not using geometry.merge() function) and created "pseudo objects" which keeps parent mesh reference and index data (faceIndexStart, faceIndexEnd) so that I can manipulate color and position of individual objects using those references. (I could not find a built in way to do that, please let me know if there is one). At the end I achieved a super performant scene.</p> <p dir="auto">However, I would like to manage visibility of those individual objects, too. I know I can use multimaterial but this will increase number of drawcalls which will have random effect on the performance.</p> <p dir="auto">For example; let's say I have a model with 10000 individual objects and I create single mesh by merging position and index vectors and create 10000 pseudo objects which just keep a reference to this mesh and information about this individual objects face indices. If I use multimaterial and hide 2000 of these objects during runtime. In the best case scenario those objects will be continuous in my buffers and I will have just one more draw call but if they are at random places I can have up to 1+2000*2 draw calls. One may suggest sortByMaterial function in that case but than it will mess up with order of my buffer attributes and my pseudo objects will be useless. (Not sure, correct me if I am wrong);</p> <h5 dir="auto">Suggestion</h5> <p dir="auto">Three.js already supports everything neccessary to create single mesh out of lot's of meshes and pseudo meshes to manipulate position data of every single mesh. I can also manipulate color of those individual objects using vertex colors. It would be really helpful if materials could have THREE.faceVisibility or THREE.vertexVisibility as a value for visibility property and shader code to include logic to discard fragments based on "visibility" attribute value if one of those values I suggested passed on visibility property of a material.</p> <p dir="auto">Currently I am overriding MeshPhong shader code by string replacements to achieve this desired solution and it feels dirty/hacky. This suggestion seems to me easy to implement and doesn't seem to have any downsides.</p> <p dir="auto">EDIT: Here is the ugly/hacky thing I do:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var vert = THREE.ShaderChunk['meshphong_vert']; THREE.ShaderChunk['meshphong_vert'] = `attribute float hidden; varying float vhidden; ` + vert.replace('void main() {', `void main() { vhidden=hidden;`); var frag = THREE.ShaderChunk['meshphong_frag']; THREE.ShaderChunk['meshphong_frag'] = `varying float vhidden; ` + frag.replace('void main() {', `void main() { if(vhidden&gt;0.0) { discard; }`); THREE.ShaderLib['phong'] = { uniforms: THREE.UniformsUtils.merge([ THREE.UniformsLib['common'], THREE.UniformsLib['aomap'], THREE.UniformsLib['lightmap'], THREE.UniformsLib['emissivemap'], THREE.UniformsLib['bumpmap'], THREE.UniformsLib['normalmap'], THREE.UniformsLib['displacementmap'], THREE.UniformsLib['fog'], THREE.UniformsLib['lights'], { &quot;emissive&quot;: { value: new THREE.Color(0x000000) }, &quot;specular&quot;: { value: new THREE.Color(0x111111) }, &quot;shininess&quot;: { value: 30 } } ]), vertexShader: THREE.ShaderChunk['meshphong_vert'], fragmentShader: THREE.ShaderChunk['meshphong_frag'] };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">vert</span> <span class="pl-c1">=</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_vert'</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_vert'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s">`attribute float hidden;</span> <span class="pl-s">varying float vhidden;</span> <span class="pl-s">`</span> <span class="pl-c1">+</span> <span class="pl-s1">vert</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-s">'void main() {'</span><span class="pl-kos">,</span> <span class="pl-s">`void main() {</span> <span class="pl-s">vhidden=hidden;`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">frag</span> <span class="pl-c1">=</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_frag'</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_frag'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s">`varying float vhidden;</span> <span class="pl-s">`</span> <span class="pl-c1">+</span> <span class="pl-s1">frag</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-s">'void main() {'</span><span class="pl-kos">,</span> <span class="pl-s">`void main() {</span> <span class="pl-s">if(vhidden&gt;0.0)</span> <span class="pl-s">{</span> <span class="pl-s"> discard;</span> <span class="pl-s">}`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderLib</span><span class="pl-kos">[</span><span class="pl-s">'phong'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">uniforms</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsUtils</span><span class="pl-kos">.</span><span class="pl-en">merge</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'common'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'aomap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'lightmap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'emissivemap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'bumpmap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'normalmap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'displacementmap'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'fog'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">UniformsLib</span><span class="pl-kos">[</span><span class="pl-s">'lights'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"emissive"</span>: <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Color</span><span class="pl-kos">(</span><span class="pl-c1">0x000000</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"specular"</span>: <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Color</span><span class="pl-kos">(</span><span class="pl-c1">0x111111</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"shininess"</span>: <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-c1">30</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">vertexShader</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_vert'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">fragmentShader</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">ShaderChunk</span><span class="pl-kos">[</span><span class="pl-s">'meshphong_frag'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I'm working with a set of models that use vertex color alpha. Now that threejs uses buffer geometry almost exclusively, adding in vertex color alpha is pretty simple, and it would be nice to see these changes upstream. The changes mostly involve declaring color as a vec4 instead of vec3.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'#ifdef USE_COLOR', ' attribute vec4 color;', '#endif',"><pre class="notranslate"><code class="notranslate">'#ifdef USE_COLOR', ' attribute vec4 color;', '#endif', </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var color_fragment = ` #ifdef USE_COLOR diffuseColor.rgb *= vColor.xyz; diffuseColor.a *= vColor.a; #endif `; var color_pars_fragment = &quot;#ifdef USE_COLOR\n\tvarying vec4 vColor;\n#endif\n&quot;; var color_pars_vertex = &quot;#ifdef USE_COLOR\n\tvarying vec4 vColor;\n#endif&quot;; var color_vertex = &quot;#ifdef USE_COLOR\n\tvColor.xyzw = color.xyzw;\n#endif&quot;;"><pre class="notranslate"><code class="notranslate">var color_fragment = ` #ifdef USE_COLOR diffuseColor.rgb *= vColor.xyz; diffuseColor.a *= vColor.a; #endif `; var color_pars_fragment = "#ifdef USE_COLOR\n\tvarying vec4 vColor;\n#endif\n"; var color_pars_vertex = "#ifdef USE_COLOR\n\tvarying vec4 vColor;\n#endif"; var color_vertex = "#ifdef USE_COLOR\n\tvColor.xyzw = color.xyzw;\n#endif"; </code></pre></div> <h5 dir="auto">Example Without Vertex Color Alpha</h5> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ae53c5fa1976a5da4507c19ac13659eabc86df23b9d3e3d73d35c1d28da37c12/68747470733a2f2f692e696d6775722e636f6d2f6c633576764b782e706e67"><img src="https://camo.githubusercontent.com/ae53c5fa1976a5da4507c19ac13659eabc86df23b9d3e3d73d35c1d28da37c12/68747470733a2f2f692e696d6775722e636f6d2f6c633576764b782e706e67" alt="Imgur" data-canonical-src="https://i.imgur.com/lc5vvKx.png" style="max-width: 100%;"></a></p> <h5 dir="auto">Example With Vertex Color Alpha</h5> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f26394a6ca5eb850d82a84bb76424803226cf1889fd0b11515f64f21f346a28e/68747470733a2f2f692e696d6775722e636f6d2f526c75325749702e6a7067"><img src="https://camo.githubusercontent.com/f26394a6ca5eb850d82a84bb76424803226cf1889fd0b11515f64f21f346a28e/68747470733a2f2f692e696d6775722e636f6d2f526c75325749702e6a7067" alt="Imgur" data-canonical-src="https://i.imgur.com/Rlu2WIp.jpg" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li>[ x ] Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r104</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
1