text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
df = pd.DataFrame({'x': [1, 2, 3], 'y': [2, 3, 4]})
df.eval('(x - y)').std() # evaluates
df.eval('(x - y).std()') # exception: AttributeError: 'BinOp' object has no attribute 'value'
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'x'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'y'</span>: [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>]})
<span class="pl-s1">df</span>.<span class="pl-en">eval</span>(<span class="pl-s">'(x - y)'</span>).<span class="pl-en">std</span>() <span class="pl-c"># evaluates</span>
<span class="pl-s1">df</span>.<span class="pl-en">eval</span>(<span class="pl-s">'(x - y).std()'</span>) <span class="pl-c"># exception: AttributeError: 'BinOp' object has no attribute 'value'</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I expected this type of <code class="notranslate">eval()</code> expression to work correctly. I'm not sure how to justify the behavior other than it being more intuitive and practical.</p>
<p dir="auto">I searched and was able to find similar errors, but the cause seems to be with <code class="notranslate">UnaryOp</code> instead of <code class="notranslate">BinOp</code>:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228886728" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/16363" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/16363/hovercard" href="https://github.com/pandas-dev/pandas/issues/16363">#16363</a></li>
</ul>
<h4 dir="auto">Expected Output</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import pandas as pd
>>> df = pd.DataFrame({'x': [1, 2, 3], 'y': [2, 3, 4]})
>>> df.eval('(x - y)').std() # evaluates
0.0
>>> df.eval('(x - y).std()') # should also evaluate
0.0"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-c1">>></span><span class="pl-c1">></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-s">'x'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">'y'</span>: [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>]})
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">eval</span>(<span class="pl-s">'(x - y)'</span>).<span class="pl-en">std</span>() <span class="pl-c"># evaluates</span>
<span class="pl-c1">0.0</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">eval</span>(<span class="pl-s">'(x - y).std()'</span>) <span class="pl-c"># should also evaluate</span>
<span class="pl-c1">0.0</span></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.3.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.13.0-32-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: en_US.UTF-8</p>
<p dir="auto">pandas: 0.22.0<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 32.3.1<br>
Cython: None<br>
numpy: 1.14.0<br>
scipy: None<br>
pyarrow: None<br>
xarray: None<br>
IPython: None<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: 2.2.0<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.999999999<br>
sqlalchemy: 1.2.2<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.10<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def test_unary():
df = pd.DataFrame({'x': np.array([0.11, 0], dtype=np.float32)})
res = df.eval('(x > 0.1) | (x < -0.1)')
assert np.array_equal(res, np.array([True, False])), res"><pre class="notranslate"><code class="notranslate">def test_unary():
df = pd.DataFrame({'x': np.array([0.11, 0], dtype=np.float32)})
res = df.eval('(x > 0.1) | (x < -0.1)')
assert np.array_equal(res, np.array([True, False])), res
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">This is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109686658" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/11235" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/11235/hovercard" href="https://github.com/pandas-dev/pandas/issues/11235">#11235</a>.<br>
on python 3.6, pandas 20.1, this raises an error the traceback ends with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File ".../envs/py3/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 370, in _maybe_downcast_constants
name = self.env.add_tmp(np.float32(right.value))
AttributeError: 'UnaryOp' object has no attribute 'value'"><pre class="notranslate"><code class="notranslate"> File ".../envs/py3/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 370, in _maybe_downcast_constants
name = self.env.add_tmp(np.float32(right.value))
AttributeError: 'UnaryOp' object has no attribute 'value'
</code></pre></div>
<p dir="auto">In that case the right is -(0.1)</p>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.0-49-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: 27.2.0<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: None<br>
patsy: None<br>
dateutil: 2.6.0<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<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: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details>
<p dir="auto">Another example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> df = pd.DataFrame({'x':[1,2,3,4,5]})
>>> df.eval('x.shift(-1)')"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></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-s">'x'</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>]})
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">eval</span>(<span class="pl-s">'x.shift(-1)'</span>)</pre></div> | 1 |
<p dir="auto">main.js like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // and load the index.html of the app.
// mainWindow.loadFile('index.html')
const html = `
<!DOCTYPE html>
<html>
<body>
<h1>TEST</h1>
</body>
</html>
`
mainWindow.loadURL(`data:text/html;charset=utf-8,${encodeURIComponent(html)}`, {
baseURLForDataURL: 'file:///index.html'
})"><pre class="notranslate"> <span class="pl-c">// and load the index.html of the app.</span>
<span class="pl-c">// mainWindow.loadFile('index.html')</span>
<span class="pl-k">const</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-s">`</span>
<span class="pl-s"> <!DOCTYPE html></span>
<span class="pl-s"> <html></span>
<span class="pl-s"> <body></span>
<span class="pl-s"> <h1>TEST</h1></span>
<span class="pl-s"> </body></span>
<span class="pl-s"> </html></span>
<span class="pl-s"> `</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">`data:text/html;charset=utf-8,<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-en">encodeURIComponent</span><span class="pl-kos">(</span><span class="pl-s1">html</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">baseURLForDataURL</span>: <span class="pl-s">'file:///index.html'</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">crash info like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'D:\\nodejs\\node.exe',
1 verbose cli 'D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\electron\srs\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files\TortoiseGit\bin;D:\Program Files\erl8.3\bin;D:\nodejs;D:\nodejs\node_modules;D:\Program Files\Java\jdk1.8.0_231\bin;D:\Program Files\Java\jre1.8.0_231\bin;D:\nodejs\;d:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;C:\Users\admin\.windows-build-tools\python27\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\npm;d:\Programs\Microsoft VS Code\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;
9 verbose lifecycle [email protected]~start: CWD: D:\electron\srs
10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'electron .' ]
11 silly lifecycle [email protected]~start: Returned: code: 2147483651 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack Exit status 2147483651
13 verbose stack at EventEmitter.<anonymous> (D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid [email protected]
15 verbose cwd D:\electron\srs
16 verbose Windows_NT 10.0.18362
17 verbose argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
18 verbose node v12.13.1
19 verbose npm v6.12.1
20 error code ELIFECYCLE
21 error errno 2147483651
22 error [email protected] start: `electron .`
22 error Exit status 2147483651
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2147483651, true ]
"><pre lang="log" class="notranslate"><code class="notranslate">
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'D:\\nodejs\\node.exe',
1 verbose cli 'D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\electron\srs\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files\TortoiseGit\bin;D:\Program Files\erl8.3\bin;D:\nodejs;D:\nodejs\node_modules;D:\Program Files\Java\jdk1.8.0_231\bin;D:\Program Files\Java\jre1.8.0_231\bin;D:\nodejs\;d:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;C:\Users\admin\.windows-build-tools\python27\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\npm;d:\Programs\Microsoft VS Code\bin;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;
9 verbose lifecycle [email protected]~start: CWD: D:\electron\srs
10 silly lifecycle [email protected]~start: Args: [ '/d /s /c', 'electron .' ]
11 silly lifecycle [email protected]~start: Returned: code: 2147483651 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack Exit status 2147483651
13 verbose stack at EventEmitter.<anonymous> (D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid [email protected]
15 verbose cwd D:\electron\srs
16 verbose Windows_NT 10.0.18362
17 verbose argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
18 verbose node v12.13.1
19 verbose npm v6.12.1
20 error code ELIFECYCLE
21 error errno 2147483651
22 error [email protected] start: `electron .`
22 error Exit status 2147483651
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2147483651, true ]
</code></pre></div> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>10.1.5</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.15.7</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>unknow</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">on Mac os,A contex menu with disabled=true should disabled this menu</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">on Mac os, A contex menu item without role can be disable ,but if a menu item with role="selectAll" we can't disable it</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">please load this gist in fiddle <a href="https://gist.github.com/nieheyong/a460f9ed84d9b65dea3df4118a7d5dbc">https://gist.github.com/nieheyong/a460f9ed84d9b65dea3df4118a7d5dbc</a> ,after launch it,click mouse right and see contex menu</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9368693/109751777-24017000-7c1a-11eb-8e91-ce3ec5f2fc2c.png"><img src="https://user-images.githubusercontent.com/9368693/109751777-24017000-7c1a-11eb-8e91-ce3ec5f2fc2c.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3> | 0 |
<p dir="auto">On Firefox 24.0a2 none of the sidebar anchor links work. Clicking any of them fires a number of errors (in groups of 6, far as I can tell) in the console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[09:53:07.151] Empty string passed to getElementById(). @ http://twitter.github.io/bootstrap/assets/js/jquery.js:3"><pre class="notranslate"><code class="notranslate">[09:53:07.151] Empty string passed to getElementById(). @ http://twitter.github.io/bootstrap/assets/js/jquery.js:3
</code></pre></div> | <p dir="auto">I am using FireFox 22.0 and Chrome 27.0.1453.110.</p>
<p dir="auto">For example, in this page, <a href="http://twitter.github.io/bootstrap/getting-started/" rel="nofollow">http://twitter.github.io/bootstrap/getting-started/</a></p>
<p dir="auto">If I hit "License FAQs" on the sidebar in Chrome, the page will directly scroll to the corresponding section for me, just like in the previous version of Bootstrap.</p>
<p dir="auto">However if I do this in FireFox, the click on the menu has no effect and the page won't scroll to the "License FAQs" section.</p>
<p dir="auto">Is this an issue of the documentation page only or the library itself?</p> | 1 |
<p dir="auto">The corr() method attached to DataFrames is a great way to get a matrix of correlation coefficients. But for the Kendall and Spearman options, the p-value is discarded:</p>
<p dir="auto"><a href="https://github.com/pydata/pandas/blob/8ac0e11b59b65f0ac898dca2beebde5f87836649/pandas/core/nanops.py#L510-L517">https://github.com/pydata/pandas/blob/8ac0e11b59b65f0ac898dca2beebde5f87836649/pandas/core/nanops.py#L510-L517</a></p>
<p dir="auto">For a function called corr() this would certainly be expected behavior, but the problem remains that there is no other method (as far as I've been able to find) to get those significance values without going back to scipy and doing it myself.</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="data = pd.read_stata("myfile.dta")
data = data.set_index(['country', 'year'])
data_delta = data.groupby('count').diff()"><pre class="notranslate"><span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_stata</span>(<span class="pl-s">"myfile.dta"</span>)
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'country'</span>, <span class="pl-s">'year'</span>])
<span class="pl-s1">data_delta</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'count'</span>).<span class="pl-en">diff</span>()</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Hi everyone! My first bug report :)</p>
<p dir="auto">I'm having some problems with the .diff() argument, and first thought I was just being an idiot, but now I'm fairly confident I've isolated the bug.</p>
<p dir="auto">Note, when I run this manually line-by-line it works fine, but I depend on this being inside a function (because I remove some columns before doing the differences and then reinstate them in a highly repetitive fashion).</p>
<p dir="auto">For a long time I was on pandas 0.18.x and was using the following command fine:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data = data.groupby('country).diff().shift(-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">groupby</span>('<span class="pl-s1">country</span>).<span class="pl-en">diff</span>().<span class="pl-en">shift</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>)</pre></div>
<p dir="auto">But after upgrading to pandas 0.20.1, the behavior of diff seems to have changed, and now takes a periods argument, which is very useful to me! Now, the problem is I get thrown a error everytime I use it. The traceback looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/myname/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-5e1d634b8803>", line 1, in <module>
dat = feature_expand(data_everything, lags=2, lag_y=True, delta=True)
File "<ipython-input-3-184a59b406db>", line 126, in feature_expand
data_delta = data_delta.diff()
File "<string>", line 21, in diff
File "/Users/myname/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 612, in wrapper
*args, **kwargs)
File "/Users/myname/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3481, in _aggregate_item_by_item
raise errors
TypeError: diff() got an unexpected keyword argument 'axis'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/myname/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-5e1d634b8803>", line 1, in <module>
dat = feature_expand(data_everything, lags=2, lag_y=True, delta=True)
File "<ipython-input-3-184a59b406db>", line 126, in feature_expand
data_delta = data_delta.diff()
File "<string>", line 21, in diff
File "/Users/myname/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 612, in wrapper
*args, **kwargs)
File "/Users/myname/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3481, in _aggregate_item_by_item
raise errors
TypeError: diff() got an unexpected keyword argument 'axis'
</code></pre></div>
<p dir="auto">Following the traceback I find a wrapper function in groupby.py under, _GroupBy._make_wrapper().wrapper, which says it does some "trickery for aggregation functions that need an axis", and seems to add the axis keyword argument by itself. This has probably been useful behaviour previously, but now it breaks .diff() as it doesn't take an axis argument anymore.</p>
<p dir="auto">I hope someone has time to help me and the community with this.</p>
<p dir="auto">Cheers :)</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">A dataframe of country-level first differences.</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: None<br>
python: 2.7.13.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 16.7.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None<br>
pandas: 0.20.1<br>
pytest: 2.9.2<br>
pip: 9.0.1<br>
setuptools: 35.0.2<br>
Cython: 0.24.1<br>
numpy: 1.13.1<br>
scipy: 0.19.1<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.4.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.1.0<br>
tables: 3.2.3.1<br>
numexpr: 2.6.2<br>
feather: None<br>
matplotlib: 2.0.2<br>
openpyxl: 2.3.2<br>
xlrd: 1.0.0<br>
xlwt: 1.1.2<br>
xlsxwriter: 0.9.3<br>
lxml: 3.7.3<br>
bs4: 4.5.3<br>
html5lib: 0.9999999<br>
sqlalchemy: 1.1.9<br>
pymysql: 0.7.9.None<br>
psycopg2: 2.7.1 (dt dec pq3 ext lo64)<br>
jinja2: 2.8<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto">The following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import type {HVal} from 'https://cdn.skypack.dev/haystack-core?dts'
import {HNum} from 'https://cdn.skypack.dev/haystack-core?dts'
function num() : HVal {
return HNum.make(100)
}
console.log(num().getKind())"><pre class="notranslate"><code class="notranslate">import type {HVal} from 'https://cdn.skypack.dev/haystack-core?dts'
import {HNum} from 'https://cdn.skypack.dev/haystack-core?dts'
function num() : HVal {
return HNum.make(100)
}
console.log(num().getKind())
</code></pre></div>
<p dir="auto">Gives this error in the VSCode plugin:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Module '"https://cdn.skypack.dev/haystack-core?dts"' has no exported member 'HVal'. Did you mean to use 'import HVal from "https://cdn.skypack.dev/haystack-core?dts"' instead?deno-ts(2614)"><pre class="notranslate"><code class="notranslate">Module '"https://cdn.skypack.dev/haystack-core?dts"' has no exported member 'HVal'. Did you mean to use 'import HVal from "https://cdn.skypack.dev/haystack-core?dts"' instead?deno-ts(2614)
</code></pre></div>
<p dir="auto">Removing the <code class="notranslate">type</code> from the import fixes the issue. But the type declaration is available and downloaded in the cache.</p> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { minify } from 'https://esm.sh/[email protected]'
export type { ECMA } from 'https://esm.sh/[email protected]'"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">minify</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'https://esm.sh/[email protected]'</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-kos">{</span> <span class="pl-smi">ECMA</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'https://esm.sh/[email protected]'</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2883484/108607270-4dd8bc80-73fa-11eb-9c75-02d7dceea3b2.png"><img width="1007" alt="Screen Shot 2021-02-21 at 04 06 36" src="https://user-images.githubusercontent.com/2883484/108607270-4dd8bc80-73fa-11eb-9c75-02d7dceea3b2.png" style="max-width: 100%;"></a></p>
<p dir="auto">after using the <strong>quick fix</strong>:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2883484/108607268-49140880-73fa-11eb-9c8f-f6772732108e.png"><img width="975" alt="Screen Shot 2021-02-21 at 04 07 04" src="https://user-images.githubusercontent.com/2883484/108607268-49140880-73fa-11eb-9c8f-f6772732108e.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>deno 1.7.5 / vscdoe-deno 3.0.1</strong></p> | 1 |
<p dir="auto">I'm sure there's some reason as to why the tensor shape (dimensions) and type are no longer included (as of 0.4) when <code class="notranslate">print x</code> is called on some tensor <code class="notranslate">x</code>, but why? It can be extremely useful, especially when viewing the contents of large tensors. Could this information be re-added in a future release? I know I could also just do</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print x
print x.shape
print x.type()"><pre class="notranslate"><code class="notranslate">print x
print x.shape
print x.type()
</code></pre></div>
<p dir="auto">but that's extra work ;-)</p> | <p dir="auto">my platform is win10, vs2019, python27.<br>
when doing the following steps:<br>
cd pytorch/scripts<br>
build_windows.bat<br>
it fails with the link error 1248, i use the 64bit VS dev cmd line env.<br>
i changed some variables in the build_windows.bat per i found from google like:<br>
set BUILD_PYTHON=ON<br>
and the<br>
"if NOT DEFINED MSVC_Z7_OVERRIDE (<br>
set MSVC_Z7_OVERRIDE=OFF<br>
)" block is left as it is<br>
any other env i need to do to build and link the pythorch?</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">When we wrap a button into a <code class="notranslate">Tooltip</code>, the <code class="notranslate">Tooltip</code> component should not interfer with the other components when the <code class="notranslate">IconButton</code> is not hovered.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The text correctly disappear, but the component stays mounted and prevents clicking on elements that are behind it. This creates some weird situation with an invisible tooltip and an unclickable button.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Code Sandbox : <a href="https://codesandbox.io/s/j292n17ypv" rel="nofollow">https://codesandbox.io/s/j292n17ypv</a><br>
Try to click the mouse button on the right, it's impossible because of the tooltip</p>
<h2 dir="auto">Context</h2>
<p dir="auto">Just trying to give infos to user without having to think about where my tooltip is going to end up and wether the user might click here.</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.11</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</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/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">When you unselect some item that was previously selected, unselected item should be unhighlighted</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Unselected item is highlighted, but loses <strong>bold</strong> style for font</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>go to <a href="https://material-ui-1dab0.firebaseapp.com/demos/selects/" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/demos/selects/</a></li>
<li>open multiple select example</li>
<li>select 2 items</li>
<li>unselect one of them</li>
<li>unselect second item</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1328473/30262639-579d24e6-96da-11e7-9e30-3260f03283fc.gif"><img src="https://user-images.githubusercontent.com/1328473/30262639-579d24e6-96da-11e7-9e30-3260f03283fc.gif" alt="asd42" data-animated-image="" style="max-width: 100%;"></a></p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>v1.0.0-beta.9</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 61.0.3163.79 on Windows 10</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><strong>### Problem</strong><br>
As I used simpson in scipy, I found there some issue about it. Simpson's 1/3 rule use parabola eq. to approximate every curve in the segment, to determine the parabola, it needs 3 points, so that is the constraint of 1/3 rule. It just apply to odd number well, but inaccurate as the number is even.<br>
<strong>### Solution</strong><br>
Combine 1/3 and 3/8 rule, so that simpson's rule apply every number of point.<br>
<strong>### Result</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.integrate import simps
def f(x):
return x**3
x = np.linspace(1.0, 4.0, 20)
y = f(x)
a = simps(y,x)
x = np.linspace(1.0, 4.0, 19)
y = f(x)
b = simps(y,x)
print (a, b)
correct result is 63.75"><pre class="notranslate"><code class="notranslate">import numpy as np
from scipy.integrate import simps
def f(x):
return x**3
x = np.linspace(1.0, 4.0, 20)
y = f(x)
a = simps(y,x)
x = np.linspace(1.0, 4.0, 19)
y = f(x)
b = simps(y,x)
print (a, b)
correct result is 63.75
</code></pre></div>
<p dir="auto">result1 should be more accurate than result2 because of the smaller h,<br>
but result1 = 63.7549, result2 = 63.7499<br>
I just write a C version and I uploaded it in my github, there is also the derivation of simpson rule.<br>
<a href="https://github.com/JrPhy/numerical/tree/master/Integration">https://github.com/JrPhy/numerical/tree/master/Integration</a></p> | <h1 dir="auto">problem</h1>
<p dir="auto">The Simpson's rule is suitable for arrays with an odd number of points. The current implementation allows for even number of points by integration the first or last interval using the trapezium rule, which is highly inaccurate.</p>
<h1 dir="auto">solution</h1>
<p dir="auto">In case of an even number n points the integral over the first n-1 points can be calculated using the normal Simpson scheme, i.e. the weights are 1/12_(2, 8, 2) over all intervals of three points. To calculated the contribution of the last interval, the 2nd order polynomial fit over the last 3 points is integrated over the interval between the last 2 points. This results in a weight scheme of 1/24_[-1, 8, 5] for the last inverval.</p>
<h1 dir="auto">result</h1>
<p dir="auto">Accuracy with n+1 points is better than with n points, even if n+1 is even. This is demonstrated for int_0^pi sin(x) dx in the attached code.</p>
<p dir="auto"><a href="https://github.com/scipy/scipy/files/70330/BetterSimps.txt">BetterSimps.txt</a></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.7</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<h3 dir="auto">question</h3>
<p dir="auto">在dubbo2.7.7中,在查看元数据的过程中,发现对Collection的泛型进行了写入,但是自定义的泛型信息并没有写入,后面会有相关规划吗</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.2</li>
<li>Operating System version: Linux</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>服务端这边传了一个11M大小的json数据给调用端</li>
<li>因为dubbo默认只能传8M一下的数据,所以服务端这边报错了(这是正常的):</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.io.IOException: Data length too large: 11120658, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /"><pre class="notranslate"><code class="notranslate">java.io.IOException: Data length too large: 11120658, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /
</code></pre></div>
<ol start="3" dir="auto">
<li>
<p dir="auto">不正常的是服务端虽然报错,但是调用端一直还在等待服务端的响应,直至超时报错</p>
</li>
<li>
<p dir="auto">我看代码 服务端这边报错后会去通知调用端,通知的参数又带上了这个11M的json数据<br>
然后又会走到<code class="notranslate">ExchangeCodec.encodeResponse()</code> 这个方法里面里面会去校验数据大小,导致通知还是报这个错误</p>
</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.io.IOException: Data length too large: 9887729, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /172.19.200.45:36472 => /172.19.200.45:18512]]
at com.alibaba.dubbo.remoting.transport.AbstractCodec.checkPa
yload(AbstractCodec.java:49)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.encodeResponse(ExchangeCodec.java:285)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:77)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:39)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:81)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)
at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
at com.alibaba.dubbo.remoting.transport.netty.NettyHandler.writeRequested(NettyHandler.java:99)
at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
at org.jboss.netty.channel.Channels.write(Channels.java:704)
at org.jboss.netty.channel.Channels.write(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
at com.alibaba.dubbo.remoting.transport.netty.NettyChannel.send(NettyChannel.java:98)
at com.alibaba.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:51)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:171)
at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52)
at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
, result=null] to /172.19.200.45:36472, cause: Data length too large: 11120658, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /172.19.200.45:36472 => /172.19.200.45:18512]], dubbo version: 2.5.3, current host: 172.19.200.45
com.alibaba.dubbo.remoting.RemotingException: Failed to send message Response [id=412, version=2.0.0, status=50, event=false, error=Failed to send response: Response [id=412, version=2.0.0, status=20, event=false, error=null, result=RpcResult [result="><pre class="notranslate"><code class="notranslate">java.io.IOException: Data length too large: 9887729, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /172.19.200.45:36472 => /172.19.200.45:18512]]
at com.alibaba.dubbo.remoting.transport.AbstractCodec.checkPa
yload(AbstractCodec.java:49)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.encodeResponse(ExchangeCodec.java:285)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:77)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:39)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:81)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendDownstream(DefaultChannelPipeline.java:784)
at org.jboss.netty.channel.SimpleChannelHandler.writeRequested(SimpleChannelHandler.java:292)
at com.alibaba.dubbo.remoting.transport.netty.NettyHandler.writeRequested(NettyHandler.java:99)
at org.jboss.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:254)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:591)
at org.jboss.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:582)
at org.jboss.netty.channel.Channels.write(Channels.java:704)
at org.jboss.netty.channel.Channels.write(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:348)
at com.alibaba.dubbo.remoting.transport.netty.NettyChannel.send(NettyChannel.java:98)
at com.alibaba.dubbo.remoting.transport.AbstractPeer.send(AbstractPeer.java:51)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:171)
at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52)
at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
, result=null] to /172.19.200.45:36472, cause: Data length too large: 11120658, max payload: 8388608, channel: NettyChannel [channel=[id: 0x8e01a04d, /172.19.200.45:36472 => /172.19.200.45:18512]], dubbo version: 2.5.3, current host: 172.19.200.45
com.alibaba.dubbo.remoting.RemotingException: Failed to send message Response [id=412, version=2.0.0, status=50, event=false, error=Failed to send response: Response [id=412, version=2.0.0, status=20, event=false, error=null, result=RpcResult [result=
</code></pre></div> | 0 |
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Compile SciPy on Docker image i386/python:3.10.11-slim-bullseye not Success.</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="Test1
RUN pip3 install scipy==1.10.1 <-- Not work
Test2
RUN pip3 install --no-cache-dir git+https://github.com/andyfaff/scipy <-- Not work"><pre class="notranslate"><span class="pl-v">Test1</span>
<span class="pl-v">RUN</span> <span class="pl-s1">pip3</span> <span class="pl-s1">install</span> <span class="pl-s1">scipy</span><span class="pl-c1">==</span><span class="pl-c1">1.10</span>.<span class="pl-c1">1</span> <span class="pl-c1"><</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">Not</span> <span class="pl-s1">work</span>
<span class="pl-v">Test2</span>
<span class="pl-v">RUN</span> <span class="pl-s1">pip3</span> <span class="pl-s1">install</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">cache</span><span class="pl-c1">-</span><span class="pl-s1">dir</span> <span class="pl-s1">git</span><span class="pl-c1">+</span><span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">github</span>.<span class="pl-s1">com</span><span class="pl-c1">/</span><span class="pl-s1">andyfaff</span><span class="pl-c1">/</span><span class="pl-s1">scipy</span> <span class="pl-c1"><</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">Not</span> <span class="pl-s1">work</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="Collecting git+https://github.com/andyfaff/scipy
Cloning https://github.com/andyfaff/scipy to /tmp/pip-req-build-8vsmg7hl
Running command git clone --filter=blob:none --quiet https://github.com/andyfaff/scipy /tmp/pip-req-build-8vsmg7hl
Resolved https://github.com/andyfaff/scipy to commit 52a5ecb875588fcef5bc18dcd84b302a9ba9bd39
Running command git submodule update --init --recursive -q
From https://github.com/boostorg/math
* branch 109a814e89f77ff8a3fc8f0391f6b35a12640669 -> FETCH_HEAD
From https://github.com/scipy/highs
* branch 4a122958a82e67e725d08153e099efe4dad099a2 -> FETCH_HEAD
From https://github.com/scipy/unuran
* branch a63d39160e5ecc4402e7ed0e8417f4c3ff9634cb -> FETCH_HEAD
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
+ meson setup /tmp/pip-req-build-8vsmg7hl /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build/meson-python-native-file.ini
The Meson build system
Version: 1.1.0
Source dir: /tmp/pip-req-build-8vsmg7hl
Build dir: /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build
Build type: native build
Project name: SciPy
Project version: 1.11.0.dev0
C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110")
C linker for the host machine: cc ld.bfd 2.35.2
C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Debian 10.2.1-6) 10.2.1 20210110")
C++ linker for the host machine: c++ ld.bfd 2.35.2
../../meson.build:1:0: ERROR: Cython compiler 'cython' cannot compile programs
A full log can be found at /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details."><pre class="notranslate">Collecting git+https://github.com/andyfaff/scipy
Cloning https://github.com/andyfaff/scipy to /tmp/pip-req-build-8vsmg7hl
Running <span class="pl-c1">command</span> git clone --filter=blob:none --quiet https://github.com/andyfaff/scipy /tmp/pip-req-build-8vsmg7hl
Resolved https://github.com/andyfaff/scipy to commit 52a5ecb875588fcef5bc18dcd84b302a9ba9bd39
Running <span class="pl-c1">command</span> git submodule update --init --recursive -q
From https://github.com/boostorg/math
<span class="pl-k">*</span> branch 109a814e89f77ff8a3fc8f0391f6b35a12640669 -<span class="pl-k">></span> FETCH_HEAD
From https://github.com/scipy/highs
<span class="pl-k">*</span> branch 4a122958a82e67e725d08153e099efe4dad099a2 -<span class="pl-k">></span> FETCH_HEAD
From https://github.com/scipy/unuran
<span class="pl-k">*</span> branch a63d39160e5ecc4402e7ed0e8417f4c3ff9634cb -<span class="pl-k">></span> FETCH_HEAD
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status <span class="pl-s"><span class="pl-pds">'</span>done<span class="pl-pds">'</span></span>
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status <span class="pl-s"><span class="pl-pds">'</span>done<span class="pl-pds">'</span></span>
Installing backend dependencies: started
Installing backend dependencies: finished with status <span class="pl-s"><span class="pl-pds">'</span>done<span class="pl-pds">'</span></span>
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status <span class="pl-s"><span class="pl-pds">'</span>error<span class="pl-pds">'</span></span>
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ <span class="pl-c1">exit</span> code: 1
╰─<span class="pl-k">></span> [16 lines of output]
+ meson setup /tmp/pip-req-build-8vsmg7hl /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build/meson-python-native-file.ini
The Meson build system
Version: 1.1.0
Source dir: /tmp/pip-req-build-8vsmg7hl
Build dir: /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build
Build type: native build
Project name: SciPy
Project version: 1.11.0.dev0
C compiler <span class="pl-k">for</span> the host machine: cc (gcc 10.2.1 <span class="pl-s"><span class="pl-pds">"</span>cc (Debian 10.2.1-6) 10.2.1 20210110<span class="pl-pds">"</span></span>)
C linker <span class="pl-k">for</span> the host machine: cc ld.bfd 2.35.2
C++ compiler <span class="pl-k">for</span> the host machine: c++ (gcc 10.2.1 <span class="pl-s"><span class="pl-pds">"</span>c++ (Debian 10.2.1-6) 10.2.1 20210110<span class="pl-pds">"</span></span>)
C++ linker <span class="pl-k">for</span> the host machine: c++ ld.bfd 2.35.2
../../meson.build:1:0: ERROR: Cython compiler <span class="pl-s"><span class="pl-pds">'</span>cython<span class="pl-pds">'</span></span> cannot compile programs
A full log can be found at /tmp/pip-req-build-8vsmg7hl/.mesonpy-c5n8yvav/build/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error <span class="pl-k">while</span> generating package metadata.
╰─<span class="pl-k">></span> See above <span class="pl-k">for</span> output.
note: This is an issue with the package mentioned above, not pip.
hint: See above <span class="pl-k">for</span> details.</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version and system information</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SciPy=1.10.1
Python=3.10
Cython=3.0.0b2"><pre class="notranslate">SciPy=1.10.1
Python=3.10
Cython=3.0.0b2</pre></div> | <p dir="auto">Want to build from source to work on adding a missing distribution (Landau distribution). Following the steps from <a href="https://scipy.github.io/devdocs/dev/dev_quickstart.html" rel="nofollow">here</a>. Using the <em>pip+venv</em> workflow. Already cloned the repo and created the virtual environment, run <code class="notranslate">python -m pip install numpy pytest cython pythran pybind11 meson ninja pydevtool rich-click</code> successfully. I am getting an error when running <code class="notranslate">python3 dev.py build</code>, specifically <code class="notranslate">meson.build:1:0: ERROR: Cython compiler 'cython' cannot compile programs</code>. If I look into the log I find:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compiler stderr:
...
File "/home/me/.venvs/scipy-dev/lib/python3.10/site-packages/pythran/optimizations/pattern_transform.py", line 346, in <module>
getattr(PatternTransform, attr_name) + (known_pattern,))
AttributeError: type object 'PatternTransform' has no attribute 'typePatterns'. Did you mean: 'CallPatterns'?"><pre class="notranslate"><code class="notranslate">Compiler stderr:
...
File "/home/me/.venvs/scipy-dev/lib/python3.10/site-packages/pythran/optimizations/pattern_transform.py", line 346, in <module>
getattr(PatternTransform, attr_name) + (known_pattern,))
AttributeError: type object 'PatternTransform' has no attribute 'typePatterns'. Did you mean: 'CallPatterns'?
</code></pre></div>
<p dir="auto">How can I fix this to build the development version of scipy?</p>
<p dir="auto">OS: Ubuntu 22.04.<br>
Python: 3.10.6</p> | 1 |
<h2 dir="auto">Description</h2>
<p dir="auto">I'm not sure if this is expected behavior or not, but flags should be positional. For instance, if I run this,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --allow-net server.ts"><pre class="notranslate">deno run --allow-net server.ts</pre></div>
<p dir="auto">it will work properly. But moving the flag to the end of the command will result in an error.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run server.ts --allow-net
error: Uncaught PermissionDenied: network access to "127.0.0.1:8000", run again with the --allow-net flag
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
at Object.listen ($deno$/ops/net.ts:51:10)
at listen ($deno$/net.ts:164:18)
at serve (server.ts:261:20)
at server.ts:3:11"><pre class="notranslate">deno run server.ts --allow-net
error: Uncaught PermissionDenied: network access to <span class="pl-s"><span class="pl-pds">"</span>127.0.0.1:8000<span class="pl-pds">"</span></span>, run again with the --allow-net flag
at unwrapResponse (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:43:11)
at Object.sendSync (<span class="pl-smi">$deno</span>$/ops/dispatch_json.ts:72:10)
at Object.listen (<span class="pl-smi">$deno</span>$/ops/net.ts:51:10)
at listen (<span class="pl-smi">$deno</span>$/net.ts:164:18)
at serve (server.ts:261:20)
at server.ts:3:11</pre></div>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The flags after the filename should also work. As in this case,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cat server.ts --number-nonblank
# vs
cat --number-nonblank server.ts"><pre class="notranslate">cat server.ts --number-nonblank
<span class="pl-c"><span class="pl-c">#</span> vs</span>
cat --number-nonblank server.ts</pre></div>
<h2 dir="auto">Environment</h2>
<p dir="auto">OS - Microsoft Windows 10 Pro<br>
Shell - Powershell<br>
Deno - 0.42.0<br>
V8 - 8.2.308<br>
Typescript - 3.8.3</p> | <p dir="auto">The order of the CLI flags should not be of importance. Check this example</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6124435/62263509-c9d87180-b41c-11e9-8da9-b683316e0ad7.png"><img src="https://user-images.githubusercontent.com/6124435/62263509-c9d87180-b41c-11e9-8da9-b683316e0ad7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Shouldn't</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" deno test.ts --config tsconfig.json"><pre class="notranslate"><code class="notranslate"> deno test.ts --config tsconfig.json
</code></pre></div>
<p dir="auto">be the same as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno --config tsconfig.json test.ts"><pre class="notranslate"><code class="notranslate">deno --config tsconfig.json test.ts
</code></pre></div>
<p dir="auto">or maybe I'm wrong?</p> | 1 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): redhat 7.9</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.10.0-1160.11.1.el7.x86_64</li>
<li><strong>Install tools</strong>: pip</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">I cleared a success DAG run and it failed to be scheduled again with the following error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{scheduler_job.py:1639} INFO - Run scheduled__2021-02-02T16:00:00+00:00 of some_job has timed-out"><pre class="notranslate"><code class="notranslate">{scheduler_job.py:1639} INFO - Run scheduled__2021-02-02T16:00:00+00:00 of some_job has timed-out
</code></pre></div>
<p dir="auto">After removing dagrun_timeout, the same dag run can be rescheduled.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">I expect "timeout" is counted from the moment the DAG is reset.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">I can reproduce it with the following code. Not sure if it is the intended behavior.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from airflow import DAG
from airflow.operators.dummy import DummyOperator
import pendulum
with DAG("test_timeout",
default_args={'owner': 'airflow'},
start_date= pendulum.yesterday(),
schedule_interval='@daily',
# add the following parameter after the first run is complete and then clear the success run
# dagrun_timeout=pendulum.duration(minutes=1),
) as dag:
DummyOperator(task_id='dummy')"><pre class="notranslate"><code class="notranslate">from airflow import DAG
from airflow.operators.dummy import DummyOperator
import pendulum
with DAG("test_timeout",
default_args={'owner': 'airflow'},
start_date= pendulum.yesterday(),
schedule_interval='@daily',
# add the following parameter after the first run is complete and then clear the success run
# dagrun_timeout=pendulum.duration(minutes=1),
) as dag:
DummyOperator(task_id='dummy')
</code></pre></div> | <p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Amazon Linux 2</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Clearing a DagRun that has an <code class="notranslate">execution_date</code> in the past where the time difference between now and that <code class="notranslate">execution_date</code> is greater than the DagRun timeout leads to the DagRun failing on clear, and not running.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
The DagRun should enter the Running state</p>
<p dir="auto">I anticipate this is a bug where the existing DagRun duration is not being reset and so the new DagRun is timing out as soon as it starts.</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto">Create an DAG with a DagRun timeout. Trigger said DAG. Wait for <code class="notranslate">DagRun timeout + 1</code> minutes and then clear said DagRun. New DagRun will immediately fail.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:<br>
This occurs regardless of whether the DAG/Task succeeded or failed. Also, any DagRun that has timed out can never be cleared.</p> | 1 |
<p dir="auto">If I have <code class="notranslate">/pages/one/index.js</code>, the URL <code class="notranslate">/one</code> resolves to the <code class="notranslate">index.js</code>. Great.</p>
<p dir="auto">But if I have <code class="notranslate">/pages/one/two/index.js</code>, the URL <code class="notranslate">/one/two</code> does <em>not</em> resolve to <code class="notranslate">index.js</code>. I get <code class="notranslate">error: Cannot GET /one/two</code>. The URL <code class="notranslate">/one/two/index.js</code> does not work either, as I'd expect.</p>
<p dir="auto">I think nesting like this should work.</p> | <p dir="auto">Hello!</p>
<p dir="auto">I have a dependency in my application that specifically relies on <code class="notranslate">window.fetch</code> being replaced with the whatwg-fetch polyfill. whatwg-fetch is a transitive dependency, so it should be ending up in my build, but it looks like next.js is replacing it with something else.</p>
<p dir="auto">From reading the docs it seems like next provides it's own fetch polyfill? Does that sound right, or am I totally off track here?</p>
<p dir="auto">Thanks!</p> | 0 |
<p dir="auto">After downloading the latest version of Deno 1.7.3 from GitHub, the binary throws the following error under Debain 10 64Bit:</p>
<p dir="auto"><code class="notranslate">./deno: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by ./deno)</code></p>
<p dir="auto"><code class="notranslate">uname</code> output:</p>
<p dir="auto"><code class="notranslate">Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux</code></p>
<p dir="auto">The binary is, however, functional under <code class="notranslate">Ubuntu 20.04 64Bit</code>.</p> | <p dir="auto">stdout & stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> RUST_BACKTRACE=full ./.deno/bin/deno upgrade --canary;
Looking up latest version
Found latest version d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994
Checking https://dl.deno.land/canary/d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994/deno-x86_64-unknown-linux-gnu.zip
Download has been found
Deno is upgrading to version d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994
Archive: /tmp/.tmphGitPu/deno..zip
inflating: deno
/tmp/.tmphGitPu/deno: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.tmphGitPu/deno)
thread 'main' panicked at 'assertion failed: output.status.success()', cli/tools/upgrade.rs:255:3
stack backtrace:
0: 0x55d567c0cb83 - std::backtrace_rs::backtrace::libunwind::trace::h04d12fdcddff82aa
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/../../backtrace/src/backtrace/libunwind.rs:100:5
1: 0x55d567c0cb83 - std::backtrace_rs::backtrace::trace_unsynchronized::h1459b974b6fbe5e1
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x55d567c0cb83 - std::sys_common::backtrace::_print_fmt::h9b8396a669123d95
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:67:5
3: 0x55d567c0cb83 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he009dcaaa75eed60
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:46:22
4: 0x55d56773f00c - core::fmt::write::h77b4746b0dea1dd3
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/fmt/mod.rs:1078:17
5: 0x55d567c0c421 - std::io::Write::write_fmt::heb7e50902e98831c
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/io/mod.rs:1518:15
6: 0x55d567c0bde5 - std::sys_common::backtrace::_print::h2d880c9e69a21be9
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:49:5
7: 0x55d567c0bde5 - std::sys_common::backtrace::print::h5f02b1bb49f36879
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:36:9
8: 0x55d567c0bde5 - std::panicking::default_hook::{{closure}}::h658e288a7a809b29
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:208:50
9: 0x55d567c0b3c5 - std::panicking::default_hook::hb52d73f0da9a4bb8
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:227:9
10: 0x55d567c0b3c5 - std::panicking::rust_panic_with_hook::hfe7e1c684e3e6462
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:593:17
11: 0x55d5679776ec - std::panicking::begin_panic::{{closure}}::hcb184a9ed52d5de5
12: 0x55d5679776c6 - std::sys_common::backtrace::__rust_end_short_backtrace::haf2505beafd41248
13: 0x55d56797777d - std::panicking::begin_panic::h3ea500739663b54d
14: 0x55d5676cefdf - deno::tools::upgrade::upgrade_command::{{closure}}::h5b31c30d7dff30ef
15: 0x55d56760dd29 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h1a35a640e19b0e86
16: 0x55d5678ae446 - tokio::runtime::Runtime::block_on::h9bb2ea13d88c1ea4
17: 0x55d5676e6d67 - deno::main::he860fdd0651ddee0
18: 0x55d5674d36aa - std::sys_common::backtrace::__rust_begin_short_backtrace::h12856b605070de86
19: 0x55d5676f3dd6 - main
20: 0x7fc98d405bf7 - __libc_start_main
21: 0x55d56746dc7a - _start
22: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">> RUST_BACKTRACE=full ./.deno/bin/deno upgrade --canary;
Looking up latest version
Found latest version d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994
Checking https://dl.deno.land/canary/d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994/deno-x86_64-unknown-linux-gnu.zip
Download has been found
Deno is upgrading to version d6c05b09dd7cbaba0fcae65929a2c2dd55e9d994
Archive: /tmp/.tmphGitPu/deno..zip
inflating: deno
/tmp/.tmphGitPu/deno: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/.tmphGitPu/deno)
thread 'main' panicked at 'assertion failed: output.status.success()', cli/tools/upgrade.rs:255:3
stack backtrace:
0: 0x55d567c0cb83 - std::backtrace_rs::backtrace::libunwind::trace::h04d12fdcddff82aa
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/../../backtrace/src/backtrace/libunwind.rs:100:5
1: 0x55d567c0cb83 - std::backtrace_rs::backtrace::trace_unsynchronized::h1459b974b6fbe5e1
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x55d567c0cb83 - std::sys_common::backtrace::_print_fmt::h9b8396a669123d95
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:67:5
3: 0x55d567c0cb83 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he009dcaaa75eed60
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:46:22
4: 0x55d56773f00c - core::fmt::write::h77b4746b0dea1dd3
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/fmt/mod.rs:1078:17
5: 0x55d567c0c421 - std::io::Write::write_fmt::heb7e50902e98831c
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/io/mod.rs:1518:15
6: 0x55d567c0bde5 - std::sys_common::backtrace::_print::h2d880c9e69a21be9
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:49:5
7: 0x55d567c0bde5 - std::sys_common::backtrace::print::h5f02b1bb49f36879
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/sys_common/backtrace.rs:36:9
8: 0x55d567c0bde5 - std::panicking::default_hook::{{closure}}::h658e288a7a809b29
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:208:50
9: 0x55d567c0b3c5 - std::panicking::default_hook::hb52d73f0da9a4bb8
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:227:9
10: 0x55d567c0b3c5 - std::panicking::rust_panic_with_hook::hfe7e1c684e3e6462
at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:593:17
11: 0x55d5679776ec - std::panicking::begin_panic::{{closure}}::hcb184a9ed52d5de5
12: 0x55d5679776c6 - std::sys_common::backtrace::__rust_end_short_backtrace::haf2505beafd41248
13: 0x55d56797777d - std::panicking::begin_panic::h3ea500739663b54d
14: 0x55d5676cefdf - deno::tools::upgrade::upgrade_command::{{closure}}::h5b31c30d7dff30ef
15: 0x55d56760dd29 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h1a35a640e19b0e86
16: 0x55d5678ae446 - tokio::runtime::Runtime::block_on::h9bb2ea13d88c1ea4
17: 0x55d5676e6d67 - deno::main::he860fdd0651ddee0
18: 0x55d5674d36aa - std::sys_common::backtrace::__rust_begin_short_backtrace::h12856b605070de86
19: 0x55d5676f3dd6 - main
20: 0x7fc98d405bf7 - __libc_start_main
21: 0x55d56746dc7a - _start
22: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Seems like my system is missing <code class="notranslate">GLIBC_2.29</code>?</p> | 1 |
<p dir="auto">Instead of given the argument <code class="notranslate">--vault-password-file <file></code> by cli. I would like to have an option in ansible.cfg to set it in defaults:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
vault-password-file = <file>"><pre class="notranslate"><code class="notranslate">[defaults]
vault-password-file = <file>
</code></pre></div> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.5.4</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 14.04</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">I'm using vaults and have the password stored inside a vault-password-file. I don't like to add the <code class="notranslate">--vault-password-file=~/.ansible_vault_password.txt</code> to it every time I run commands (like <code class="notranslate">ansible</code> and <code class="notranslate">ansible-vault</code>). Would be great if it would read this setting out of <code class="notranslate">ansible.cfg</code></p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Add <code class="notranslate">vault_password_file=file.txt</code> to <code class="notranslate">ansible.cfg</code></p> | 1 |
<p dir="auto">I'm trying to define a type that can be added/multiplied with floats.<br>
I've tried overloading <code class="notranslate">+</code> like this:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub struct Num(f64);
impl Add<Num,Num> for f64 {
fn add(self, other: Num) -> Num {
match other {
Num(x) => Num(self + x)
}
}
}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Num</span><span class="pl-kos">(</span><span class="pl-smi">f64</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Add</span><span class="pl-kos"><</span><span class="pl-smi">Num</span><span class="pl-kos">,</span><span class="pl-smi">Num</span><span class="pl-kos">></span> <span class="pl-k">for</span> <span class="pl-smi">f64</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">other</span><span class="pl-kos">:</span> <span class="pl-smi">Num</span><span class="pl-kos">)</span> -> <span class="pl-smi">Num</span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> other <span class="pl-kos">{</span>
<span class="pl-v">Num</span><span class="pl-kos">(</span>x<span class="pl-kos">)</span> => <span class="pl-v">Num</span><span class="pl-kos">(</span><span class="pl-smi">self</span> + x<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x = Num(42.0);
println!("{}", 1.0 + x);"><pre class="notranslate"><span class="pl-k">let</span> x = <span class="pl-v">Num</span><span class="pl-kos">(</span><span class="pl-c1">42.0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, <span class="pl-c1">1.0</span> + x<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">fails with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: mismatched types: expected `_`, found `Num` (expected floating-point variable, found struct Num)
println!("{}", 1.0 + x);
^"><pre class="notranslate"><code class="notranslate">error: mismatched types: expected `_`, found `Num` (expected floating-point variable, found struct Num)
println!("{}", 1.0 + x);
^
</code></pre></div>
<p dir="auto">Interestingly,</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x: Num = Num(42.0);
println!("{}", 1.0.add(x));"><pre class="notranslate"><span class="pl-k">let</span> x<span class="pl-kos">:</span> <span class="pl-smi">Num</span> = <span class="pl-v">Num</span><span class="pl-kos">(</span><span class="pl-c1">42.0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, <span class="pl-c1">1.0</span>.add<span class="pl-kos">(</span>x<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">works just fine.<br>
Is this intended behaviour?<br>
It seems inconsistent that <code class="notranslate">+</code> simply ignores the implementation of <code class="notranslate">Add</code> in this case.</p> | <h3 dir="auto">STR</h3>
<p dir="auto">Given the proper (commutative) <code class="notranslate">Add</code>/<code class="notranslate">Mul</code> implementations. (See this <a href="http://is.gd/HsB5yl" rel="nofollow">playpen link</a>)</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const I: Complex<f32> = Complex { re: 0., im: 1. };
let z = I * 3.; // OK
let z = I + 3.; // OK
let z = 3. * I; // Err
let z = 3. + I; // Err"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">I</span><span class="pl-kos">:</span> <span class="pl-smi">Complex</span><span class="pl-kos"><</span><span class="pl-smi">f32</span><span class="pl-kos">></span> = <span class="pl-smi">Complex</span> <span class="pl-kos">{</span> <span class="pl-c1">re</span><span class="pl-kos">:</span> <span class="pl-c1">0.</span><span class="pl-kos">,</span> <span class="pl-c1">im</span><span class="pl-kos">:</span> <span class="pl-c1">1.</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> z = <span class="pl-v">I</span> <span class="pl-c1">*</span> <span class="pl-c1">3.</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span>
<span class="pl-k">let</span> z = <span class="pl-v">I</span> + <span class="pl-c1">3.</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span>
<span class="pl-k">let</span> z = <span class="pl-c1">3.</span> <span class="pl-c1">*</span> <span class="pl-v">I</span><span class="pl-kos">;</span> <span class="pl-c">// Err</span>
<span class="pl-k">let</span> z = <span class="pl-c1">3.</span> + <span class="pl-v">I</span><span class="pl-kos">;</span> <span class="pl-c">// Err</span></pre></div>
<h3 dir="auto">Output</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: mismatched types: expected `_`, found `Complex<f32>` (expected floating-point variable, found struct Complex)"><pre class="notranslate">error<span class="pl-kos">:</span> mismatched types<span class="pl-kos">:</span> expected `_`<span class="pl-kos">,</span> found `<span class="pl-v">Complex</span><f32>` <span class="pl-kos">(</span>expected floating-point variable<span class="pl-kos">,</span> found struct <span class="pl-v">Complex</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a> Could this work in the future? It would be great if could type <code class="notranslate">3. + 4. * I</code> instead of <code class="notranslate">I * 4. + 3.</code>, the former feels more natural.</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61928734/83080280-ca956080-a04b-11ea-8439-2a4210cb784c.jpg"><img src="https://user-images.githubusercontent.com/61928734/83080280-ca956080-a04b-11ea-8439-2a4210cb784c.jpg" alt="2020-05-27" style="max-width: 100%;"></a><br>
PowerLauncher seems to be using a lot of memory - 220MB</p>
<p dir="auto">Not sure if this is expected.</p>
<p dir="auto">Windows build number: 1909 (18363.836)<br>
PowerToys version: v0.18.1<br>
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<h1 dir="auto">Actual behavior</h1>
<h1 dir="auto">Screenshots</h1> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18363.836]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): Power Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18363.836]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): Power Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Type any text in Power Run.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Showing a list of all matching or closely matching results (including files, folders and apps)</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Showing only apps results (no files or folders) (it was working fine before!)</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65621638/83185743-7052d900-a0f9-11ea-9cab-a6b129d38b46.png"><img src="https://user-images.githubusercontent.com/65621638/83185743-7052d900-a0f9-11ea-9cab-a6b129d38b46.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I'd like to use TensorFlow to write an application that would need <code class="notranslate">complex128</code> as a dtype.<br>
But TensorFlow currently only supports <code class="notranslate">complex64</code>.<br>
Are there any plans for supporting <code class="notranslate">complex128</code> as well in the future?</p>
<p dir="auto">Seems that there is a TODO for this in <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/types.proto#L36">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/types.proto#L36</a>.</p> | <p dir="auto">Currently Tensorflow supports <a href="https://www.tensorflow.org/js" rel="nofollow">Javascript</a>, <a href="https://www.tensorflow.org/install/lang_java" rel="nofollow">Java</a>, and <a href="https://www.tensorflow.org/install/lang_c" rel="nofollow">C</a>. These are all the target programming languages of <a href="https://kotlinlang.org/docs/reference/multiplatform.html" rel="nofollow">Kotlin Multiplatform</a>. Therefore, it would be theoretically possible to port Tensorflow to be a Kotlin Multiplatform Library by just reusing the existing APIs.<br>
Are there any plans for this? If not, what do you think about the idea?</p> | 0 |
<h4 dir="auto">Describe the bug</h4>
<p dir="auto">The data option in <strong>axios.delete(url, {options})</strong> api is always staying undefined, even after passing the data option with proper values.</p>
<h4 dir="auto">To Reproduce</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example code here
const res = await axios.delete('/api/example', {data:{ id: id}});"><pre class="notranslate"><span class="pl-c">// Example code here</span>
<span class="pl-k">const</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">'/api/example'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">data</span>:<span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-s1">id</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">A clear and concise description of what you expected to happen.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17143611/92560832-d7556180-f294-11ea-9599-58112f776524.png"><img src="https://user-images.githubusercontent.com/17143611/92560832-d7556180-f294-11ea-9599-58112f776524.png" alt="axios_expected" style="max-width: 100%;"></a></p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version [0.20.0]</li>
<li>Adapter [HTTP]</li>
<li>Browser [Chrome]</li>
<li>Browser Version [85.0.4183.83 (Official Build) (64-bit)]</li>
<li>Node.js Version [e.g. 10.19.0]</li>
<li>OS: [Linux 4.15.0-112-generic x86_64]</li>
<li>Additional Library Versions [React 16.13.1]</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">But this is what I am getting:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17143611/92561204-93af2780-f295-11ea-9326-4f847117e359.png"><img src="https://user-images.githubusercontent.com/17143611/92561204-93af2780-f295-11ea-9326-4f847117e359.png" alt="axios_getting" style="max-width: 100%;"></a></p> | <h4 dir="auto">Describe the bug</h4>
<p dir="auto">Axios last version (0.20.0) does not use data from config when making DELETE request. In 0.19.2 it's working fine</p>
<h4 dir="auto">To Reproduce</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.delete("...", {
data: { ids: [...] },
}).then(response => {
...
}).catch(error => {
...
});"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">"..."</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">ids</span>: <span class="pl-kos">[</span>...<span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">response</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-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">error</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></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">Axios send request data from config when making DELETE request</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version 0.20.0</li>
<li>Browser Chrome</li>
<li>Browser Version 84.0.4147.125</li>
<li>Node.js Version 12.18.3</li>
<li>OS: Linux Mint</li>
<li>Additional Library Versions React 16.13.1</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">None</p> | 1 |
<p dir="auto">The following occurs when using pandas.merge for an (left) outer join with the left_index=True and right_on="something" options. The index of the resulting DataFrame contains duplicate values and the "something" column contains new (compared to before) values that look suspiciously like what the index should be.</p>
<p dir="auto">Is this expected behavior, or could this be a bug?</p>
<p dir="auto">A minimal illustration is:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
In [2]: pandas.__version__
Out[2]: '0.14.0'
In [3]: df1 = pandas.DataFrame(zeros(8).reshape(4,2), columns=['A', 'B'])
In [4]: df2 = pandas.DataFrame(arange(4).reshape(2,2), columns=['C', 'D'])
In [5]: df1
Out[5]:
A B
0 0 0
1 0 0
2 0 0
3 0 0
In [6]: df2
Out[6]:
C D
0 0 1
1 2 3
In [7]: pandas.merge(df1, df2, left_index=True, right_on='C', how='left')
Out[7]:
A B C D
0 0 0 0 1
1 0 0 1 NaN
1 0 0 2 3
1 0 0 3 NaN
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">pandas</span>.<span class="pl-s1">__version__</span>
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-s">'0.14.0'</span>
<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>(<span class="pl-en">zeros</span>(<span class="pl-c1">8</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">4</span>,<span class="pl-c1">2</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-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>(<span class="pl-en">arange</span>(<span class="pl-c1">4</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">2</span>,<span class="pl-c1">2</span>), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'C'</span>, <span class="pl-s">'D'</span>])
<span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">df1</span>
<span class="pl-v">Out</span>[<span class="pl-c1">5</span>]:
<span class="pl-v">A</span> <span class="pl-v">B</span>
<span class="pl-c1">0</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">0</span>
<span class="pl-c1">2</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span>
<span class="pl-c1">3</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span>
<span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">df2</span>
<span class="pl-v">Out</span>[<span class="pl-c1">6</span>]:
<span class="pl-v">C</span> <span class="pl-v">D</span>
<span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span>
<span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">pandas</span>.<span class="pl-en">merge</span>(<span class="pl-s1">df1</span>, <span class="pl-s1">df2</span>, <span class="pl-s1">left_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">right_on</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>, <span class="pl-s1">how</span><span class="pl-c1">=</span><span class="pl-s">'left'</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">7</span>]:
<span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-v">C</span> <span class="pl-v">D</span>
<span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1</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-v">NaN</span>
<span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span>
<span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">3</span> <span class="pl-v">NaN</span></pre></div>
<p dir="auto">What I would expect as the result is the following and can be constructed by adding an extra column carrying the left index, doing the join with left_on instead of left_index, and dropping the extra column again:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
In [8]: df1['i'] = pandas.Series(df1.index)
In [9]: pandas.merge(df1, df2, left_on='i', right_on='C', how='left').drop(['i'],axis=1)
Out[9]:
A B C D
0 0 0 0 1
1 0 0 NaN NaN
2 0 0 2 3
3 0 0 NaN NaN
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">df1</span>[<span class="pl-s">'i'</span>] <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">Series</span>(<span class="pl-s1">df1</span>.<span class="pl-s1">index</span>)
<span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-s1">pandas</span>.<span class="pl-en">merge</span>(<span class="pl-s1">df1</span>, <span class="pl-s1">df2</span>, <span class="pl-s1">left_on</span><span class="pl-c1">=</span><span class="pl-s">'i'</span>, <span class="pl-s1">right_on</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>, <span class="pl-s1">how</span><span class="pl-c1">=</span><span class="pl-s">'left'</span>).<span class="pl-en">drop</span>([<span class="pl-s">'i'</span>],<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">9</span>]:
<span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-v">C</span> <span class="pl-v">D</span>
<span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span>
<span class="pl-c1">3</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span></pre></div> | <p dir="auto">python uses 32 bytes for every int.<br>
numpy uses 4 bytes for an int32 (with which you can index billion of keys).</p>
<p dir="auto">We currently have a hardwired if preventing single-level multi-indexes,<br>
which would allow us to take advantage of factorization to reduce memory<br>
consumption by ~8x for indices which have lots of duplicates.</p>
<p dir="auto">Indexes tend to be unique (by their nature). But the same principle goes<br>
for string columns which are often highligh degenerate.</p>
<p dir="auto">Basically, if we store catagorical data as catagorical, we can<br>
reduce memory footprint drastically. If we do the factorization<br>
at the stage where data is read in (perhaps in conjuction with the iterator based<br>
reader planned for 0.14 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8188284" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2193" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2193/hovercard" href="https://github.com/pandas-dev/pandas/issues/2193">#2193</a>) we can drastically reduce the peak memory usage as well.</p>
<p dir="auto">Update: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21549338" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/5313" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/5313/hovercard" href="https://github.com/pandas-dev/pandas/issues/5313">#5313</a></p> | 0 |
<p dir="auto">Julia 0.4 gets subtype relation wrong inside a function scope with tuple types:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable FakeMethod
sig::Type{Tuple} # no error below if leaving the type declaration off!
end
fmm = methods(sin, (Complex{Float16},))[1]
_sin(::String) = Float64()
tmm = methods(_sin, (String,))[1]
@assert !( tmm.sig<:fmm.sig)
tm = FakeMethod(tmm.sig)
fm = FakeMethod(fmm.sig)
# In global scope all works:
@show tmm.sig, fmm.sig
@show tm.sig, fm.sig
@show tm.sig<:fm.sig # true
@show fm.sig<:tm.sig # true
@show fm.sig==tm.sig # false
@show fm.sig===tm.sig # false
@assert !( tm.sig<:fm.sig )
function f(tmm, fmm)
println("\nInside function:")
tm = FakeMethod(tmm.sig)
fm = FakeMethod(fmm.sig)
@show tmm.sig, fmm.sig
@show tm.sig, fm.sig
@show tm.sig<:fm.sig # true!!!!!!!!!
@show fm.sig<:tm.sig # true!!!!!!!!!
@show fm.sig==tm.sig # false (true before #10380)
@show fm.sig===tm.sig # false
@assert !( tm.sig<:fm.sig ) # throws an error here
end
f(tmm,fmm)"><pre class="notranslate">immutable FakeMethod
sig<span class="pl-k">::</span><span class="pl-c1">Type{Tuple}</span> <span class="pl-c"><span class="pl-c">#</span> no error below if leaving the type declaration off!</span>
<span class="pl-k">end</span>
fmm <span class="pl-k">=</span> <span class="pl-c1">methods</span>(sin, (Complex{Float16},))[<span class="pl-c1">1</span>]
<span class="pl-en">_sin</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>) <span class="pl-k">=</span> <span class="pl-c1">Float64</span>()
tmm <span class="pl-k">=</span> <span class="pl-c1">methods</span>(_sin, (String,))[<span class="pl-c1">1</span>]
<span class="pl-c1">@assert</span> <span class="pl-k">!</span>( tmm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">fmm.sig</span>)
tm <span class="pl-k">=</span> <span class="pl-c1">FakeMethod</span>(tmm<span class="pl-k">.</span>sig)
fm <span class="pl-k">=</span> <span class="pl-c1">FakeMethod</span>(fmm<span class="pl-k">.</span>sig)
<span class="pl-c"><span class="pl-c">#</span> In global scope all works:</span>
<span class="pl-c1">@show</span> tmm<span class="pl-k">.</span>sig, fmm<span class="pl-k">.</span>sig
<span class="pl-c1">@show</span> tm<span class="pl-k">.</span>sig, fm<span class="pl-k">.</span>sig
<span class="pl-c1">@show</span> tm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">fm.sig</span> <span class="pl-c"><span class="pl-c">#</span> true</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">tm.sig</span> <span class="pl-c"><span class="pl-c">#</span> true</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k">==</span>tm<span class="pl-k">.</span>sig <span class="pl-c"><span class="pl-c">#</span> false</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k">===</span>tm<span class="pl-k">.</span>sig <span class="pl-c"><span class="pl-c">#</span> false</span>
<span class="pl-c1">@assert</span> <span class="pl-k">!</span>( tm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">fm.sig</span> )
<span class="pl-k">function</span> <span class="pl-en">f</span>(tmm, fmm)
<span class="pl-c1">println</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\n</span>Inside function:<span class="pl-pds">"</span></span>)
tm <span class="pl-k">=</span> <span class="pl-c1">FakeMethod</span>(tmm<span class="pl-k">.</span>sig)
fm <span class="pl-k">=</span> <span class="pl-c1">FakeMethod</span>(fmm<span class="pl-k">.</span>sig)
<span class="pl-c1">@show</span> tmm<span class="pl-k">.</span>sig, fmm<span class="pl-k">.</span>sig
<span class="pl-c1">@show</span> tm<span class="pl-k">.</span>sig, fm<span class="pl-k">.</span>sig
<span class="pl-c1">@show</span> tm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">fm.sig</span> <span class="pl-c"><span class="pl-c">#</span> true!!!!!!!!!</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">tm.sig</span> <span class="pl-c"><span class="pl-c">#</span> true!!!!!!!!!</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k">==</span>tm<span class="pl-k">.</span>sig <span class="pl-c"><span class="pl-c">#</span> false (true before #10380)</span>
<span class="pl-c1">@show</span> fm<span class="pl-k">.</span>sig<span class="pl-k">===</span>tm<span class="pl-k">.</span>sig <span class="pl-c"><span class="pl-c">#</span> false</span>
<span class="pl-c1">@assert</span> <span class="pl-k">!</span>( tm<span class="pl-k">.</span>sig<span class="pl-k"><:</span><span class="pl-c1">fm.sig</span> ) <span class="pl-c"><span class="pl-c">#</span> throws an error here</span>
<span class="pl-k">end</span>
<span class="pl-c1">f</span>(tmm,fmm)</pre></div>
<p dir="auto">Note that it works fine if the type is declared as:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable FakeMethod
sig
end"><pre class="notranslate">immutable FakeMethod
sig
<span class="pl-k">end</span></pre></div> | <p dir="auto">typeassert is sometimes removed incorrectly for arguments of inline functions.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> function f(::Int)
return 1
end
f (generic function with 1 method)
julia>
julia> function f(::Float64)
return 2
end
f (generic function with 2 methods)
julia>
julia> function g(x)
a = x > 0 ? 1.0 : 1
if !isa(a, Int)
return f(a::Int)
else
return f(a::Float64)
end
end
g (generic function with 1 method)
julia>
julia> println(@code_typed g(1))
Any[:($(Expr(:lambda, Any[:x], Any[Any[:a],Any[Any[:x,Int64,0],Any[:a,Any,2]],Any[]], :(begin # none, line 2:
unless (top(slt_int))(0,x::Int64)::Bool goto 0
a = 1.0
goto 1
0:
a = 1
1: # line 3:
unless (top(box))(Bool,(top(not_int))(isa(a::Union(Int64,Float64),Int)::Bool)) goto 2 # line 4:
return 1
goto 3
2: # line 6:
return 2
3:
end::Int64))))]
julia> println(g(1))
1
julia> println(g(-1))
2"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">Int</span>)
<span class="pl-k">return</span> <span class="pl-c1">1</span>
<span class="pl-k">end</span>
f (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)
julia<span class="pl-k">></span>
julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">Float64</span>)
<span class="pl-k">return</span> <span class="pl-c1">2</span>
<span class="pl-k">end</span>
f (generic <span class="pl-k">function</span> with <span class="pl-c1">2</span> methods)
julia<span class="pl-k">></span>
julia<span class="pl-k">></span> <span class="pl-k">function</span> <span class="pl-en">g</span>(x)
a <span class="pl-k">=</span> x <span class="pl-k">></span> <span class="pl-c1">0</span> <span class="pl-k">?</span> <span class="pl-c1">1.0</span> <span class="pl-k">:</span> <span class="pl-c1">1</span>
<span class="pl-k">if</span> <span class="pl-k">!</span><span class="pl-c1">isa</span>(a, Int)
<span class="pl-k">return</span> <span class="pl-c1">f</span>(a<span class="pl-k">::</span><span class="pl-c1">Int</span>)
<span class="pl-k">else</span>
<span class="pl-k">return</span> <span class="pl-c1">f</span>(a<span class="pl-k">::</span><span class="pl-c1">Float64</span>)
<span class="pl-k">end</span>
<span class="pl-k">end</span>
g (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)
julia<span class="pl-k">></span>
julia<span class="pl-k">></span> <span class="pl-c1">println</span>(<span class="pl-c1">@code_typed</span> <span class="pl-c1">g</span>(<span class="pl-c1">1</span>))
Any[:(<span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:lambda</span>, Any[<span class="pl-c1">:x</span>], Any[Any[<span class="pl-c1">:a</span>],Any[Any[<span class="pl-c1">:x</span>,Int64,<span class="pl-c1">0</span>],Any[<span class="pl-c1">:a</span>,Any,<span class="pl-c1">2</span>]],Any[]], :(<span class="pl-k">begin</span> <span class="pl-c"><span class="pl-c">#</span> none, line 2:</span>
unless (<span class="pl-c1">top</span>(slt_int))(<span class="pl-c1">0</span>,x<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Bool</span> goto <span class="pl-c1">0</span>
a <span class="pl-k">=</span> <span class="pl-c1">1.0</span>
goto <span class="pl-c1">1</span>
<span class="pl-c1">0</span><span class="pl-k">:</span>
a <span class="pl-k">=</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span><span class="pl-k">:</span> <span class="pl-c"><span class="pl-c">#</span> line 3:</span>
unless (<span class="pl-c1">top</span>(box))(Bool,(<span class="pl-c1">top</span>(not_int))(<span class="pl-c1">isa</span>(a<span class="pl-k">::</span><span class="pl-c1">Union(Int64,Float64)</span>,Int)<span class="pl-k">::</span><span class="pl-c1">Bool</span>)) goto <span class="pl-c1">2</span> <span class="pl-c"><span class="pl-c">#</span> line 4:</span>
<span class="pl-k">return</span> <span class="pl-c1">1</span>
goto <span class="pl-c1">3</span>
<span class="pl-c1">2</span><span class="pl-k">:</span> <span class="pl-c"><span class="pl-c">#</span> line 6:</span>
<span class="pl-k">return</span> <span class="pl-c1">2</span>
<span class="pl-c1">3</span><span class="pl-k">:</span>
<span class="pl-k">end</span><span class="pl-k">::</span><span class="pl-c1">Int64</span>))))]
julia<span class="pl-k">></span> <span class="pl-c1">println</span>(<span class="pl-c1">g</span>(<span class="pl-c1">1</span>))
<span class="pl-c1">1</span>
julia<span class="pl-k">></span> <span class="pl-c1">println</span>(<span class="pl-c1">g</span>(<span class="pl-k">-</span><span class="pl-c1">1</span>))
<span class="pl-c1">2</span></pre></div>
<p dir="auto">P.S. As recently brought up on the dev list, it would be nice to have a <code class="notranslate">@inbounds</code> equivalent for <code class="notranslate">typeassert</code> to be used (correctly) in this case.</p> | 1 |
<p dir="auto">When I provide <code class="notranslate">dataSource</code> values in form of array with objects instead of strings with duplicated <code class="notranslate">text</code> values, for example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[
{ text: 'Some Text', value: <span>{someFirstValue}</span> },
{ text: 'Some Text', value: <span>{someSecondValue}</span> }
]"><pre class="notranslate"><code class="notranslate">[
{ text: 'Some Text', value: <span>{someFirstValue}</span> },
{ text: 'Some Text', value: <span>{someSecondValue}</span> }
]
</code></pre></div>
<p dir="auto"><code class="notranslate">AutoComplete</code> component renders only one item in <code class="notranslate">Menu</code> because Menu children keys are not unique. It also logs a React error with <code class="notranslate">flattenChildren(...)</code> warning.</p>
<p dir="auto">I know that providing duplicated <code class="notranslate">text</code> values to <code class="notranslate">dataSource</code> is not something normal but I believe that it should be possible. For example I discovered this bug when trying to implement <code class="notranslate">AutoComplete</code> for searching for Facebook fanpages, there could be several fanpages with the same name and I would like to show them all in <code class="notranslate">Menu</code> and provide some additional context for helping user to find desired fanpage. By additional context I mean something like id, photo, maybe link to fanpage.</p>
<p dir="auto">I've tracked down fragment of <code class="notranslate">AutoComplete</code> component code that causes this error <a href="https://github.com/callemall/material-ui/blob/master/src/auto-complete.jsx#L387">link</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (typeof request.text === 'string') {
return React.cloneElement(request.value, {
key: request.text,
disableFocusRipple: this.props.disableFocusRipple,
});
}"><pre class="notranslate"><code class="notranslate">if (typeof request.text === 'string') {
return React.cloneElement(request.value, {
key: request.text,
disableFocusRipple: this.props.disableFocusRipple,
});
}
</code></pre></div>
<p dir="auto">And I would be more than happy to provide a PR with fix.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">There seems to be a problem with the typings for TableCellClassKey. In TableCell.d.ts the classname for compact cells is <code class="notranslate">paddingCompact</code>, but in TableCell.js, I see <code class="notranslate">paddingDense</code> being used.</p>
<p dir="auto">This results in the following warning when trying to override the compact padding:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Material-UI: you are trying to override a style that does not exist.
Fix the `paddingCompact` key of `theme.overrides.MuiTableCell`."><pre class="notranslate"><code class="notranslate">Warning: Material-UI: you are trying to override a style that does not exist.
Fix the `paddingCompact` key of `theme.overrides.MuiTableCell`.
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="theme.overrides.MuiTableCell = {
paddingCompact: {
padding: '8px 4px',
},
};"><pre class="notranslate"><code class="notranslate">theme.overrides.MuiTableCell = {
paddingCompact: {
padding: '8px 4px',
},
};
</code></pre></div>
<p dir="auto">Version: latest beta version</p> | 0 |
<p dir="auto">This is all I see when right clicking on the task bar icon.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1727302/13333908/31b2e5d0-dc01-11e5-993a-ea99da05dd9d.png"><img src="https://cloud.githubusercontent.com/assets/1727302/13333908/31b2e5d0-dc01-11e5-993a-ea99da05dd9d.png" alt="untitled" style="max-width: 100%;"></a></p> | <ul dir="auto">
<li>VSCode Version: 0.10.12-alpha</li>
<li>OS Version: MAC OS X EI captian (Version 10.11.2)</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>launch app and play around help menu to make application to be crashed (current behavior) or try to perform any action which makes VSCode to be crashed on MAC.</li>
<li>Once you get the alert window for crash click on "Reopen" button and verify application behavior.</li>
</ol>
<p dir="auto">Actual:</p>
<ol dir="auto">
<li>VSCode re-launched successfully but it is not displaying in the active program list at the bottom right corner where all the active programs are listed.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13892695/5bb66534-ed16-11e5-8756-78ae41f72e50.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13892695/5bb66534-ed16-11e5-8756-78ae41f72e50.png" alt="image" style="max-width: 100%;"></a></li>
<li>Menu bar at the top is not changing according to VSCode so MAC is unable to recognize VSCode active session. Menu bar items are displaying for the last active window though the focus is on VScode. In my case it was "Safari".<br>
Note: I am not certain if this is the common behavior on MAC for crashed app.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17735796/13892624/e44c1f0c-ed15-11e5-9ee9-3a07fb016b82.png"><img src="https://cloud.githubusercontent.com/assets/17735796/13892624/e44c1f0c-ed15-11e5-9ee9-3a07fb016b82.png" alt="image" style="max-width: 100%;"></a><br>
3. When I try to uninstall app, it is keep throwing pop-up that the app is running and can't trash. But there is no active session anywhere. I observed that the app stuck with Finder and user has to forcefully close finder first. After forcefully closing finder and re-launching VSCode , it is working as expected.</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I was trying to profile the <a href="https://github.com/guolas/julia_test/commit/e365ca510f82b752ccd759421b12567e86c8d452">code</a> provided in <a href="https://github.com/JuliaLang/julia/issues/3965" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/3965/hovercard">this</a> OpenBLAS issue.</p>
<p dir="auto">It was a simple modification that wraps the code inside a function and then calls it</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function f()
tic()
for ii in 1:1e4
# BD
W_bd, S, U = bd_precoding(H, antennas_tx, antennas_rx)
p_tx_bd = equal_power_assignment(W_bd, antennas_tx, antennas_rx, p_max)
....
stream_rate_bd = log2(1 + p_tx_bd .* S / sigma_n)
....
# ZF
W_zf = zf_precoding(H)
p_tx_zf = equal_power_assignment(W_zf, antennas_tx, antennas_rx, p_max)
stream_rate_zf = log2(1 + p_tx_zf * ones(number_of_bs * antennas_rx) / sigma_n)
end
toc()
end
@profile f()"><pre class="notranslate"><code class="notranslate">function f()
tic()
for ii in 1:1e4
# BD
W_bd, S, U = bd_precoding(H, antennas_tx, antennas_rx)
p_tx_bd = equal_power_assignment(W_bd, antennas_tx, antennas_rx, p_max)
....
stream_rate_bd = log2(1 + p_tx_bd .* S / sigma_n)
....
# ZF
W_zf = zf_precoding(H)
p_tx_zf = equal_power_assignment(W_zf, antennas_tx, antennas_rx, p_max)
stream_rate_zf = log2(1 + p_tx_zf * ones(number_of_bs * antennas_rx) / sigma_n)
end
toc()
end
@profile f()
</code></pre></div>
<p dir="auto">However, when I ran this code, in the first 2 instances I got a <code class="notranslate">segmentation fault 11</code>. After that the code just went into an non-terminating state, and I had to stop processing after around 5 mins of execution.</p>
<p dir="auto"><code class="notranslate">htop</code> was showing cores being used, so it's possible that the code was running but was terribly slowing down due to the profiler, or it entered some kind of infinite loop.</p>
<p dir="auto">I ran this code a couple of times (in original) without the <code class="notranslate">@profile</code> and it completed comfortable after about 80 seconds.</p> | <p dir="auto">If I fully specify the type parameters for a constructor and the arguments are compatible, I expected it to work. However, I'm seeing errors from the default constructor:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> struct Struct1{T,S>:T}
x::S
end
julia> Struct1{Int,Real}(0)
ERROR: UndefVarError: S not defined
...
julia> struct Struct2{T,S>:T}
x::S
Struct2{T,S}(x) where {T,S} = new{T,S}(x) # no bound for S
end
julia> Struct2{Int,Real}(0)
Struct2{Int64, Real}(0)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">struct</span> Struct1{T,S<span class="pl-k">>:</span><span class="pl-c1">T</span>}
x<span class="pl-k">::</span><span class="pl-c1">S</span>
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-c1">Struct1</span><span class="pl-c1">{Int,Real}</span>(<span class="pl-c1">0</span>)
ERROR<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> S not defined
<span class="pl-k">...</span>
julia<span class="pl-k">></span> <span class="pl-k">struct</span> Struct2{T,S<span class="pl-k">>:</span><span class="pl-c1">T</span>}
x<span class="pl-k">::</span><span class="pl-c1">S</span>
<span class="pl-en">Struct2</span><span class="pl-c1">{T,S}</span>(x) <span class="pl-k">where</span> {T,S} <span class="pl-k">=</span> <span class="pl-c1">new</span><span class="pl-c1">{T,S}</span>(x) <span class="pl-c"><span class="pl-c">#</span> no bound for S</span>
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-c1">Struct2</span><span class="pl-c1">{Int,Real}</span>(<span class="pl-c1">0</span>)
<span class="pl-c1">Struct2</span><span class="pl-c1">{Int64, Real}</span>(<span class="pl-c1">0</span>)</pre></div>
<p dir="auto">I can also get the same error with a manual constructor with the same bound:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> struct Struct3{T,S>:T}
x::S
Struct3{T,S}(x) where {T,S>:T} = new{T,S}(x)
end
julia> Struct3{Int,Real}(0)
ERROR: UndefVarError: S not defined
..."><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">struct</span> Struct3{T,S<span class="pl-k">>:</span><span class="pl-c1">T</span>}
x<span class="pl-k">::</span><span class="pl-c1">S</span>
<span class="pl-en">Struct3</span><span class="pl-c1">{T,S}</span>(x) <span class="pl-k">where</span> {T,S<span class="pl-k">>:</span><span class="pl-c1">T</span>} <span class="pl-k">=</span> <span class="pl-c1">new</span><span class="pl-c1">{T,S}</span>(x)
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-c1">Struct3</span><span class="pl-c1">{Int,Real}</span>(<span class="pl-c1">0</span>)
ERROR<span class="pl-k">:</span> UndefVarError<span class="pl-k">:</span> S not defined
<span class="pl-k">...</span></pre></div>
<p dir="auto">But, interestingly, it doesn't happen with the upper bound <code class="notranslate">T<:S</code></p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> struct Struct4{S,T<:S}
x::S
end
julia> Struct4{Real,Int}(0)
Struct4{Real, Int64}(0)
julia> struct Struct5{S,T<:S}
x::S
Struct5{S,T}(x) where {S,T<:S} = new{S,T}(x)
end
julia> Struct5{Real,Int}(0)
Struct5{Real, Int64}(0)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">struct</span> Struct4{S,T<span class="pl-k"><:</span><span class="pl-c1">S</span>}
x<span class="pl-k">::</span><span class="pl-c1">S</span>
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-c1">Struct4</span><span class="pl-c1">{Real,Int}</span>(<span class="pl-c1">0</span>)
<span class="pl-c1">Struct4</span><span class="pl-c1">{Real, Int64}</span>(<span class="pl-c1">0</span>)
julia<span class="pl-k">></span> <span class="pl-k">struct</span> Struct5{S,T<span class="pl-k"><:</span><span class="pl-c1">S</span>}
x<span class="pl-k">::</span><span class="pl-c1">S</span>
<span class="pl-en">Struct5</span><span class="pl-c1">{S,T}</span>(x) <span class="pl-k">where</span> {S,T<span class="pl-k"><:</span><span class="pl-c1">S</span>} <span class="pl-k">=</span> <span class="pl-c1">new</span><span class="pl-c1">{S,T}</span>(x)
<span class="pl-k">end</span>
julia<span class="pl-k">></span> <span class="pl-c1">Struct5</span><span class="pl-c1">{Real,Int}</span>(<span class="pl-c1">0</span>)
<span class="pl-c1">Struct5</span><span class="pl-c1">{Real, Int64}</span>(<span class="pl-c1">0</span>)</pre></div>
<p dir="auto">I wonder if this is a symptom of what <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a> described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="787322863" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/39280" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/39280/hovercard?comment_id=763077129&comment_type=issue_comment" href="https://github.com/JuliaLang/julia/issues/39280#issuecomment-763077129">#39280 (comment)</a></p>
<blockquote>
<p dir="auto">It helps here to understand that two different processes are happening: (1) picking a method to call, and (2) once inside the method, determining the value of <code class="notranslate">T</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="787266794" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/39277" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/39277/hovercard" href="https://github.com/JuliaLang/julia/issues/39277">#39277</a> has a similar concern).</p>
</blockquote>
<p dir="auto">But, since <code class="notranslate">Struct1{Int,Real}(0)</code> specifies the type, would it be possible to use the specified types as-is in the method body?</p> | 0 |
<h3 dir="auto">System Info</h3>
<p dir="auto">The PEFT methods freeze the bulk of the transformer, apart from an external module.</p>
<p dir="auto">When I enable gradient checkpointing and train with these models or even if I simply freeze an embedding layer of a normal model, training breaks. So this problem is not specific to PEFT: gradient_checkpointing + frozen first parameter = Error</p>
<p dir="auto">But if I do</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for n, param in model.named_parameters():
param.requires_grad = True
break"><pre class="notranslate"><code class="notranslate"> for n, param in model.named_parameters():
param.requires_grad = True
break
</code></pre></div>
<p dir="auto">it trains successfully. So it seems like there is a check if the first parameter has a gradient. Ideally, I would not have to set the first parameter (embedding) to True, as I want the whole model including embeddings frozen.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
/admin/miniconda3/envs/peft/lib/python3.10/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /admin/peft/model/model_training/trainer.py:48 │
│ 0 in <module> │
│ │
│ │
│ │
│ /admin/peft/model/model_training/trainer.py:47 │
│ 4 in main │
│ │
│ 471 │ │ compute_metrics=partial(compute_metrics, metrics=metrics, preprocess_fns=preproc │
│ 472 │ │ preprocess_logits_for_metrics=preprocess_logits_for_metrics, │
│ 473 │ ) │
│ ❱ 474 │ trainer.train(resume_from_checkpoint=training_conf.resume_from_checkpoint) │
│ 475 │ trainer.save_model() │
│ 476 │ tokenizer.save_pretrained(output_dir) │
│ 477 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:1639 in train │
│ │
│ 1636 │ │ inner_training_loop = find_executable_batch_size( │
│ 1637 │ │ │ self._inner_training_loop, self._train_batch_size, args.auto_find_batch_size │
│ 1638 │ │ ) │
│ ❱ 1639 │ │ return inner_training_loop( │
│ 1640 │ │ │ args=args, │
│ 1641 │ │ │ resume_from_checkpoint=resume_from_checkpoint, │
│ 1642 │ │ │ trial=trial, │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:1906 in _inner_training_loop │
│ │
│ 1903 │ │ │ │ │ with model.no_sync(): │
│ 1904 │ │ │ │ │ │ tr_loss_step = self.training_step(model, inputs) │
│ 1905 │ │ │ │ else: │
│ ❱ 1906 │ │ │ │ │ tr_loss_step = self.training_step(model, inputs) │
│ 1907 │ │ │ │ │
│ 1908 │ │ │ │ if ( │
│ 1909 │ │ │ │ │ args.logging_nan_inf_filter │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:2668 in training_step │
│ │
│ 2665 │ │ │ │ scaled_loss.backward() │
│ 2666 │ │ elif self.deepspeed: │
│ 2667 │ │ │ # loss gets scaled under gradient_accumulation_steps in deepspeed │
│ ❱ 2668 │ │ │ loss = self.deepspeed.backward(loss) │
│ 2669 │ │ else: │
│ 2670 │ │ │ loss.backward() │
│ 2671 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/uti │
│ ls/nvtx.py:11 in wrapped_fn │
│ │
│ 8 │ function call.""" │
│ 9 │ def wrapped_fn(*args, **kwargs): │
│ 10 │ │ get_accelerator().range_push(func.__qualname__) │
│ ❱ 11 │ │ ret_val = func(*args, **kwargs) │
│ 12 │ │ get_accelerator().range_pop() │
│ 13 │ │ return ret_val │
│ 14 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/engine.py:1974 in backward │
│ │
│ 1971 │ │ if self.zero_optimization(): │
│ 1972 │ │ │ self.optimizer.is_gradient_accumulation_boundary = self.is_gradient_accumula │
│ 1973 │ │ │ ) │
│ ❱ 1974 │ │ │ self.optimizer.backward(loss, retain_graph=retain_graph) │
│ 1975 │ │ elif self.amp_enabled(): │
│ 1976 │ │ │ # AMP requires delaying unscale when inside gradient accumulation boundaries │
│ 1977 │ │ │ # https://nvidia.github.io/apex/advanced.html#gradient-accumulation-across-i │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/zero/stage_1_and_2.py:2028 in backward │
│ │
│ 2025 │ │ │ scaled_loss = self.external_loss_scale * loss │
│ 2026 │ │ │ scaled_loss.backward() │
│ 2027 │ │ else: │
│ ❱ 2028 │ │ │ self.loss_scaler.backward(loss.float(), retain_graph=retain_graph) │
│ 2029 │ │
│ 2030 │ def check_overflow(self, partition_gradients=True): │
│ 2031 │ │ self._check_overflow(partition_gradients) │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/fp16/loss_scaler.py:54 in backward │
│ │
│ 51 │ │
│ 52 │ def backward(self, loss, retain_graph=False): │
│ 53 │ │ scaled_loss = loss * self.loss_scale │
│ ❱ 54 │ │ scaled_loss.backward(retain_graph=retain_graph) │
│ 55 │
│ 56 │
│ 57 class LossScaler(LossScalerBase): │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/torch/_tensor │
│ .py:488 in backward │
│ │
│ 485 │ │ │ │ create_graph=create_graph, │
│ 486 │ │ │ │ inputs=inputs, │
│ 487 │ │ │ ) │
│ ❱ 488 │ │ torch.autograd.backward( │
│ 489 │ │ │ self, gradient, retain_graph, create_graph, inputs=inputs │
│ 490 │ │ ) │
│ 491 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/torch/autogra │
│ d/__init__.py:197 in backward │
│ │
│ 194 │ # The reason we repeat same the comment below is that │
│ 195 │ # some Python versions print out the first line of a multi-line function │
│ 196 │ # calls in the traceback and some print out the last line │
│ ❱ 197 │ Variable._execution_engine.run_backward( # Calls into the C++ engine to run the bac │
│ 198 │ │ tensors, grad_tensors_, retain_graph, create_graph, inputs, │
│ 199 │ │ allow_unreachable=True, accumulate_grad=True) # Calls into the C++ engine to ru │
│ 200 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn"><pre class="notranslate"><code class="notranslate"> warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
/admin/miniconda3/envs/peft/lib/python3.10/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /admin/peft/model/model_training/trainer.py:48 │
│ 0 in <module> │
│ │
│ │
│ │
│ /admin/peft/model/model_training/trainer.py:47 │
│ 4 in main │
│ │
│ 471 │ │ compute_metrics=partial(compute_metrics, metrics=metrics, preprocess_fns=preproc │
│ 472 │ │ preprocess_logits_for_metrics=preprocess_logits_for_metrics, │
│ 473 │ ) │
│ ❱ 474 │ trainer.train(resume_from_checkpoint=training_conf.resume_from_checkpoint) │
│ 475 │ trainer.save_model() │
│ 476 │ tokenizer.save_pretrained(output_dir) │
│ 477 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:1639 in train │
│ │
│ 1636 │ │ inner_training_loop = find_executable_batch_size( │
│ 1637 │ │ │ self._inner_training_loop, self._train_batch_size, args.auto_find_batch_size │
│ 1638 │ │ ) │
│ ❱ 1639 │ │ return inner_training_loop( │
│ 1640 │ │ │ args=args, │
│ 1641 │ │ │ resume_from_checkpoint=resume_from_checkpoint, │
│ 1642 │ │ │ trial=trial, │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:1906 in _inner_training_loop │
│ │
│ 1903 │ │ │ │ │ with model.no_sync(): │
│ 1904 │ │ │ │ │ │ tr_loss_step = self.training_step(model, inputs) │
│ 1905 │ │ │ │ else: │
│ ❱ 1906 │ │ │ │ │ tr_loss_step = self.training_step(model, inputs) │
│ 1907 │ │ │ │ │
│ 1908 │ │ │ │ if ( │
│ 1909 │ │ │ │ │ args.logging_nan_inf_filter │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/transformers/ │
│ trainer.py:2668 in training_step │
│ │
│ 2665 │ │ │ │ scaled_loss.backward() │
│ 2666 │ │ elif self.deepspeed: │
│ 2667 │ │ │ # loss gets scaled under gradient_accumulation_steps in deepspeed │
│ ❱ 2668 │ │ │ loss = self.deepspeed.backward(loss) │
│ 2669 │ │ else: │
│ 2670 │ │ │ loss.backward() │
│ 2671 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/uti │
│ ls/nvtx.py:11 in wrapped_fn │
│ │
│ 8 │ function call.""" │
│ 9 │ def wrapped_fn(*args, **kwargs): │
│ 10 │ │ get_accelerator().range_push(func.__qualname__) │
│ ❱ 11 │ │ ret_val = func(*args, **kwargs) │
│ 12 │ │ get_accelerator().range_pop() │
│ 13 │ │ return ret_val │
│ 14 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/engine.py:1974 in backward │
│ │
│ 1971 │ │ if self.zero_optimization(): │
│ 1972 │ │ │ self.optimizer.is_gradient_accumulation_boundary = self.is_gradient_accumula │
│ 1973 │ │ │ ) │
│ ❱ 1974 │ │ │ self.optimizer.backward(loss, retain_graph=retain_graph) │
│ 1975 │ │ elif self.amp_enabled(): │
│ 1976 │ │ │ # AMP requires delaying unscale when inside gradient accumulation boundaries │
│ 1977 │ │ │ # https://nvidia.github.io/apex/advanced.html#gradient-accumulation-across-i │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/zero/stage_1_and_2.py:2028 in backward │
│ │
│ 2025 │ │ │ scaled_loss = self.external_loss_scale * loss │
│ 2026 │ │ │ scaled_loss.backward() │
│ 2027 │ │ else: │
│ ❱ 2028 │ │ │ self.loss_scaler.backward(loss.float(), retain_graph=retain_graph) │
│ 2029 │ │
│ 2030 │ def check_overflow(self, partition_gradients=True): │
│ 2031 │ │ self._check_overflow(partition_gradients) │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/deepspeed/run │
│ time/fp16/loss_scaler.py:54 in backward │
│ │
│ 51 │ │
│ 52 │ def backward(self, loss, retain_graph=False): │
│ 53 │ │ scaled_loss = loss * self.loss_scale │
│ ❱ 54 │ │ scaled_loss.backward(retain_graph=retain_graph) │
│ 55 │
│ 56 │
│ 57 class LossScaler(LossScalerBase): │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/torch/_tensor │
│ .py:488 in backward │
│ │
│ 485 │ │ │ │ create_graph=create_graph, │
│ 486 │ │ │ │ inputs=inputs, │
│ 487 │ │ │ ) │
│ ❱ 488 │ │ torch.autograd.backward( │
│ 489 │ │ │ self, gradient, retain_graph, create_graph, inputs=inputs │
│ 490 │ │ ) │
│ 491 │
│ │
│ /admin//miniconda3/envs/peft/lib/python3.10/site-packages/torch/autogra │
│ d/__init__.py:197 in backward │
│ │
│ 194 │ # The reason we repeat same the comment below is that │
│ 195 │ # some Python versions print out the first line of a multi-line function │
│ 196 │ # calls in the traceback and some print out the last line │
│ ❱ 197 │ Variable._execution_engine.run_backward( # Calls into the C++ engine to run the bac │
│ 198 │ │ tensors, grad_tensors_, retain_graph, create_graph, inputs, │
│ 199 │ │ allow_unreachable=True, accumulate_grad=True) # Calls into the C++ engine to ru │
│ 200 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
</code></pre></div>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<p dir="auto">from transformers import AutoModel</p>
<p dir="auto">from peft import LoraConfig, get_peft_model<br>
model = AutoModel.from_pretrained('decapoda-research/llama-7b-hf')<br>
config = LoraConfig(<br>
r=16,<br>
lora_alpha=32,<br>
target_modules=["q_proj", "k_proj", "v_proj", "o_proj"],<br>
lora_dropout=0.05,<br>
bias="none",<br>
task_type="CAUSAL_LM",<br>
)<br>
model = get_peft_model(model, config)</p>
<p dir="auto">and then proceed to train with gradient_checkpointing enabled.</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Gradient checkpointing shouldn't affect whether a subset of parameters are frozen. As PEFT models are increasingly popular as well as gradient_checkpointing it makes sense to get to the bottom of this bug.</p> | <h1 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature request</h1>
<p dir="auto">I think it'd be nice to have a simple way to preprocess the logits before caching them for computing metrics.</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">When the <code class="notranslate">Trainer</code> <code class="notranslate">compute_metrics</code> are set, during evaluation the logits are accumulated (some in GPU memory, for <code class="notranslate">args.eval_accumulation_steps</code> steps; all in RAM). For some models, it will almost certainly lead to out of memory problems.</p>
<p dir="auto">For instance, for a language model, this means storing in RAM a tensor of size [eval ds size, sequence length, vocab size].</p>
<p dir="auto">In many cases, what is needed to compute metrics is just some reduction of the logits. For example: <code class="notranslate">logits.argmax(dim=-1)</code>.</p>
<p dir="auto">I know I can subclass <code class="notranslate">Trainer</code> for this and redefine <code class="notranslate">evaluation_loop</code>, just wanted to know if you'd consider a more generic solution that prevents everyone that needs the feature from duplicating the rest of the code of <code class="notranslate">evaluation_loop</code>. I've seen more people running into the same issue. For instance:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="741166156" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/8476" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/8476/hovercard" href="https://github.com/huggingface/transformers/issues/8476">#8476</a><br>
<a href="https://discuss.huggingface.co/t/cuda-out-of-memory-when-using-trainer-with-compute-metrics/2941" rel="nofollow">https://discuss.huggingface.co/t/cuda-out-of-memory-when-using-trainer-with-compute-metrics/2941</a><br>
<a href="https://discuss.huggingface.co/t/cuda-out-of-memory-during-evaluation-but-training-is-fine/1783/4" rel="nofollow">https://discuss.huggingface.co/t/cuda-out-of-memory-during-evaluation-but-training-is-fine/1783/4</a></p>
<h2 dir="auto">Your contribution</h2>
<p dir="auto">I was thinking about something like adding a <code class="notranslate">preprocess_logits_for_metrics</code> parameter to <code class="notranslate">TrainingArguments</code> of type Callable</p>
<p dir="auto">If you don't set the parameter, the default is None and everything would work as always. If you set it, the logits are passed to <code class="notranslate">args.preprocess_logits_for_metrics</code> and its output is what's cached.</p>
<p dir="auto">The main modification would be this in <code class="notranslate">Trainer.evaluation_loop</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Update containers on host
...
if logits is not None:
logits = self._pad_across_processes(logits)
logits = self._nested_gather(logits)
if self.args.preprocess_logits_for_metrics is not None:
logits = self.args.preprocess_logits_for_metrics(logits)
preds_host = logits if preds_host is None else nested_concat(preds_host, logits, padding_index=-100)"><pre class="notranslate"><code class="notranslate"># Update containers on host
...
if logits is not None:
logits = self._pad_across_processes(logits)
logits = self._nested_gather(logits)
if self.args.preprocess_logits_for_metrics is not None:
logits = self.args.preprocess_logits_for_metrics(logits)
preds_host = logits if preds_host is None else nested_concat(preds_host, logits, padding_index=-100)
</code></pre></div>
<p dir="auto">Do you think it's worth it? If you do, I can submit a PR.</p>
<p dir="auto">I tag <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a> because I think he's worked quite a lot with the training loop, but I'm open to receive feedback from anyone.</p> | 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/factorialize-a-number#?solution=var%20count%3D1%3B%0Afunction%20factorialize%28num%29%20%7B%0A%20%20for%28var%20i%3D1%3B%20i%3C%3Dnum%3Bi%2B%2B%29%7B%0A%20%20%20%20%0A%20%20%20%20count%3D%20count%20*%20i%3B%0A%20%20%20%20%0A%20%20%7D%0A%20%20return%20count%3B%0A%20%20%0A%7D%0A%0Afactorialize%280%29%3B%0A" rel="nofollow">Factorialize a Number</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var count=1;
function factorialize(num) {
for(var i=1; i<=num;i++){
count= count * i;
}
return count;
}
factorialize(0);
"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">count</span><span class="pl-c1">=</span><span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">factorialize</span><span class="pl-kos">(</span><span class="pl-s1">num</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span><span class="pl-c1">=</span><span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1"><=</span><span class="pl-s1">num</span><span class="pl-kos">;</span><span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-s1">count</span><span class="pl-c1">=</span> <span class="pl-s1">count</span> <span class="pl-c1">*</span> <span class="pl-s1">i</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">count</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">factorialize</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <h4 dir="auto">Challenge Name</h4>
<p dir="auto">Mainly JavaScript challenges</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">We've had many coding issues made on GitHub (a list of some from the past few months: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163600609" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9532" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9532/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9532">#9532</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="160217089" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9137" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9137/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9137">#9137</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159891587" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9118" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9118/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9118">#9118</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158433844" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/8940" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/8940/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/8940">#8940</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159492002" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9058" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9058/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9058">#9058</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152881272" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/8436" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/8436/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/8436">#8436</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="150636738" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/8266" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/8266/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/8266">#8266</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="148879419" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/8156" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/8156/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/8156">#8156</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="148062631" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/8092" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/8092/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/8092">#8092</a> [comment within this issue], <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="142091010" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7655" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7655/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7655">#7655</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138860379" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7441" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7441/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7441">#7441</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="142057158" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7629" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7629/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7629">#7629</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139386806" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7470" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7470/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7470">#7470</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139065109" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7453" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7453/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7453">#7453</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138873931" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/7442" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/7442/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/7442">#7442</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122093245" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/5290" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/5290/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/5290">#5290</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119586186" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/4819" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/4819/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/4819">#4819</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119054058" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/4733" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/4733/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/4733">#4733</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118604482" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/4686" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/4686/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/4686">#4686</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115240930" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/4187" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/4187/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/4187">#4187</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111610389" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/3755" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/3755/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/3755">#3755</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96227595" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/1345" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/1345/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/1345">#1345</a>) on why their code doesn't work, which turn out to be because they have a global variable they mutate with their function.</p>
<h4 dir="auto">Proposed Fix (Updated)</h4>
<p dir="auto"><del>Somewhere early in the JavaScript challenges have a note on how the tests work, in that they will only run your function and any global variables mutated in the process will keep their state.</del></p>
<ul dir="auto">
<li>Detect unsafe global variable code and wrap them in isolated blocked scope.</li>
<li>Display a notification in such cases if applicable and tests fail to run.</li>
</ul>
<p dir="auto">cc/ <a class="team-mention js-team-mention notranslate" data-error-text="Failed to load team members" data-id="1720971" data-permission-text="Team members are private" data-url="/orgs/freeCodeCamp/teams/moderators/members" data-hovercard-type="team" data-hovercard-url="/orgs/freeCodeCamp/teams/moderators/hovercard" href="https://github.com/orgs/freeCodeCamp/teams/moderators">@freeCodeCamp/moderators</a></p> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-make-images-mobile-responsive" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-make-images-mobile-responsive</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">My code is correct according to the challenge, but this piece still is marked as undone:<br>
Add a second image with the src of <a href="http://bit.ly/fcc-running-cats" rel="nofollow">http://bit.ly/fcc-running-cats</a>.</p>
<p dir="auto">Screenshot is attached.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7574806/9510999/ab1e9cd6-4c3f-11e5-9476-a4b2381cfbbe.png"><img width="1049" alt="screen shot 2015-08-26 at 10 12 06 pm" src="https://cloud.githubusercontent.com/assets/7574806/9510999/ab1e9cd6-4c3f-11e5-9476-a4b2381cfbbe.png" style="max-width: 100%;"></a></p> | <p dir="auto">Not sure what caused it, and I can't duplicate it.</p>
<p dir="auto">Also, a pink notice popped up saying I had completed all the waypoints and was ready to work on non-profits, which is obviously erroneous.</p> | 0 |
<p dir="auto">ROC-AUC SVM classification results for random, normally distributed data does not produce a <em>symmetric</em> distribution around 0.5. A tail of high ROC-AUC scores can be observed:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/80628104/112497896-510ef180-8d86-11eb-9bf5-2b0f3b65dd9d.png"><img src="https://user-images.githubusercontent.com/80628104/112497896-510ef180-8d86-11eb-9bf5-2b0f3b65dd9d.png" alt="rng" style="max-width: 100%;"></a></p>
<p dir="auto">You can find more information in the Discussion thread (<a href="https://github.com/scikit-learn/scikit-learn/discussions/19712" data-hovercard-type="discussion" data-hovercard-url="/scikit-learn/scikit-learn/discussions/19712/hovercard">link</a>). Here is the code to reproduce the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from sklearn.datasets import make_classification
from sklearn.feature_selection import SelectKBest
from sklearn.model_selection import GridSearchCV, RepeatedStratifiedKFold
from sklearn.metrics import roc_auc_score
from sklearn.pipeline import Pipeline
from sklearn.svm import SVC
import matplotlib.pyplot as plt
import itertools
r = 1
# Data-set dimensions and imbalance to match original data.
X, y = make_classification(n_samples = 105, n_features = 24, weights = [27/105], random_state = r)
scores = list()
for rng in range(100):
X = np.random.normal(size = X.shape)
clf = Pipeline([('anova', SelectKBest()), ('svc', SVC(kernel = 'linear'))])
# Reduced grid-search for convenience
K = [1, 2, 5]
C = [0.1, 1]
space = dict()
space['anova__k'] = K
space['svc__C'] = C
scores_ = list()
cv_out = RepeatedStratifiedKFold(n_splits = 10, n_repeats = 10, random_state = r)
for train_indx, test_indx in cv_out.split(X, y):
X_train, y_train = X[train_indx, :], y[train_indx]
X_test, y_test = X[test_indx, :], y[test_indx]
cv = RepeatedStratifiedKFold(n_splits = 5, n_repeats = 5, random_state = r)
search = GridSearchCV(clf, space, scoring = 'roc_auc', cv = cv, refit = True, n_jobs = -1)
result = search.fit(X_train, y_train)
best_model = result.best_estimator_
y_pred = best_model.decision_function(X_test)
scores_.append(roc_auc_score(y_test, y_pred))
scores.append(scores_)
print('Rng iteration:', rng + 1, '/ 100')
plt.hist(np.mean(np.array(scores), axis = 1))
plt.xlabel('ROC-AUC')
plt.show()"><pre class="notranslate"><code class="notranslate">import numpy as np
from sklearn.datasets import make_classification
from sklearn.feature_selection import SelectKBest
from sklearn.model_selection import GridSearchCV, RepeatedStratifiedKFold
from sklearn.metrics import roc_auc_score
from sklearn.pipeline import Pipeline
from sklearn.svm import SVC
import matplotlib.pyplot as plt
import itertools
r = 1
# Data-set dimensions and imbalance to match original data.
X, y = make_classification(n_samples = 105, n_features = 24, weights = [27/105], random_state = r)
scores = list()
for rng in range(100):
X = np.random.normal(size = X.shape)
clf = Pipeline([('anova', SelectKBest()), ('svc', SVC(kernel = 'linear'))])
# Reduced grid-search for convenience
K = [1, 2, 5]
C = [0.1, 1]
space = dict()
space['anova__k'] = K
space['svc__C'] = C
scores_ = list()
cv_out = RepeatedStratifiedKFold(n_splits = 10, n_repeats = 10, random_state = r)
for train_indx, test_indx in cv_out.split(X, y):
X_train, y_train = X[train_indx, :], y[train_indx]
X_test, y_test = X[test_indx, :], y[test_indx]
cv = RepeatedStratifiedKFold(n_splits = 5, n_repeats = 5, random_state = r)
search = GridSearchCV(clf, space, scoring = 'roc_auc', cv = cv, refit = True, n_jobs = -1)
result = search.fit(X_train, y_train)
best_model = result.best_estimator_
y_pred = best_model.decision_function(X_test)
scores_.append(roc_auc_score(y_test, y_pred))
scores.append(scores_)
print('Rng iteration:', rng + 1, '/ 100')
plt.hist(np.mean(np.array(scores), axis = 1))
plt.xlabel('ROC-AUC')
plt.show()
</code></pre></div>
<p dir="auto">I am not sure whether this result is to be expected, is due to a flaw in my code, or something else altogether. It might just as well be a trivial matter and I apologize if this is not the right place to ask: prior to here and in addition to the Discussion thread linked above, I have also asked this question in Stack Overflow (<a href="https://stackoverflow.com/questions/66734960/biased-svm-classification-results-for-random-data" rel="nofollow">link</a>), r/learnpython (<a href="https://www.reddit.com/r/learnpython/comments/mbc0it/biased_svm_classification_results_for_random_data/" rel="nofollow">link</a>) and r/scikit_learn (<a href="https://www.reddit.com/r/scikit_learn/comments/mczikb/biased_svm_classification_results_for_random_data/" rel="nofollow">link</a>) over the past week, receiving no answer.</p>
<p dir="auto">Please let me know if there is anything I can do to help receiving an answer.</p> | <p dir="auto">LSHForest should be deprecated and scheduled for removal in 0.21. It should also warn about having bad performance. cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a></p> | 0 |
<p dir="auto">make does not execute bootsrap in arpack-ng-3.3.0 before configure is called ...</p> | <p dir="auto">Without re-generating and committing configure to repo, every downloader then needs to have correct version of autoconf installed before they can use configure to build it. Having to download and installing autoconf to build another package is onerous.</p> | 1 |
<p dir="auto">I read that there is/was a problem on tray right-clicked event. It is/was triggering clicked as well. I'm not sure it's fixed or not.</p>
<p dir="auto">I'm trying to show the contextMenu only on right-clicked to tray icon in Mac.</p>
<p dir="auto">I tried to preventDefault from click and right-clicked events, no luck. If there is a contextMenu on a tray, It anyway shows the context menu and doesn't run the code i have in the clicked event (I'm showing/hiding the window by single click)</p>
<p dir="auto">I'm looking a way/workaround to show the contextMenu when only right clicked.</p>
<p dir="auto">Tev.</p> | <p dir="auto">I'm not sure what the API would look like, nor am I confident how this would work cross-platform, however the current implementation of the tray context menu is <a href="https://github.com/atom/electron/blob/e4a7352b6299a03a42f545cfec1c45dde60bac41/atom/browser/ui/tray_icon_cocoa.mm#L210-L216">force-bound to the primary click action</a> (at least on Mac).</p>
<p dir="auto">Would rather the ability to perform a different primary action on click but display the context menu on right click.</p>
<p dir="auto">Would it be possible and make sense to expose this kind of configuration? Perhaps exposing the underlying mechanisms (menu + positioning? Not a native dev so <code class="notranslate">¯\_(ツ)_/¯</code>) to recreate a tray context menu without <code class="notranslate">setContextMenu</code>?</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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">我在ProviderConfig.setDispatcher()里面发现了如下代码:<br>
I found the following code in ProviderConfig.setDispatcher():</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public void setDispatcher(String dispatcher) {
checkExtension(Dispatcher.class, Constants.DISPATCHER_KEY, exchanger);
checkExtension(Dispatcher.class, "dispather", exchanger);
this.dispatcher = dispatcher;
}"><pre class="notranslate"><code class="notranslate"> public void setDispatcher(String dispatcher) {
checkExtension(Dispatcher.class, Constants.DISPATCHER_KEY, exchanger);
checkExtension(Dispatcher.class, "dispather", exchanger);
this.dispatcher = dispatcher;
}
</code></pre></div>
<p dir="auto">我不明白为什么需要在这里做这个检查。<br>
I don't understand why this method needs to do this check here.</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/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.7</li>
<li>Operating System version: windows 10</li>
<li>Java version: 14</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>in configuration file, we add: dubbo.protocol.codec=exchange</li>
<li>Startup the server, it throws an exception: No such extension exchange for codec/org.apache.dubbo.remoting.Codec</li>
</ol>
<p dir="auto">I think this is caused by the Codec is Deprecated, while, SPI related code still use Codec, not Codec2</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">"asPath" information should be present in url objects that are passed as<br>
properties to components, as documented in:<br>
<a href="https://github.com/zeit/next.js/blob/master/readme.md#with-link">https://github.com/zeit/next.js/blob/master/readme.md#with-link</a></p>
<blockquote>
<p dir="auto">Each top-level component receives a url property with the following API:</p>
<p dir="auto">...<br>
asPath - String of the actual path (including the query) shows in the browser<br>
...</p>
</blockquote>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">"asPath" is not present in url objects</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Check out the "url" properties of page components to see that "asPath" is missing</li>
</ol>
<h2 dir="auto">Notes</h2>
<p dir="auto">I'm aware that I can get "asPath" from the router object, but it looks like I should be able to get it from the url object as well.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Want to use Next.js in a mobile webapp, OnsenUI component is very rich. Want to use it with Next.js.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">OnsenUI can't SSR. <code class="notranslate">window is not defined</code> error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: window is not defined
at window (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:27:18)
at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:26:16
at onsElements (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:4:82)
at Object.<anonymous> (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:7:2)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:4:145
at Object.<anonymous> (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:7:2)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)"><pre class="notranslate"><code class="notranslate">ReferenceError: window is not defined
at window (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:27:18)
at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/core/src/ons/styler.js:26:16
at onsElements (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:4:82)
at Object.<anonymous> (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/onsenui/js/onsenui.js:7:2)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at /Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:4:145
at Object.<anonymous> (/Users/chris/Projects/my-projects/home_seek/frontend/node_modules/react-onsenui/dist/react-onsenui.js:7:2)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as Ons from 'react-onsenui';
export default ({ handleClick }) => (
<div>
<Ons.Page>
<Ons.Button onClick={handleClick}>Tap me!</Ons.Button>
</Ons.Page>
</div>
);"><pre class="notranslate"><code class="notranslate">import * as Ons from 'react-onsenui';
export default ({ handleClick }) => (
<div>
<Ons.Page>
<Ons.Button onClick={handleClick}>Tap me!</Ons.Button>
</Ons.Page>
</div>
);
</code></pre></div> | 0 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no.</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): EnvVar, optional, defaults, configmap</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): FEATURE REQUEST</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"6+", GitVersion:"v1.6.0-alpha.0", GitCommit:"42fe4ab0270e44c750d77c682e2fcab394aeb392", GitTreeState:"clean", BuildDate:"2016-11-06T01:00:40Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: none</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS 7</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
At the moment, all references described in EvnVars in Pod spec are mandatory.<br>
In different cluster instances (private, public) it might require different content or even variable can be omitted, depending on ConfigMap content for this cluster.<br>
If key is not present in ConfigMap, right now creation of the pod will fail.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
I'd like to extend syntax of EnvVar/valueFrom to allow omitting variable if specified key not found in config map. or have some default value (e.g. "null" in yaml can be treated as "don't put this variable to container). Same in theory applicable to Secretes use cases.</p>
<p dir="auto">Use case:</p>
<ul dir="auto">
<li>cluster might have config map which describes proxy variables: http_proxy, https_proxy, no_proxy, etc.</li>
<li>pod can reference it via</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="env:
- name: http_proxy
valueFrom:
configMapKeyRef:
name: cluster-proxy-config
key: http_proxy
optional: true
- name: https_proxy
valueFrom:
configMapKeyRef:
name: cluster-proxy-config
key: https_proxy
optional: true
- name: ftp_proxy
valueFrom:
configMapKeyRef:
name: cluster-proxy-config
key: ftp_proxy
optional: true
- name: no_proxy
valueFrom:
configMapKeyRef:
name: cluster-proxy-config
key: no_proxy
optional: true"><pre class="notranslate"><span class="pl-ent">env</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">http_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">cluster-proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">http_proxy</span>
<span class="pl-ent">optional</span>: <span class="pl-c1">true</span>
- <span class="pl-ent">name</span>: <span class="pl-s">https_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">cluster-proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">https_proxy</span>
<span class="pl-ent">optional</span>: <span class="pl-c1">true</span>
- <span class="pl-ent">name</span>: <span class="pl-s">ftp_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">cluster-proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">ftp_proxy</span>
<span class="pl-ent">optional</span>: <span class="pl-c1">true</span>
- <span class="pl-ent">name</span>: <span class="pl-s">no_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">cluster-proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">no_proxy</span>
<span class="pl-ent">optional</span>: <span class="pl-c1">true</span></pre></div>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl -f test-case.yaml"><pre class="notranslate"><span class="pl-c1">kubectl -f test-case.yaml</span></pre></div>
<p dir="auto">test-case.yaml:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: v1
data:
proxy.http: http://example.com:8080
proxy.https: http://example.com:8080
proxy.no_proxy: .example.com,127.0.0.1
kind: ConfigMap
metadata:
name: proxy-config
namespace: default
---
apiVersion: v1
kind: Pod
metadata:
name: envpod
spec:
containers:
- name: envcontainer
image: gcr.io/google_containers/busybox
command: [ "/bin/sh", "-c", "env" ]
env:
- name: http_proxy
valueFrom:
configMapKeyRef:
name: proxy-config
key: proxy.http
- name: https_proxy
valueFrom:
configMapKeyRef:
name: proxy-config
key: proxy.http
- name: ftp_proxy
valueFrom:
configMapKeyRef:
name: proxy-config
key: proxy.ftp
- name: no_proxy
valueFrom:
configMapKeyRef:
name: proxy-config
key: proxy.no_proxy
restartPolicy: Never"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span>
<span class="pl-ent">data</span>:
<span class="pl-ent">proxy.http</span>: <span class="pl-s">http://example.com:8080</span>
<span class="pl-ent">proxy.https</span>: <span class="pl-s">http://example.com:8080</span>
<span class="pl-ent">proxy.no_proxy</span>: <span class="pl-s">.example.com,127.0.0.1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">ConfigMap</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">proxy-config</span>
<span class="pl-ent">namespace</span>: <span class="pl-s">default</span>
---
<span class="pl-ent">apiVersion</span>: <span class="pl-c1">v1</span>
<span class="pl-ent">kind</span>: <span class="pl-s">Pod</span>
<span class="pl-ent">metadata</span>:
<span class="pl-ent">name</span>: <span class="pl-s">envpod </span>
<span class="pl-ent">spec</span>:
<span class="pl-ent">containers</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">envcontainer</span>
<span class="pl-ent">image</span>: <span class="pl-s">gcr.io/google_containers/busybox</span>
<span class="pl-ent">command</span>: <span class="pl-s">[ "/bin/sh", "-c", "env" ]</span>
<span class="pl-ent">env</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">http_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">proxy.http</span>
- <span class="pl-ent">name</span>: <span class="pl-s">https_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">proxy.http</span>
- <span class="pl-ent">name</span>: <span class="pl-s">ftp_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">proxy.ftp</span>
- <span class="pl-ent">name</span>: <span class="pl-s">no_proxy</span>
<span class="pl-ent">valueFrom</span>:
<span class="pl-ent">configMapKeyRef</span>:
<span class="pl-ent">name</span>: <span class="pl-s">proxy-config</span>
<span class="pl-ent">key</span>: <span class="pl-s">proxy.no_proxy</span>
<span class="pl-ent">restartPolicy</span>: <span class="pl-s">Never</span></pre></div>
<p dir="auto">Check that pod creation failed:</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="kubectl describe pod envpod | grep Failed"><pre class="notranslate"><span class="pl-c1">kubectl describe pod envpod | grep Failed</span></pre></div>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E1109 11:31:44.493904 3385 util.go:82] Recovered from panic: "sync: negative WaitGroup counter" (sync: negative WaitGroup counter)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:76
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64
/usr/lib/golang/src/runtime/asm_amd64.s:437
/usr/lib/golang/src/runtime/panic.go:423
/usr/lib/golang/src/sync/waitgroup.go:70
/usr/lib/golang/src/sync/waitgroup.go:95
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:368
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:182
<autogenerated>:23
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:252
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:126
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:126
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:127
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96
/usr/lib/golang/src/runtime/asm_amd64.s:1696
--- FAIL: TestUpdate (1.00s)
panic: sync: WaitGroup is reused before previous Wait has returned [recovered]
panic: sync: WaitGroup is reused before previous Wait has returned
goroutine 7 [running]:
testing.tRunner.func1(0xc8201ae990)
/usr/lib/golang/src/testing/testing.go:450 +0x171
sync.(*WaitGroup).Wait(0xc820230b80)
/usr/lib/golang/src/sync/waitgroup.go:128 +0x114
k8s.io/kubernetes/pkg/controller/framework_test.TestUpdate(0xc8201ae990)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:393 +0xb11
testing.tRunner(0xc8201ae990, 0x1887d90)
/usr/lib/golang/src/testing/testing.go:456 +0x98
created by testing.RunTests
/usr/lib/golang/src/testing/testing.go:561 +0x86d
goroutine 1 [chan receive]:
testing.RunTests(0x12fc4c8, 0x1887d60, 0x3, 0x3, 0xc820230a01)
/usr/lib/golang/src/testing/testing.go:562 +0x8ad
testing.(*M).Run(0xc8200d3ee8, 0xc82006f938)
/usr/lib/golang/src/testing/testing.go:494 +0x70
main.main()
k8s.io/kubernetes/pkg/controller/framework/_test/_testmain.go:64 +0x116
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/golang/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x18a6080)
/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67
created by github.com/golang/glog.init.1
/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297
goroutine 8 [chan receive]:
k8s.io/kubernetes/pkg/watch.(*Broadcaster).loop(0xc8201a4800)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/watch/mux.go:198 +0x58
created by k8s.io/kubernetes/pkg/watch.NewBroadcaster
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/watch/mux.go:74 +0x128
goroutine 9 [select]:
k8s.io/kubernetes/pkg/util.Until(0xc8200cff68, 0x3b9aca00, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:128 +0x125
k8s.io/kubernetes/pkg/controller/framework.(*Controller).Run(0xc82023cee0, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96 +0x1c2
created by k8s.io/kubernetes/pkg/controller/framework_test.TestUpdate
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:377 +0x869
goroutine 55 [runnable]:
k8s.io/kubernetes/pkg/client/cache.(*Reflector).watchHandler(0xc8201aeab0, 0x7fa38f8852e8, 0xc820277cb0, 0xc82004dc88, 0xc820241ec0, 0xc8202401e0, 0x0, 0x0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:312 +0x13df
k8s.io/kubernetes/pkg/client/cache.(*Reflector).ListAndWatch(0xc8201aeab0, 0xc8202401e0, 0x0, 0x0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:279 +0x1215
k8s.io/kubernetes/pkg/client/cache.(*Reflector).RunUntil.func1()
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:164 +0x29
k8s.io/kubernetes/pkg/util.Until.func1(0xc820216ea0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:126 +0x4b
k8s.io/kubernetes/pkg/util.Until(0xc820216ea0, 0x3b9aca00, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:127 +0x68
created by k8s.io/kubernetes/pkg/client/cache.(*Reflector).RunUntil
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:164 +0x9a"><pre class="notranslate"><code class="notranslate">E1109 11:31:44.493904 3385 util.go:82] Recovered from panic: "sync: negative WaitGroup counter" (sync: negative WaitGroup counter)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:76
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:64
/usr/lib/golang/src/runtime/asm_amd64.s:437
/usr/lib/golang/src/runtime/panic.go:423
/usr/lib/golang/src/sync/waitgroup.go:70
/usr/lib/golang/src/sync/waitgroup.go:95
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:368
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:182
<autogenerated>:23
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:252
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:126
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:126
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:127
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96
/usr/lib/golang/src/runtime/asm_amd64.s:1696
--- FAIL: TestUpdate (1.00s)
panic: sync: WaitGroup is reused before previous Wait has returned [recovered]
panic: sync: WaitGroup is reused before previous Wait has returned
goroutine 7 [running]:
testing.tRunner.func1(0xc8201ae990)
/usr/lib/golang/src/testing/testing.go:450 +0x171
sync.(*WaitGroup).Wait(0xc820230b80)
/usr/lib/golang/src/sync/waitgroup.go:128 +0x114
k8s.io/kubernetes/pkg/controller/framework_test.TestUpdate(0xc8201ae990)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:393 +0xb11
testing.tRunner(0xc8201ae990, 0x1887d90)
/usr/lib/golang/src/testing/testing.go:456 +0x98
created by testing.RunTests
/usr/lib/golang/src/testing/testing.go:561 +0x86d
goroutine 1 [chan receive]:
testing.RunTests(0x12fc4c8, 0x1887d60, 0x3, 0x3, 0xc820230a01)
/usr/lib/golang/src/testing/testing.go:562 +0x8ad
testing.(*M).Run(0xc8200d3ee8, 0xc82006f938)
/usr/lib/golang/src/testing/testing.go:494 +0x70
main.main()
k8s.io/kubernetes/pkg/controller/framework/_test/_testmain.go:64 +0x116
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/golang/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x18a6080)
/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67
created by github.com/golang/glog.init.1
/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297
goroutine 8 [chan receive]:
k8s.io/kubernetes/pkg/watch.(*Broadcaster).loop(0xc8201a4800)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/watch/mux.go:198 +0x58
created by k8s.io/kubernetes/pkg/watch.NewBroadcaster
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/watch/mux.go:74 +0x128
goroutine 9 [select]:
k8s.io/kubernetes/pkg/util.Until(0xc8200cff68, 0x3b9aca00, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:128 +0x125
k8s.io/kubernetes/pkg/controller/framework.(*Controller).Run(0xc82023cee0, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller.go:96 +0x1c2
created by k8s.io/kubernetes/pkg/controller/framework_test.TestUpdate
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/controller/framework/controller_test.go:377 +0x869
goroutine 55 [runnable]:
k8s.io/kubernetes/pkg/client/cache.(*Reflector).watchHandler(0xc8201aeab0, 0x7fa38f8852e8, 0xc820277cb0, 0xc82004dc88, 0xc820241ec0, 0xc8202401e0, 0x0, 0x0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:312 +0x13df
k8s.io/kubernetes/pkg/client/cache.(*Reflector).ListAndWatch(0xc8201aeab0, 0xc8202401e0, 0x0, 0x0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:279 +0x1215
k8s.io/kubernetes/pkg/client/cache.(*Reflector).RunUntil.func1()
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:164 +0x29
k8s.io/kubernetes/pkg/util.Until.func1(0xc820216ea0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:126 +0x4b
k8s.io/kubernetes/pkg/util.Until(0xc820216ea0, 0x3b9aca00, 0xc8202401e0)
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/util/util.go:127 +0x68
created by k8s.io/kubernetes/pkg/client/cache.(*Reflector).RunUntil
/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/client/cache/reflector.go:164 +0x9a
</code></pre></div>
<p dir="auto">I got this by running the following against commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/d65c61f15a633ef682b34a0b768461695410d7fa/hovercard" href="https://github.com/kubernetes/kubernetes/commit/d65c61f15a633ef682b34a0b768461695410d7fa"><tt>d65c61f</tt></a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export GOPATH=/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go:/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace
go test -c k8s.io/kubernetes/pkg/controller/framework
while true; do GOMAXPROCS=4 ./framework.test -test.run TestUpdate; if [ $? != 0 ]; then break; fi; done"><pre class="notranslate"><code class="notranslate">export GOPATH=/home/vagrant/go/src/k8s.io/kubernetes/_output/local/go:/home/vagrant/go/src/k8s.io/kubernetes/Godeps/_workspace
go test -c k8s.io/kubernetes/pkg/controller/framework
while true; do GOMAXPROCS=4 ./framework.test -test.run TestUpdate; if [ $? != 0 ]; then break; fi; done
</code></pre></div>
<p dir="auto">There have been previous attempts to fix this:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="102465532" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/13058" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/13058/hovercard" href="https://github.com/kubernetes/kubernetes/pull/13058">#13058</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109199580" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/14881" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/14881/hovercard" href="https://github.com/kubernetes/kubernetes/pull/14881">#14881</a></li>
</ul>
<p dir="auto">It appears it's still an issue <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji></p>
<p dir="auto">We're also seeing it in OpenShift (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="113265115" data-permission-text="Title is private" data-url="https://github.com/openshift/origin/issues/5389" data-hovercard-type="issue" data-hovercard-url="/openshift/origin/issues/5389/hovercard" href="https://github.com/openshift/origin/issues/5389">openshift/origin#5389</a>), although our code hasn't pulled in the fix from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109199580" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/14881" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/14881/hovercard" href="https://github.com/kubernetes/kubernetes/pull/14881">#14881</a> quite yet.</p> | 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Previously working example documentation code using tight_layout() and constrained_layout now produces errors.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">One of the failing codes (<a href="https://github.com/NCAR/GeoCAT-examples/blob/master/Plots/Streamlines/NCL_stream_1.py">github link</a>):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""""
NCL_stream_1.py
===============
This script illustrates the following concepts:
- Drawing a black-and-white streamline plot over a map
See following URLs to see the reproduced NCL plot & script:
- Original NCL script: https://www.ncl.ucar.edu/Applications/Scripts/stream_1.ncl
- Original NCL plot: https://www.ncl.ucar.edu/Applications/Images/stream_1_lg.png
Note: The streamlines generated in this plot approximate, but do not exactly
match those generated by the NCL version. This is primarily because the
seed point generation algorithm used by NCL is opaque.
"""
################################################################################
# Import packages:
import numpy as np
import xarray as xr
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import cartopy.feature as cfeature
import geocat.datafiles as gdf
from geocat.viz import util as gvutil
################################################################################
# Read in data:
# Open a netCDF data file using xarray default engine and load the data into xarrays
ds = xr.open_dataset(gdf.get('netcdf_files/uvt.nc'))
# Extract a 2D horizontal slice from the first time step of the 3D U and V variables at the bottom level
U = ds.U.isel(time=0, lev=0)
V = ds.V.isel(time=0, lev=0)
################################################################################
# Plot:
# Generate figure (set its size (width, height) in inches)
plt.figure(figsize=(16, 8))
# Generate axes using Cartopy projection
projection = ccrs.PlateCarree()
ax = plt.axes(projection=projection)
# Use global map
ax.set_global()
# Stream-plot the data
# There is no Xarray streamplot function, yet. So need to call matplotlib.streamplot directly. Not sure why, but can't
# pass xarray.DataArray objects directly: fetch NumPy arrays via 'data' attribute'
ax.streamplot(U.lon.data,
U.lat.data,
U.data,
V.data,
linewidth=1,
density=4,
color='black',
zorder=1)
# Show the plot
plt.tight_layout()
plt.show()
"><pre class="notranslate"><span class="pl-s">"""</span>
<span class="pl-s">NCL_stream_1.py</span>
<span class="pl-s">===============</span>
<span class="pl-s">This script illustrates the following concepts:</span>
<span class="pl-s"> - Drawing a black-and-white streamline plot over a map</span>
<span class="pl-s"></span>
<span class="pl-s">See following URLs to see the reproduced NCL plot & script:</span>
<span class="pl-s"> - Original NCL script: https://www.ncl.ucar.edu/Applications/Scripts/stream_1.ncl</span>
<span class="pl-s"> - Original NCL plot: https://www.ncl.ucar.edu/Applications/Images/stream_1_lg.png</span>
<span class="pl-s"></span>
<span class="pl-s">Note: The streamlines generated in this plot approximate, but do not exactly</span>
<span class="pl-s">match those generated by the NCL version. This is primarily because the </span>
<span class="pl-s">seed point generation algorithm used by NCL is opaque.</span>
<span class="pl-s">"""</span>
<span class="pl-c">################################################################################</span>
<span class="pl-c"># Import packages:</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">xarray</span> <span class="pl-k">as</span> <span class="pl-s1">xr</span>
<span class="pl-k">import</span> <span class="pl-s1">cartopy</span>.<span class="pl-s1">crs</span> <span class="pl-k">as</span> <span class="pl-s1">ccrs</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">cartopy</span>.<span class="pl-s1">feature</span> <span class="pl-k">as</span> <span class="pl-s1">cfeature</span>
<span class="pl-k">import</span> <span class="pl-s1">geocat</span>.<span class="pl-s1">datafiles</span> <span class="pl-k">as</span> <span class="pl-s1">gdf</span>
<span class="pl-k">from</span> <span class="pl-s1">geocat</span>.<span class="pl-s1">viz</span> <span class="pl-k">import</span> <span class="pl-s1">util</span> <span class="pl-k">as</span> <span class="pl-s1">gvutil</span>
<span class="pl-c">################################################################################</span>
<span class="pl-c"># Read in data:</span>
<span class="pl-c"># Open a netCDF data file using xarray default engine and load the data into xarrays</span>
<span class="pl-s1">ds</span> <span class="pl-c1">=</span> <span class="pl-s1">xr</span>.<span class="pl-en">open_dataset</span>(<span class="pl-s1">gdf</span>.<span class="pl-en">get</span>(<span class="pl-s">'netcdf_files/uvt.nc'</span>))
<span class="pl-c"># Extract a 2D horizontal slice from the first time step of the 3D U and V variables at the bottom level</span>
<span class="pl-v">U</span> <span class="pl-c1">=</span> <span class="pl-s1">ds</span>.<span class="pl-v">U</span>.<span class="pl-en">isel</span>(<span class="pl-s1">time</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">lev</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-s1">ds</span>.<span class="pl-v">V</span>.<span class="pl-en">isel</span>(<span class="pl-s1">time</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">lev</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-c">################################################################################</span>
<span class="pl-c"># Plot:</span>
<span class="pl-c"># Generate figure (set its size (width, height) in inches)</span>
<span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">16</span>, <span class="pl-c1">8</span>))
<span class="pl-c"># Generate axes using Cartopy projection</span>
<span class="pl-s1">projection</span> <span class="pl-c1">=</span> <span class="pl-s1">ccrs</span>.<span class="pl-v">PlateCarree</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">axes</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s1">projection</span>)
<span class="pl-c"># Use global map</span>
<span class="pl-s1">ax</span>.<span class="pl-en">set_global</span>()
<span class="pl-c"># Stream-plot the data</span>
<span class="pl-c"># There is no Xarray streamplot function, yet. So need to call matplotlib.streamplot directly. Not sure why, but can't</span>
<span class="pl-c"># pass xarray.DataArray objects directly: fetch NumPy arrays via 'data' attribute'</span>
<span class="pl-s1">ax</span>.<span class="pl-en">streamplot</span>(<span class="pl-v">U</span>.<span class="pl-s1">lon</span>.<span class="pl-s1">data</span>,
<span class="pl-v">U</span>.<span class="pl-s1">lat</span>.<span class="pl-s1">data</span>,
<span class="pl-v">U</span>.<span class="pl-s1">data</span>,
<span class="pl-v">V</span>.<span class="pl-s1">data</span>,
<span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,
<span class="pl-s1">density</span><span class="pl-c1">=</span><span class="pl-c1">4</span>,
<span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'black'</span>,
<span class="pl-s1">zorder</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-c"># Show the plot</span>
<span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3417, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-32ee43073f80>", line 1, in <module>
runfile('/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines/NCL_stream_1.py', wdir='/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines')
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines/NCL_stream_1.py", line 64, in <module>
plt.show()
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/pyplot.py", line 337, in show
return _backend_mod.show(*args, **kwargs)
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 29, in __call__
manager.show(**kwargs)
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 113, in show
self.canvas.show()
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 68, in show
self.figure.tight_layout()
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/figure.py", line 2615, in tight_layout
pad=pad, h_pad=h_pad, w_pad=w_pad, rect=rect)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/tight_layout.py", line 308, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/tight_layout.py", line 84, in auto_adjust_subplotpars
bb += [ax.get_tightbbox(renderer, for_layout_only=True)]
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 4203, in get_tightbbox
bbox = a.get_tightbbox(renderer)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/artist.py", line 286, in get_tightbbox
bbox = Bbox.intersection(bbox, clip_path.get_extents())
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/path.py", line 603, in get_extents
return Bbox([xys.min(axis=0), xys.max(axis=0)])
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/numpy/core/_methods.py", line 43, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3417, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-32ee43073f80>", line 1, in <module>
runfile('/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines/NCL_stream_1.py', wdir='/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines')
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/anissaz/Desktop/GeoCAT/GeoCAT-examples/Plots/Streamlines/NCL_stream_1.py", line 64, in <module>
plt.show()
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/pyplot.py", line 337, in show
return _backend_mod.show(*args, **kwargs)
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 29, in __call__
manager.show(**kwargs)
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 113, in show
self.canvas.show()
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend/backend_interagg.py", line 68, in show
self.figure.tight_layout()
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/figure.py", line 2615, in tight_layout
pad=pad, h_pad=h_pad, w_pad=w_pad, rect=rect)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/tight_layout.py", line 308, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/tight_layout.py", line 84, in auto_adjust_subplotpars
bb += [ax.get_tightbbox(renderer, for_layout_only=True)]
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 4203, in get_tightbbox
bbox = a.get_tightbbox(renderer)
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/artist.py", line 286, in get_tightbbox
bbox = Bbox.intersection(bbox, clip_path.get_extents())
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/matplotlib/path.py", line 603, in get_extents
return Bbox([xys.min(axis=0), xys.max(axis=0)])
File "/opt/anaconda3/envs/geocat-examples/lib/python3.7/site-packages/numpy/core/_methods.py", line 43, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
</code></pre></div>
<p dir="auto"><a href="https://github.com/NCAR/GeoCAT-examples/pull/223/checks">Here is a link</a> to one of our current unmerged PRs with sphinx documentation generation failures for more than just this example, if that is helpful.</p>
<p dir="auto"><strong>Expected outcome</strong><br>
Used to produce the following image:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38434768/90940442-054d3180-e3cc-11ea-98ce-3b8f3286d89b.png"><img src="https://user-images.githubusercontent.com/38434768/90940442-054d3180-e3cc-11ea-98ce-3b8f3286d89b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Previously working example documented with readthedocs <a href="https://geocat-examples.readthedocs.io/en/latest/gallery/Streamlines/NCL_stream_1.html#sphx-glr-gallery-streamlines-ncl-stream-1-py" rel="nofollow">here</a></p>
<p dir="auto">Version 3.3.0 was the last version that did not experience this.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: MacOS (10.14.6)</li>
<li>Matplotlib version: 3.3.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://backend_interagg</li>
<li>Platform version: 3.7.8</li>
<li>Python version: Python 3.7.8</li>
<li>Numpy version: 1.19.1</li>
<li>Xarray version: 0.16.0</li>
<li>Cartopy version: 0.18.0</li>
</ul>
<p dir="auto">Installed matplotlib from conda environment</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto"><code class="notranslate">plt.scatter()</code> raises upon drawing when called with <code class="notranslate">marker=''</code> (no errors with 3.3.0).<br>
This change of behavior broke seaborn.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
plt.scatter([], [], marker='') # fails also with plt.scatter([1,2,3], [1,2,3], marker='')
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>([], [], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-c"># fails also with plt.scatter([1,2,3], [1,2,3], marker='')</span>
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/backends/backend_macosx.py", line 61, in _draw
self.figure.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw
mimage._draw_list_compositing_images(
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2748, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 931, in draw
Collection.draw(self, renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 385, in draw
extents = paths[0].get_extents(combined_transform)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/path.py", line 603, in get_extents
return Bbox([xys.min(axis=0), xys.max(axis=0)])
File "/Users/maoz/miniconda/envs/seaborn_devenv/lib/python3.8/site-packages/numpy/core/_methods.py", line 43, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/backends/backend_macosx.py", line 61, in _draw
self.figure.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw
mimage._draw_list_compositing_images(
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2748, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 931, in draw
Collection.draw(self, renderer)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 385, in draw
extents = paths[0].get_extents(combined_transform)
File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/path.py", line 603, in get_extents
return Bbox([xys.min(axis=0), xys.max(axis=0)])
File "/Users/maoz/miniconda/envs/seaborn_devenv/lib/python3.8/site-packages/numpy/core/_methods.py", line 43, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Not to fail.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: MacOS</li>
<li>Matplotlib version: 3.3.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): MacOSX (also reproduces with %inline)</li>
<li>Python version: 3.8.3</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries: numpy 1.19.1</li>
</ul>
<p dir="auto">matplotlib installed through pip</p> | 1 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/create-a-form-element#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20%3Cinput%20type%3D%22text%22action%3D%20placeholder%3D%22cat%20photo%20URL%22%20" rel="nofollow">Create a Form Element</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo"> <input type="text" placeholder="cat photo URL"></form>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">red-text</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> red;
}
<span class="pl-ent">h2</span> {
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace;
}
<span class="pl-ent">p</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>;
<span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace;
}
.<span class="pl-c1">thick-green-border</span> {
<span class="pl-c1">border-color</span><span class="pl-kos">:</span> green;
<span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
<span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
}
.<span class="pl-c1">smaller-image</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">></span> <span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span></pre></div> | <p dir="auto">The "Go to my next Challenge button" is enabled without meeting the first two conditions :<br>
-Your h2 element should degrade to the font "Monospace" when "Lobster" is not available.<br>
-Your h2 element should degrade to the font "Monospace" when "Lobster" is not available.</p>
<p dir="auto">Also the conditions are repeats; there should be only 1.</p> | 0 |
<p dir="auto">my model:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Test(db.Model):
__tablename__ = "Test"
STN = db.Column(db.String(3), nullable=False, info='')
BEG_DATE = db.Column(db.Date, nullable=False, info='')
END_DATE = db.Column(db.Date, nullable=False, info='')
PRICE = db.Column(db.String(3), nullable=False, info='')
REMARK = db.Column(db.String(255), nullable=True, info='')"><pre class="notranslate"><code class="notranslate">class Test(db.Model):
__tablename__ = "Test"
STN = db.Column(db.String(3), nullable=False, info='')
BEG_DATE = db.Column(db.Date, nullable=False, info='')
END_DATE = db.Column(db.Date, nullable=False, info='')
PRICE = db.Column(db.String(3), nullable=False, info='')
REMARK = db.Column(db.String(255), nullable=True, info='')
</code></pre></div>
<p dir="auto">when I run my flask app, its tips <code class="notranslate">could not assemble any primary key columns for mapped table</code>,Mysql database can create a database without a primary key, Why do I have to set the primary key?I don't want to set the primary key, how can I solve it?</p> | <p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">Attaching a patch (for 0.6 and for 0.7) to support this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" u = table1.update().values(name=table2.c.othername)\
.where(table2.c.otherid == table1.c.myid)"><pre class="notranslate"><code class="notranslate"> u = table1.update().values(name=table2.c.othername)\
.where(table2.c.otherid == table1.c.myid)
</code></pre></div>
<p dir="auto">compiling to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" UPDATE mytable SET name=myothertable.othername
FROM myothertable WHERE myothertable.otherid = mytable.myid"><pre class="notranslate"><code class="notranslate"> UPDATE mytable SET name=myothertable.othername
FROM myothertable WHERE myothertable.otherid = mytable.myid
</code></pre></div>
<p dir="auto">(i.e. the FROM clause is inferred from the extra from-objects in the WHERE clause and the SET columns)</p>
<p dir="auto">Unit tests included. Doesn't break any existing tests in either 0.6 or 0.7 (and I <em>think</em> this doesn't modify behavior in any use case that wasn't broken anyway).</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/2166/sqlalchemy-support-update-from-0.6.patch">sqlalchemy-support-update-from-0.6.patch</a> | <a href="../wiki/imported_issue_attachments/2166/sqlalchemy-support-update-from-0.7.patch">sqlalchemy-support-update-from-0.7.patch</a> | <a href="../wiki/imported_issue_attachments/2166/2166.patch">2166.patch</a></p> | 0 |
<p dir="auto">I'm trying to design a single query that creates a node including input/output links with possible linking to existing nodes. Creation stages are separated by cardinality reduction clauses using <code class="notranslate">LIMIT 1</code>. This method prevents creation of certain nodes in preceding <code class="notranslate">CREATE</code> clause, however.</p>
<ul dir="auto">
<li>Neo4j version: 3.4.6</li>
<li>Operating system: macOs 10.13.6</li>
<li>API/Driver: Cypher in neo4j browser</li>
</ul>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Create a structure that next step is going to build upon:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE (m:Move {id: "m1"})
WITH m
UNWIND [{i: 0}, {i: 1}, {i: 2}] as p
CREATE (m)-[:OUT]->(:Position {id: p.i})"><pre class="notranslate"><code class="notranslate">CREATE (m:Move {id: "m1"})
WITH m
UNWIND [{i: 0}, {i: 1}, {i: 2}] as p
CREATE (m)-[:OUT]->(:Position {id: p.i})
</code></pre></div>
<ol start="2" dir="auto">
<li>Tie to output positions from previous step:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE (m:Move {id: "m2"})
WITH m
UNWIND [{pid: 0}, {pid: 1}] as i
MATCH (p:Position {id: i.pid})
CREATE (p)-[:IN]->(m)
WITH m LIMIT 1
UNWIND [{pid: 2, addr: "street"}] as i
MATCH (p:Position {id: i.pid})
MERGE (p)-[:IS_A]->(a:Place {id: i.addr})
CREATE (p)-[:IN]->(m)"><pre class="notranslate"><code class="notranslate">CREATE (m:Move {id: "m2"})
WITH m
UNWIND [{pid: 0}, {pid: 1}] as i
MATCH (p:Position {id: i.pid})
CREATE (p)-[:IN]->(m)
WITH m LIMIT 1
UNWIND [{pid: 2, addr: "street"}] as i
MATCH (p:Position {id: i.pid})
MERGE (p)-[:IS_A]->(a:Place {id: i.addr})
CREATE (p)-[:IN]->(m)
</code></pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">All positions are linked to m2 by IN edges.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/936155/44881933-a0b1dd00-acb1-11e8-88aa-c6a1eb9453f7.png"><img src="https://user-images.githubusercontent.com/936155/44881933-a0b1dd00-acb1-11e8-88aa-c6a1eb9453f7.png" alt="correct" style="max-width: 100%;"></a></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Position 1 is not linked.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/936155/44881939-a4ddfa80-acb1-11e8-8734-b4dfcc8f3c11.png"><img src="https://user-images.githubusercontent.com/936155/44881939-a4ddfa80-acb1-11e8-8734-b4dfcc8f3c11.png" alt="wrong" style="max-width: 100%;"></a></p>
<p dir="auto">The problem seems to be in cardinality reducing <code class="notranslate">WITH m LIMIT 1</code> because it prevents creation of the link according to second map in first unwind (just to test – link is created when using <code class="notranslate">WITH m LIMIT 2</code> but that leads to duplicate link from second unwind of course). I could use <code class="notranslate">WITH distinct m</code> but that is more expensive construct.</p>
<p dir="auto">I do not think that WITH clause should have this "backward" effect so I consider it a bug for now. I would welcome an explanation if I'm wrong :)</p>
<p dir="auto">Thanks!</p> | <ul dir="auto">
<li>Neo4j version: 5.8.0-enterprise</li>
<li>Operating system: Ubuntu 20.04</li>
<li>API/Driver: Cypher</li>
<li><strong>Steps to reproduce</strong></li>
</ul>
<p dir="auto">Hello! While testing Neo4j in the movie graph, I came across an issue related to duplicated path patterns. Allow me to explain in a clearer manner:</p>
<p dir="auto">In the second query, the expected result should be 506. This is because all pairs (n0, n1) in the first query, satisfy the pattern defined in the second query.</p>
<p dir="auto">Similarly, in the third query, the expected result should also be 506. However, currently, it returns 64, which is the number of pairs (n0, n1) that have at least two edges in the movie graph.<br>
The issue here is that there is no constraint requiring the two relationships to be identical, and thus the expected result should still be 506.</p>
<p dir="auto">While I am uncertain if this behavior is a bug in Neo4j, it is worth noting that other graph databases (such as Memgraph) attempt to address this by returning an exception <code class="notranslate">Redeclaring variable: r1</code> for the second query.</p>
<p dir="auto">Would it is possible for you to further confirm and investigate this issue?<br>
One possible solution to address this issue is to implement a step during query compilation that removes duplicated path patterns for each pattern, and another solution is to throw an exception like other GDBs when encountering a redeclared variable for relation.</p>
<div class="highlight highlight-source-cypher notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//:play movie-graph
MATCH (n0)-[r1]-(n1) RETURN COUNT (*)
=> 506
MATCH (n0)-[r1]-(n1), (n1)-[r1]-(n0) RETURN COUNT (*)
=> 0
MATCH (n0)-[]-(n1), (n1)-[]-(n0) RETURN COUNT (*)
=>64"><pre class="notranslate"><span class="pl-c">//:play movie-graph</span>
<span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-c1">506</span>
<span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-c1">0</span>
<span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span><span class="pl-c1">64</span></pre></div>
<ul dir="auto">
<li>Expected behavior</li>
</ul>
<div class="highlight highlight-source-cypher notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="MATCH (n0)-[r1]-(n1), (n1)-[r1]-(n0) RETURN COUNT (*)
=> 506
MATCH (n0)-[]-(n1), (n1)-[]-(n0) RETURN COUNT (*)
=> 506"><pre class="notranslate"><span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-c1">506</span>
<span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-c1">506</span></pre></div>
<p dir="auto">or</p>
<div class="highlight highlight-source-cypher notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="MATCH (n0)-[r1]-(n1), (n1)-[r1]-(n0) RETURN COUNT (*)
=> Exception: Redeclaring variable: r1.
MATCH (n0)-[]-(n1), (n1)-[]-(n0) RETURN COUNT (*)
=> 506"><pre class="notranslate"><span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-smi">r1</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-smi">Exception</span>: <span class="pl-smi">Redeclaring</span> <span class="pl-smi">variable</span>: <span class="pl-smi">r1</span>.
<span class="pl-k">MATCH</span> (<span class="pl-smi">n0</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n1</span>), (<span class="pl-smi">n1</span>)<span class="pl-c1">-</span><span class="pl-k">[</span><span class="pl-k">]</span><span class="pl-c1">-</span>(<span class="pl-smi">n0</span>) <span class="pl-k">RETURN</span> <span class="pl-c1">COUNT</span> (<span class="pl-k">*</span>)
<span class="pl-k">=></span> <span class="pl-c1">506</span></pre></div> | 0 |
<p dir="auto">When I try to upgrade npm via the suggested method in the console:</p>
<p dir="auto"><code class="notranslate">npm install -g [email protected]</code></p>
<p dir="auto">it fails with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/local/lib/node_modules/npm',
npm ERR! dest: '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! }
npm ERR! "><pre class="notranslate"><code class="notranslate">npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/local/lib/node_modules/npm',
npm ERR! dest: '/usr/local/lib/node_modules/.npm-i9nnxROI'
npm ERR! }
npm ERR!
</code></pre></div>
<p dir="auto">When I try to run it with <code class="notranslate">sudo</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code EPERM
npm ERR! syscall lchown
npm ERR! path /usr/local/bin/sentinelctl
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'
npm ERR! [Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lchown',
npm ERR! path: '/usr/local/bin/sentinelctl'
npm ERR! }"><pre class="notranslate"><code class="notranslate">npm ERR! code EPERM
npm ERR! syscall lchown
npm ERR! path /usr/local/bin/sentinelctl
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'
npm ERR! [Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lchown',
npm ERR! path: '/usr/local/bin/sentinelctl'
npm ERR! }
</code></pre></div>
<p dir="auto"><code class="notranslate">sentinelctl</code> is control panel for Sentinel One antivirus, I guess its one of their security measures to make it not chown-able.</p>
<p dir="auto">OS: OSX 11.6.1</p>
<p dir="auto">npm --version<br>
7.20.3</p> | <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">After running <code class="notranslate">sudo npm i -g foo</code> files under <code class="notranslate">/usr/bin</code> that were owned by <code class="notranslate">root</code> are now owned by the current user.</p>
<p dir="auto">I ran <code class="notranslate">sudo npm i -g typescript</code> and it was installed correctly I think. Then I ran <code class="notranslate">sudo npm i -g vscode-langservers-extracted</code> and I got <code class="notranslate">sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set</code>.</p>
<p dir="auto">I think the packages I installed are irrelevant because I still get the same errors after installing other packages globally with sudo.</p>
<p dir="auto">This looks similar to #19883 but as far as I can see, only <code class="notranslate">/usr/bin/</code> files are affected.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">npm should not change ownership of files under <code class="notranslate">/usr/bin</code></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>In this environment...<br>
Linux<br>
npm v8.1.3</li>
<li>With this config...<br>
Default</li>
<li>Run 'sudo npm i -g typescript' (the package doesn't matter)</li>
<li>See: files under /usr/bin changing ownership</li>
</ol>
<p dir="auto">In this video, you can see what happens. When I stop writing is because I'm going to another tty as root to execute <code class="notranslate">chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo</code>. The video also shows npm with version <code class="notranslate">v8.0.0</code> but I updated to <code class="notranslate">v8.1.3</code> and the same thing happens.</p>
<details open="" class="details-reset border rounded-2">
<summary class="px-3 py-2">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video">
<path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path>
</svg>
<span aria-label="Video description 2021-11-07.14-39-43.mov" class="m-1">2021-11-07.14-39-43.mov</span>
<span class="dropdown-caret"></span>
</summary>
<video src="https://user-images.githubusercontent.com/78516649/140661644-b54fa9ce-7ce1-43de-a1c5-2bd892ce29e6.mov" data-canonical-src="https://user-images.githubusercontent.com/78516649/140661644-b54fa9ce-7ce1-43de-a1c5-2bd892ce29e6.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px">
</video>
</details>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.1.3</li>
<li>Node: 16.11.0</li>
<li>OS: Linux 5.10.70-1-MANJARO</li>
<li>platform: Desktop amd64</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; node bin location = /usr/bin/node
; cwd = /home/emi2k01/Documents/facu/tecmul/proyectofinal
; HOME = /home/emi2k01
; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><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/emi2k01/Documents/facu/tecmul/proyectofinal</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /home/emi2k01</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div> | 1 |
<p dir="auto">We need to host a standalone React component (DraftJS editor) inside a HTML5 application which will run on other JS framework, or even plain JS or jQuery.<br>
The code of the application is beyond our control, we are just a vendor of a component which adds some content, part of which is this React-based editor.</p>
<p dir="auto">Anyway, the most important part is that we need to add the component with the following code to an existing DIV.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const editor = ReactDOM.render(
React.createElement(
EditorComponent,
props
),
divElem
);"><pre class="notranslate"><code class="notranslate">const editor = ReactDOM.render(
React.createElement(
EditorComponent,
props
),
divElem
);
</code></pre></div>
<p dir="auto">EditorComponent is a regular React component with some onClick events attached to its content (primarily toolbar buttons for the editor).</p>
<p dir="auto">I learned that React event model and its bubbling executes independently after the event bubbles all the way up to the document, and that if ev.stopPropagation() is called on native event, React events won't execute at all.<br>
That is understandable for situations where document contains only the React app / component at its root and no other content, meaning you have control over all events on the page from React code.</p>
<p dir="auto">However, when React component is just a small fraction of the entire page, it may be severely influenced by the rest of the page.<br>
The problem is that any event handling code above the component which calls ev.stopPropagation() cuts of the events of that smaller fraction, even that the event originated from the React component scope.<br>
That influencing code could very well be just some jQuery plugin, so even author of the page may not be able to rewrite their code for some special event handling.</p>
<p dir="auto">Here is a fiddle to demonstrate that: <a href="https://jsfiddle.net/martinh_kentico/kept9anh/3/" rel="nofollow">https://jsfiddle.net/martinh_kentico/kept9anh/3/</a></p>
<p dir="auto">I believe that the point where the event chain breaks, allowing React to execute its events, should be the root element of React component, rather than the whole document.<br>
This way, React root element could be considered an isolation edge of the React application / component.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11004903/21673497/7d6a11b8-d329-11e6-9642-9d7427331fb1.png"><img src="https://cloud.githubusercontent.com/assets/11004903/21673497/7d6a11b8-d329-11e6-9642-9d7427331fb1.png" alt="reactevents" style="max-width: 100%;"></a></p>
<p dir="auto">I tracked the React event registration down to function ReactDOMComponent.ensureListeningTo(...) where I found the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
listenTo(registrationName, doc);"><pre class="notranslate"><code class="notranslate"> var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
listenTo(registrationName, doc);
</code></pre></div>
<p dir="auto">I tried to change <code class="notranslate">containerInfo._ownerDocument</code> to <code class="notranslate">containerInfo._node</code> to register the React event chain to the root of the React container, and tried it for several basic events (onClick, onMouseDown/Up) and it seems working for us as expected.<br>
React events are not influenced by stopping propagation at the native events outside of React component root, so the two differently implemented parts of the application can coexist in peace.</p>
<p dir="auto">I am not sure why _ownerDocument was chosen over _node in the implementation and if changing it to _node could break something important.</p>
<p dir="auto">Please advise if the proposed solution seems viable (in that case consider a change to that), or for what reasons you wouldn't recommend it.</p> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nathansobo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nathansobo">@nathansobo</a> will that help your event perf issues a bit? I'm not familiar with atom's plugin infrastructure, But this'll help if you have <code class="notranslate"><Editor/><Plugin1/></code> (two <code class="notranslate">renderComponent</code>s). Doesn't help if you have <code class="notranslate"><Editor><Plugin1/></Editor></code> though, but I have some ideas to optimize events a bit more.</p>
<p dir="auto">This is nonetheless an ok idea, I think.<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spicyj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spicyj">@spicyj</a></p> | 1 |
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Using <code class="notranslate">flask run</code> should result in appropriate import error messages if erroneous imports are used in a flask app.</p>
<p dir="auto">Consider the two flask apps <code class="notranslate">worksjustfine.py</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask
app = Flask(__name__)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>)</pre></div>
<p dir="auto">and <code class="notranslate">completelymisleading.py</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import flask
import batrachomyomachy
app = flask.Flask(__name__)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">flask</span>
<span class="pl-k">import</span> <span class="pl-s1">batrachomyomachy</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">flask</span>.<span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>)</pre></div>
<p dir="auto">If you fire up <code class="notranslate">worksjustfine.py</code>, it works just fine:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ FLASK_APP=worksjustfine.py flask run
* Serving Flask app "worksjustfine"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)"><pre class="notranslate">$ FLASK_APP=worksjustfine.py flask run
<span class="pl-k">*</span> Serving Flask app <span class="pl-s"><span class="pl-pds">"</span>worksjustfine<span class="pl-pds">"</span></span>
<span class="pl-k">*</span> Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)</pre></div>
<p dir="auto">If you fire up <code class="notranslate">completelymisleading.py</code>, you would expect something like this:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ FLASK_APP=completelymisleading.py flask run
...
ImportError: No module named 'batrachomyomachy'"><pre class="notranslate">$ FLASK_APP=completelymisleading.py flask run
...
ImportError: No module named <span class="pl-s"><span class="pl-pds">'</span>batrachomyomachy<span class="pl-pds">'</span></span></pre></div>
<h3 dir="auto">Actual Behavior</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ FLASK_APP=completelymisleading.py flask run
Usage: flask run [OPTIONS]
Error: The file/path provided (completelymisleading) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py"><pre class="notranslate">$ FLASK_APP=completelymisleading.py flask run
Usage: flask run [OPTIONS]
Error: The file/path provided (completelymisleading) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py</pre></div>
<p dir="auto">This error message is completely misleading, because the file does exist and <code class="notranslate">flask run</code> also starts to import this file. I imagine that somewhere in the <code class="notranslate">flask run</code> code there is a <code class="notranslate">try ... except ImportError</code> that is meant for the situation when the actual flask app can not be found, but one would definitely need a more specific error message for other import errors.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Python version: 3.5.3</li>
<li>Flask version: 0.12</li>
</ul> | <p dir="auto">(Observed on Python 2.7; untested on 3.x)</p>
<h2 dir="auto">Steps to reproduce:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="echo "import thisisnotarealpackage" > error_app.py
export FLASK_APP=error_app.py
flask run"><pre class="notranslate"><code class="notranslate">echo "import thisisnotarealpackage" > error_app.py
export FLASK_APP=error_app.py
flask run
</code></pre></div>
<h2 dir="auto">Expected result:</h2>
<ul dir="auto">
<li>Some indication that <code class="notranslate">thisisnotarealpackage</code> is not a real package</li>
</ul>
<h2 dir="auto">Observed result:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Usage: python -m flask run [OPTIONS]
Error: The file/path provided (error) does not appear to exist.
Please verify the path is correct.
If app is not on PYTHONPATH, ensure the extension is .py"><pre class="notranslate"><code class="notranslate">Usage: python -m flask run [OPTIONS]
Error: The file/path provided (error) does not appear to exist.
Please verify the path is correct.
If app is not on PYTHONPATH, ensure the extension is .py
</code></pre></div>
<p dir="auto">(Newlines added)</p>
<h2 dir="auto">Why Bother</h2>
<p dir="auto">This has been causing some confusion on my team because <code class="notranslate">cx_Oracle</code> can fail to import (from the bowels of SQLAlchemy) if it can't find certain Oracle support files on the host machine.</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: check_transformer(WardAgglomeration)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/andy/checkout/scikit-learn/sklearn/tests/test_common.py", line 233, in check_transformer
transformer.fit(X, y_)
File "/home/andy/checkout/scikit-learn/sklearn/cross_decomposition/pls_.py", line 333, in fit
linalg.inv(np.dot(self.y_loadings_.T, self.y_weights_)))
File "/home/andy/.local/lib/python2.7/site-packages/scipy-0.11.0-py2.7-linux-x86_64.egg/scipy/linalg/basic.py", line 348, in inv
raise LinAlgError("singular matrix")
LinAlgError: singular matrix"><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: check_transformer(WardAgglomeration)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/andy/checkout/scikit-learn/sklearn/tests/test_common.py", line 233, in check_transformer
transformer.fit(X, y_)
File "/home/andy/checkout/scikit-learn/sklearn/cross_decomposition/pls_.py", line 333, in fit
linalg.inv(np.dot(self.y_loadings_.T, self.y_weights_)))
File "/home/andy/.local/lib/python2.7/site-packages/scipy-0.11.0-py2.7-linux-x86_64.egg/scipy/linalg/basic.py", line 348, in inv
raise LinAlgError("singular matrix")
LinAlgError: singular matrix
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nosetests sklearn --exe
.............................................................../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.
warnings.warn("Graph is not fully connected, spectral embedding"
...........SS....../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:124: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
.../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:145: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
./usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:161: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
.....SS................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0x6e36f18>, ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F............................................................................SSS....S....S...................................................................................................................................
======================================================================
FAIL: sklearn.tests.test_common.test_regressors_train
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/tests/test_common.py", line 655, in test_regressors_train
assert_true(succeeded)
AssertionError: False is not true
-------------------- >> begin captured stdout << ---------------------
CCA(copy=True, max_iter=500, n_components=2, scale=True, tol=1e-06)
singular matrix
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 1598 tests in 81.829s
FAILED (SKIP=15, failures=1)"><pre class="notranslate"><code class="notranslate">nosetests sklearn --exe
.............................................................../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.
warnings.warn("Graph is not fully connected, spectral embedding"
...........SS....../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:124: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
.../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:145: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
./usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/datasets/tests/test_base.py:161: UserWarning: Could not load sample images, PIL is not available.
warnings.warn("Could not load sample images, PIL is not available.")
.....SS................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0x6e36f18>, ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F............................................................................SSS....S....S...................................................................................................................................
======================================================================
FAIL: sklearn.tests.test_common.test_regressors_train
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/nose-1.2.1-py2.7.egg/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/usr/local/lib/python2.7/site-packages/scikit_learn-0.13.1-py2.7-linux-x86_64.egg/sklearn/tests/test_common.py", line 655, in test_regressors_train
assert_true(succeeded)
AssertionError: False is not true
-------------------- >> begin captured stdout << ---------------------
CCA(copy=True, max_iter=500, n_components=2, scale=True, tol=1e-06)
singular matrix
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 1598 tests in 81.829s
FAILED (SKIP=15, failures=1)
</code></pre></div>
<p dir="auto">Is the failures a big deal ? Can I use it anyway ? I want to use sklearn to do logistic regression . Thanks.</p> | 1 |
<p dir="auto">I am getting an Error by adding this <strong>library</strong> into my project<br>
The library:<code class="notranslate"> 'com.github.RahulJanagouda:StatusStories:1.0.1'</code><br>
<strong>The error log:</strong><br>
<code class="notranslate">2019-02-24 10:43:32.993 12294-12294/ E/AndroidRuntime: FATAL EXCEPTION: main Process: , PID: 12294 java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)" at com.bumptech.glide.Glide.initializeGlide(Glide.java:231) at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:172) at com.bumptech.glide.Glide.get(Glide.java:156) at com.bumptech.glide.Glide.getRetriever(Glide.java:535) at com.bumptech.glide.Glide.with(Glide.java:561) at .adapters.NewsFeedRecyclerViewAdapter.getPostImage(NewsFeedRecyclerViewAdapter.java:166) at .adapters.NewsFeedRecyclerViewAdapter.onBindViewHolder(NewsFeedRecyclerViewAdapter.java:69) at .adapters.NewsFeedRecyclerViewAdapter.onBindViewHolder(NewsFeedRecyclerViewAdapter.java:35) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6673) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6714) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5647) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5913) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1559) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3812)......</code><br>
<strong>The Gradle file of the StatusStrories Library:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
// Glide v3 (stable)
implementation 'com.github.bumptech.glide:glide:3.9.0'
// OkHttp3
implementation 'com.github.bumptech.glide:okhttp3-integration:1.6.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.7.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})}"><pre class="notranslate"><code class="notranslate">dependencies {
implementation 'com.android.support:appcompat-v7:26.1.0'
// Glide v3 (stable)
implementation 'com.github.bumptech.glide:glide:3.9.0'
// OkHttp3
implementation 'com.github.bumptech.glide:okhttp3-integration:1.6.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.7.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})}
</code></pre></div>
<p dir="auto"><strong>My Gradle File:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//emoji disabler
implementation 'com.xw.repo:xedittext:2.1.0@aar'
//firebase
implementation 'com.google.firebase:firebase-storage:10.0.1'
implementation 'com.google.firebase:firebase-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:10.0.1'
//android
implementation 'com.android.support:recyclerview-v7:26.+'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.1.1'
//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
//like button
implementation 'com.github.jd-alexander:LikeButton:0.2.3'
//image loader
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
//ExifInterface support
implementation "com.android.support:exifinterface:26.+"
//image picker
implementation 'com.github.nguyenhoanglam:ImagePicker:1.2.1'
//button
implementation 'com.beardedhen:androidbootstrap:2.3.2'
//image loader
//image scroll 7/8/2018
implementation 'com.github.Q42:AndroidScrollingImageView:1.3.3'
//dropdown list
implementation 'com.github.JayFang1993:DropDownMenu:v0.9'
//zoom
implementation 'com.ablanco.zoomy:zoomy:1.1.0'
//stories
implementation 'com.github.RahulJanagouda:StatusStories:1.0.1'
//glide
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// OkHttp3
implementation 'com.github.bumptech.glide:okhttp3-integration:1.6.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.7.0'
"><pre class="notranslate"><code class="notranslate">//emoji disabler
implementation 'com.xw.repo:xedittext:2.1.0@aar'
//firebase
implementation 'com.google.firebase:firebase-storage:10.0.1'
implementation 'com.google.firebase:firebase-auth:10.0.1'
implementation 'com.google.firebase:firebase-database:10.0.1'
//android
implementation 'com.android.support:recyclerview-v7:26.+'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.1.1'
//circle image view
implementation 'de.hdodenhof:circleimageview:2.2.0'
//like button
implementation 'com.github.jd-alexander:LikeButton:0.2.3'
//image loader
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
//ExifInterface support
implementation "com.android.support:exifinterface:26.+"
//image picker
implementation 'com.github.nguyenhoanglam:ImagePicker:1.2.1'
//button
implementation 'com.beardedhen:androidbootstrap:2.3.2'
//image loader
//image scroll 7/8/2018
implementation 'com.github.Q42:AndroidScrollingImageView:1.3.3'
//dropdown list
implementation 'com.github.JayFang1993:DropDownMenu:v0.9'
//zoom
implementation 'com.ablanco.zoomy:zoomy:1.1.0'
//stories
implementation 'com.github.RahulJanagouda:StatusStories:1.0.1'
//glide
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// OkHttp3
implementation 'com.github.bumptech.glide:okhttp3-integration:1.6.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.7.0'
</code></pre></div> | <p dir="auto"><strong>Glide Version</strong>: 4.6.1</p>
<p dir="auto"><strong>Integration libraries</strong>: okhttp3-integration</p>
<p dir="auto"><strong>Device/Android Version</strong>: Google Pixel 8.1</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>: The Glide v4 documentation <a href="https://bumptech.github.io/glide/doc/migrating.html#manifest-parsing" rel="nofollow">states</a> that</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="To ease the migration, manifest parsing and the older GlideModule interface are deprecated, but still supported in v4. AppGlideModules, LibraryGlideModules and the deprecated GlideModules can all coexist in an application."><pre class="notranslate"><code class="notranslate">To ease the migration, manifest parsing and the older GlideModule interface are deprecated, but still supported in v4. AppGlideModules, LibraryGlideModules and the deprecated GlideModules can all coexist in an application.
</code></pre></div>
<p dir="auto">However, <code class="notranslate">Glide.initializeGlide()</code> calls <code class="notranslate">RegistersComponents.registerComponents(Context, Glide, Registry)</code> which is different from the signature of <code class="notranslate">registerComponents()</code> in Glide v3. This causes a <code class="notranslate">java.lang.AbstractMethodError</code> when initializing Glide with dependencies that were built against Glide v3. This means that we are unable to update Glide to v4 until all our dependencies have updated.</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-kotlin notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@GlideModule
class GlideWrapper : AppGlideModule() {
fun getImageLoader(context: Context): GlideImageLoader {
return GlideImageLoader(GlideApp.with(context))
}
override fun applyOptions(context: Context, builder: GlideBuilder) {}
override fun registerComponents(context: Context, glide: Glide, registry: Registry) {
registry.append(
GlideUrl::class.java,
InputStream::class.java,
OkHttpUrlLoader.Factory(okHttpClient)
)
}"><pre class="notranslate">@GlideModule
<span class="pl-k">class</span> <span class="pl-en">GlideWrapper</span> : <span class="pl-en">AppGlideModule</span>() {
<span class="pl-k">fun</span> <span class="pl-en">getImageLoader</span>(<span class="pl-smi">context</span><span class="pl-k">:</span> <span class="pl-en">Context</span>): <span class="pl-en">GlideImageLoader</span> {
<span class="pl-k">return</span> <span class="pl-en">GlideImageLoader</span>(<span class="pl-en">GlideApp</span>.<span class="pl-c1">with</span>(context))
}
<span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">applyOptions</span>(<span class="pl-smi">context</span><span class="pl-k">:</span> <span class="pl-en">Context</span>, <span class="pl-smi">builder</span><span class="pl-k">:</span> <span class="pl-en">GlideBuilder</span>) {}
<span class="pl-k">override</span> <span class="pl-k">fun</span> <span class="pl-en">registerComponents</span>(<span class="pl-smi">context</span><span class="pl-k">:</span> <span class="pl-en">Context</span>, <span class="pl-smi">glide</span><span class="pl-k">:</span> <span class="pl-en">Glide</span>, <span class="pl-smi">registry</span><span class="pl-k">:</span> <span class="pl-en">Registry</span>) {
registry.append(
<span class="pl-en">GlideUrl</span>::<span class="pl-c1">class</span>.java,
<span class="pl-en">InputStream</span>::<span class="pl-c1">class</span>.java,
<span class="pl-en">OkHttpUrlLoader</span>.<span class="pl-en">Factory</span>(okHttpClient)
)
}</pre></div>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)"
at com.bumptech.glide.Glide.initializeGlide(Glide.java:266)
at com.bumptech.glide.Glide.initializeGlide(Glide.java:219)
at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:180)
at com.bumptech.glide.Glide.get(Glide.java:164)
at com.bumptech.glide.Glide.getRetriever(Glide.java:670)
at com.bumptech.glide.Glide.with(Glide.java:747)"><pre class="notranslate"><code class="notranslate">java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)"
at com.bumptech.glide.Glide.initializeGlide(Glide.java:266)
at com.bumptech.glide.Glide.initializeGlide(Glide.java:219)
at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:180)
at com.bumptech.glide.Glide.get(Glide.java:164)
at com.bumptech.glide.Glide.getRetriever(Glide.java:670)
at com.bumptech.glide.Glide.with(Glide.java:747)
</code></pre></div> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">user</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/v683653/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
"><pre class="notranslate"><code class="notranslate">ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/v683653/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30<br>
RETRY_FILES_SAVE_PATH(/etc/ansible/ansible.cfg) = /tmp/ansibleretry</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">used on rhel6 and rhel7 servers</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When I run the user module to remove a user, if that user doesn't exist on the system then the module reports a failure as seen below.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">use the user module to remove a user from a system that the user doesn't exist on.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" - name: Remove user account
user:
state: absent
remove: yes
name: bob
"><pre class="notranslate"> - <span class="pl-ent">name</span>: <span class="pl-s">Remove user account</span>
<span class="pl-ent">user</span>:
<span class="pl-ent">state</span>: <span class="pl-s">absent</span>
<span class="pl-ent">remove</span>: <span class="pl-s">yes</span>
<span class="pl-ent">name</span>: <span class="pl-s">bob</span>
</pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">If the user doesn't exist then I figured that the idempotent part would see that the user doesn't exist and would therefore report an OK but not fail.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">The task fails with the error below.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [soctxqatw01]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"append": false,
"comment": null,
"createhome": true,
"expires": null,
"force": false,
"generate_ssh_key": null,
"group": null,
"groups": null,
"home": null,
"local": null,
"login_class": null,
"move_home": false,
"name": "zockmi",
"non_unique": false,
"password": null,
"remove": true,
"seuser": null,
"shell": null,
"skeleton": null,
"ssh_key_bits": 0,
"ssh_key_comment": "ansible-generated on soctxqatw01.gsoc.verizon.com",
"ssh_key_file": null,
"ssh_key_passphrase": null,
"ssh_key_type": "rsa",
"state": "absent",
"system": false,
"uid": null,
"update_password": "always"
}
},
"msg": "userdel: cannot remove entry 'zockmi' from /etc/passwd\n",
"name": "zockmi",
"rc": 1
}
"><pre class="notranslate"><code class="notranslate">fatal: [soctxqatw01]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"append": false,
"comment": null,
"createhome": true,
"expires": null,
"force": false,
"generate_ssh_key": null,
"group": null,
"groups": null,
"home": null,
"local": null,
"login_class": null,
"move_home": false,
"name": "zockmi",
"non_unique": false,
"password": null,
"remove": true,
"seuser": null,
"shell": null,
"skeleton": null,
"ssh_key_bits": 0,
"ssh_key_comment": "ansible-generated on soctxqatw01.gsoc.verizon.com",
"ssh_key_file": null,
"ssh_key_passphrase": null,
"ssh_key_type": "rsa",
"state": "absent",
"system": false,
"uid": null,
"update_password": "always"
}
},
"msg": "userdel: cannot remove entry 'zockmi' from /etc/passwd\n",
"name": "zockmi",
"rc": 1
}
</code></pre></div> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/avacam/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/avacam">@avacam</a> on 2014-12-10T18:58:20Z</p>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Component Name:</h5>
<p dir="auto">user module</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.5.4</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 14.04</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Command to remove an account fails when there is a non-local copy of the account visible to the authentication system.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">prerequisites:<br>
a. server configured with single-sign-on service (AD, LDAP, etc)<br>
b. user 'foobar' exists in SSO system.</p>
<ol dir="auto">
<li>Create local 'foobar' user.</li>
<li>run user module to remove local account. Example:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: remove users
user: name={{ item }} state=absent remove=yes
with_items:
- foobar"><pre class="notranslate"><code class="notranslate"> - name: remove users
user: name={{ item }} state=absent remove=yes
with_items:
- foobar
</code></pre></div>
<ol dir="auto">
<li>run user module again with local account already removed.</li>
</ol>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">no action</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">Resulting error:<br>
failed: [servername] => (item=foobar) => {"failed": true, "item": "foobar", "name": "foobar", "rc": 1}<br>
msg: userdel: cannot remove entry 'foobar' from /etc/passwd</p>
<hr>
<p dir="auto">Issuing the command to remove an account fails when there is a non-local copy of that account visible to the authentication system.</p>
<p dir="auto">When a server is configured with local and non-local account systems, like when using LDAP, user.py will report an error if the command is issued to remove an account that does not exist locally on the server. I ran into this issue when I was removing local copies of user accounts that also exist in the LDAP/AD environment. Note: The intention is not to remove them from the directory system, just the local account.</p>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51596643" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/491" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/491/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/491">ansible/ansible-modules-core#491</a></p> | 1 |
<p dir="auto">This failure/permissions error is showing up in the wheels repo for a subset of Windows matrix entries, including backports for 1.7.2 and for <code class="notranslate">master</code>.</p>
<p dir="auto">I'll put the traceback below, and links to sample PRs:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1035763905" data-permission-text="Title is private" data-url="https://github.com/MacPython/scipy-wheels/issues/135" data-hovercard-type="pull_request" data-hovercard-url="/MacPython/scipy-wheels/pull/135/hovercard" href="https://github.com/MacPython/scipy-wheels/pull/135">MacPython/scipy-wheels#135</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1045403120" data-permission-text="Title is private" data-url="https://github.com/MacPython/scipy-wheels/issues/138" data-hovercard-type="pull_request" data-hovercard-url="/MacPython/scipy-wheels/pull/138/hovercard" href="https://github.com/MacPython/scipy-wheels/pull/138">MacPython/scipy-wheels#138</a></p>
<p dir="auto">Can we put a skip marker on this test for Windows temporarily, at least on the maintenance branch, or is this looking real?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="================================== FAILURES ===================================
_____________________________ test_quad_vec_pool ______________________________
[gw0] win32 -- Python 3.7.5 C:\Python37-x64\python.exe
C:\Python37-x64\lib\site-packages\scipy\integrate\tests\test__quad_vec.py:98: in test_quad_vec_pool
res, err = quad_vec(f, -np.inf, np.inf, norm='max', epsabs=1e-4, workers=4)
Pool = <function Pool at 0x000002479C210A68>
f = <function _lorenzian at 0x0000024787C0FDC8>
C:\Python37-x64\lib\site-packages\scipy\integrate\_quad_vec.py:252: in quad_vec
res = quad_vec(f2, -1, 1, **kwargs)
a = -inf
b = inf
cache_size = 100000000.0
epsabs = 0.0001
epsrel = 1e-08
f = <function _lorenzian at 0x0000024787C0FDC8>
f2 = <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x0000024799FFCA48>
full_output = False
kwargs = {'cache_size': 100000000.0, 'epsabs': 0.0001, 'epsrel': 1e-08, 'full_output': False, ...}
limit = 10000
norm = 'max'
points = None
quadrature = None
sgn = 1
workers = 4
C:\Python37-x64\lib\site-packages\scipy\integrate\_quad_vec.py:391: in quad_vec
break
CONVERGED = 0
NOT_A_NUMBER = 3
NOT_CONVERGED = 1
ROUNDING_ERROR = 2
_quadrature = <function _quadrature_gk15 at 0x0000024787BDB678>
a = -1.0
b = 0.0
cache_count = 4166666.0
cache_size = 100000000.0
derr = -0.0001958558976507645
dint = -5.188183216375819e-11
dneval = 30
dround_err = 1.7439342490043163e-14
epsabs = 0.0001
epsrel = 1e-08
err = 1.2888960825934786e-10
err_sum = 0.00039171231086582484
f = <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x0000024799FFCA48>
full_output = False
global_error = 5.155584007941142e-10
global_integral = 3.141592653589793
ier = 0
ig = 0.7853981633974483
initial_intervals = [(-1.0, 0.0), (0.0, 1.0)]
interval = (-0.000195856155429981, -1.0, 0.0)
interval_cache = LRUDict([((0.0, 0.5), 0.7853981633974485), ((0.5, 1.0), 0.7853981633974483), ((-1.0, -0.5), 0.7853981633974484), ((-0.5, 0.0), 0.7853981633974483)])
intervals = [(-1.2888960825934792e-10, -1.0, -0.5), (-1.2888960825934786e-10, -0.5, 0.0), (-1.2888960825934792e-10, 0.5, 1.0), (-1.2888957602994802e-10, 0.0, 0.5)]
j = 2
kwargs = {'cache_size': 100000000.0, 'epsabs': 0.0001, 'epsrel': 1e-08, 'full_output': False, ...}
limit = 10000
mapwrapper = <scipy._lib._util.MapWrapper object at 0x000002479C20C9C8>
min_intervals = 2
neg_old_err = -0.000195856155429981
neval = 90
norm = 'max'
norm_func = <built-in function abs>
norm_funcs = {None: <function _max_norm at 0x0000024787B5C0D8>, 'max': <function _max_norm at 0x0000024787B5C0D8>, '2': <function norm at 0x00000247FE803E58>}
old_int = 1.5707963268467784
p = 0.0
parallel_count = 128
points = (0,)
prev = 0.0
quadrature = 'gk15'
rnd = 1.743934249061916e-14
rounding_error = 6.975736996132465e-14
status_msg = {0: 'Target precision reached.', 1: 'Target precision not reached.', 2: 'Target precision could not be reached due to rounding error.', 3: 'Non-finite values encountered.'}
subint = ((-1.0, -0.5, 0.7853981633974484, 1.2888960825934792e-10), (-0.5, 0.0, 0.7853981633974483, 1.2888960825934786e-10))
to_process = [((0.00019585615543584383, 0.0, 1.0, 1.5707963268467782), <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x00...nfiniteFunc object at 0x0000024799FFCA48>, <built-in function abs>, <function _quadrature_gk15 at 0x0000024787BDB678>)]
tol = 0.0001
workers = 4
x = (-0.5, 0.0, 0.7853981633974483, 1.2888960825934786e-10)
x1 = -0.5
x2 = 0.0
C:\Python37-x64\lib\site-packages\scipy\_lib\_util.py:466: in __exit__
self.pool.terminate()
exc_type = None
exc_value = None
self = <scipy._lib._util.MapWrapper object at 0x000002479C20C9C8>
traceback = None
C:\Python37-x64\lib\multiprocessing\pool.py:548: in terminate
self._terminate()
self = <multiprocessing.pool.Pool object at 0x000002479C20CBC8>
C:\Python37-x64\lib\multiprocessing\util.py:201: in __call__
res = self._callback(*self._args, **self._kwargs)
_finalizer_registry = {(None, 9): <Finalize object, callback=CloseHandle, args=(2044,)>, (None, 10): <Finalize object, callback=CloseHandle,...Finalize object, callback=CloseHandle, args=(2020,)>, (None, 12): <Finalize object, callback=CloseHandle, args=(508,)>}
getpid = <built-in function getpid>
self = <Finalize object, callback=_terminate_pool, args=(<_queue.SimpleQueue object at 0x000002479C1FB638>, <multiprocessing....emon 2636)>, <Thread(Thread-108, stopped daemon 3004)>, <Thread(Thread-109, stopped daemon 3664)>, {}), exitprority=15>
sub_debug = <function sub_debug at 0x00000247FF7A5DC8>
wr = None
C:\Python37-x64\lib\multiprocessing\pool.py:601: in _terminate_pool
p.terminate()
cache = {}
cls = <class 'multiprocessing.pool.Pool'>
inqueue = <multiprocessing.queues.SimpleQueue object at 0x000002479C20CB08>
outqueue = <multiprocessing.queues.SimpleQueue object at 0x000002479C2053C8>
p = <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>
pool = [<SpawnProcess(SpawnPoolWorker-7, stopped[SIGTERM] daemon)>, <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>, <SpawnProcess(SpawnPoolWorker-9, stopped daemon)>, <SpawnProcess(SpawnPoolWorker-10, stopped daemon)>]
result_handler = <Thread(Thread-109, stopped daemon 3664)>
task_handler = <Thread(Thread-108, stopped daemon 3004)>
taskqueue = <_queue.SimpleQueue object at 0x000002479C1FB638>
worker_handler = <Thread(Thread-107, stopped daemon 2636)>
C:\Python37-x64\lib\multiprocessing\process.py:124: in terminate
self._popen.terminate()
self = <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>
C:\Python37-x64\lib\multiprocessing\popen_spawn_win32.py:119: in terminate
_winapi.TerminateProcess(int(self._handle), TERMINATE)
E PermissionError: [WinError 5] Access is denied
self = <multiprocessing.popen_spawn_win32.Popen object at 0x000002479C205748>"><pre class="notranslate"><code class="notranslate">================================== FAILURES ===================================
_____________________________ test_quad_vec_pool ______________________________
[gw0] win32 -- Python 3.7.5 C:\Python37-x64\python.exe
C:\Python37-x64\lib\site-packages\scipy\integrate\tests\test__quad_vec.py:98: in test_quad_vec_pool
res, err = quad_vec(f, -np.inf, np.inf, norm='max', epsabs=1e-4, workers=4)
Pool = <function Pool at 0x000002479C210A68>
f = <function _lorenzian at 0x0000024787C0FDC8>
C:\Python37-x64\lib\site-packages\scipy\integrate\_quad_vec.py:252: in quad_vec
res = quad_vec(f2, -1, 1, **kwargs)
a = -inf
b = inf
cache_size = 100000000.0
epsabs = 0.0001
epsrel = 1e-08
f = <function _lorenzian at 0x0000024787C0FDC8>
f2 = <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x0000024799FFCA48>
full_output = False
kwargs = {'cache_size': 100000000.0, 'epsabs': 0.0001, 'epsrel': 1e-08, 'full_output': False, ...}
limit = 10000
norm = 'max'
points = None
quadrature = None
sgn = 1
workers = 4
C:\Python37-x64\lib\site-packages\scipy\integrate\_quad_vec.py:391: in quad_vec
break
CONVERGED = 0
NOT_A_NUMBER = 3
NOT_CONVERGED = 1
ROUNDING_ERROR = 2
_quadrature = <function _quadrature_gk15 at 0x0000024787BDB678>
a = -1.0
b = 0.0
cache_count = 4166666.0
cache_size = 100000000.0
derr = -0.0001958558976507645
dint = -5.188183216375819e-11
dneval = 30
dround_err = 1.7439342490043163e-14
epsabs = 0.0001
epsrel = 1e-08
err = 1.2888960825934786e-10
err_sum = 0.00039171231086582484
f = <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x0000024799FFCA48>
full_output = False
global_error = 5.155584007941142e-10
global_integral = 3.141592653589793
ier = 0
ig = 0.7853981633974483
initial_intervals = [(-1.0, 0.0), (0.0, 1.0)]
interval = (-0.000195856155429981, -1.0, 0.0)
interval_cache = LRUDict([((0.0, 0.5), 0.7853981633974485), ((0.5, 1.0), 0.7853981633974483), ((-1.0, -0.5), 0.7853981633974484), ((-0.5, 0.0), 0.7853981633974483)])
intervals = [(-1.2888960825934792e-10, -1.0, -0.5), (-1.2888960825934786e-10, -0.5, 0.0), (-1.2888960825934792e-10, 0.5, 1.0), (-1.2888957602994802e-10, 0.0, 0.5)]
j = 2
kwargs = {'cache_size': 100000000.0, 'epsabs': 0.0001, 'epsrel': 1e-08, 'full_output': False, ...}
limit = 10000
mapwrapper = <scipy._lib._util.MapWrapper object at 0x000002479C20C9C8>
min_intervals = 2
neg_old_err = -0.000195856155429981
neval = 90
norm = 'max'
norm_func = <built-in function abs>
norm_funcs = {None: <function _max_norm at 0x0000024787B5C0D8>, 'max': <function _max_norm at 0x0000024787B5C0D8>, '2': <function norm at 0x00000247FE803E58>}
old_int = 1.5707963268467784
p = 0.0
parallel_count = 128
points = (0,)
prev = 0.0
quadrature = 'gk15'
rnd = 1.743934249061916e-14
rounding_error = 6.975736996132465e-14
status_msg = {0: 'Target precision reached.', 1: 'Target precision not reached.', 2: 'Target precision could not be reached due to rounding error.', 3: 'Non-finite values encountered.'}
subint = ((-1.0, -0.5, 0.7853981633974484, 1.2888960825934792e-10), (-0.5, 0.0, 0.7853981633974483, 1.2888960825934786e-10))
to_process = [((0.00019585615543584383, 0.0, 1.0, 1.5707963268467782), <scipy.integrate._quad_vec.DoubleInfiniteFunc object at 0x00...nfiniteFunc object at 0x0000024799FFCA48>, <built-in function abs>, <function _quadrature_gk15 at 0x0000024787BDB678>)]
tol = 0.0001
workers = 4
x = (-0.5, 0.0, 0.7853981633974483, 1.2888960825934786e-10)
x1 = -0.5
x2 = 0.0
C:\Python37-x64\lib\site-packages\scipy\_lib\_util.py:466: in __exit__
self.pool.terminate()
exc_type = None
exc_value = None
self = <scipy._lib._util.MapWrapper object at 0x000002479C20C9C8>
traceback = None
C:\Python37-x64\lib\multiprocessing\pool.py:548: in terminate
self._terminate()
self = <multiprocessing.pool.Pool object at 0x000002479C20CBC8>
C:\Python37-x64\lib\multiprocessing\util.py:201: in __call__
res = self._callback(*self._args, **self._kwargs)
_finalizer_registry = {(None, 9): <Finalize object, callback=CloseHandle, args=(2044,)>, (None, 10): <Finalize object, callback=CloseHandle,...Finalize object, callback=CloseHandle, args=(2020,)>, (None, 12): <Finalize object, callback=CloseHandle, args=(508,)>}
getpid = <built-in function getpid>
self = <Finalize object, callback=_terminate_pool, args=(<_queue.SimpleQueue object at 0x000002479C1FB638>, <multiprocessing....emon 2636)>, <Thread(Thread-108, stopped daemon 3004)>, <Thread(Thread-109, stopped daemon 3664)>, {}), exitprority=15>
sub_debug = <function sub_debug at 0x00000247FF7A5DC8>
wr = None
C:\Python37-x64\lib\multiprocessing\pool.py:601: in _terminate_pool
p.terminate()
cache = {}
cls = <class 'multiprocessing.pool.Pool'>
inqueue = <multiprocessing.queues.SimpleQueue object at 0x000002479C20CB08>
outqueue = <multiprocessing.queues.SimpleQueue object at 0x000002479C2053C8>
p = <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>
pool = [<SpawnProcess(SpawnPoolWorker-7, stopped[SIGTERM] daemon)>, <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>, <SpawnProcess(SpawnPoolWorker-9, stopped daemon)>, <SpawnProcess(SpawnPoolWorker-10, stopped daemon)>]
result_handler = <Thread(Thread-109, stopped daemon 3664)>
task_handler = <Thread(Thread-108, stopped daemon 3004)>
taskqueue = <_queue.SimpleQueue object at 0x000002479C1FB638>
worker_handler = <Thread(Thread-107, stopped daemon 2636)>
C:\Python37-x64\lib\multiprocessing\process.py:124: in terminate
self._popen.terminate()
self = <SpawnProcess(SpawnPoolWorker-8, stopped daemon)>
C:\Python37-x64\lib\multiprocessing\popen_spawn_win32.py:119: in terminate
_winapi.TerminateProcess(int(self._handle), TERMINATE)
E PermissionError: [WinError 5] Access is denied
self = <multiprocessing.popen_spawn_win32.Popen object at 0x000002479C205748>
</code></pre></div> | <p dir="auto"><a href="https://ci.appveyor.com/project/scipy/scipy-wheels/builds/40998533/job/eqlrdamm2bp6kkxp" rel="nofollow">Here</a> This is on Python 3.9, 3.8 passed.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Python39\lib\site-packages\scipy\integrate\tests\test__quad_vec.py:108: in test_quad_vec_pool
...
C:\Python39\lib\multiprocessing\popen_spawn_win32.py:123: in terminate
_winapi.TerminateProcess(int(self._handle), TERMINATE)
E PermissionError: [WinError 5] Access is denied
self = <multiprocessing.popen_spawn_win32.Popen object at 0x137C0748>"><pre class="notranslate"><code class="notranslate">C:\Python39\lib\site-packages\scipy\integrate\tests\test__quad_vec.py:108: in test_quad_vec_pool
...
C:\Python39\lib\multiprocessing\popen_spawn_win32.py:123: in terminate
_winapi.TerminateProcess(int(self._handle), TERMINATE)
E PermissionError: [WinError 5] Access is denied
self = <multiprocessing.popen_spawn_win32.Popen object at 0x137C0748>
</code></pre></div>
<p dir="auto">It isn't clear if this is an upstream problem or misuse on scipy's part.</p> | 1 |
<h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
S = pd.Series([np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3])
print S; print; print set(S)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-v">S</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1.5</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">2</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])
<span class="pl-k">print</span> <span class="pl-v">S</span>; <span class="pl-s1">print</span>; <span class="pl-k">print</span> <span class="pl-en">set</span>(<span class="pl-v">S</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The NaNs show up multiple times in set(S), which is not a problem if</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="S = [np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3]"><pre class="notranslate"><span class="pl-v">S</span> <span class="pl-c1">=</span> [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1.5</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">2</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]</pre></div>
<p dir="auto">is used instead. The multiple NaNs in set(S) also become very slow to run if</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="S = pd.Series([np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3] + [np.nan] * 100000)"><pre class="notranslate"><span class="pl-v">S</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1.5</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">2</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>] <span class="pl-c1">+</span> [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>] <span class="pl-c1">*</span> <span class="pl-c1">100000</span>)</pre></div>
<p dir="auto">is used. Without pd.Series it's a flash of a second.</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: df = DataFrame({'A' : np.random.randn(5),
'B' : np.random.randn(5),'C' : np.random.randn(5),
'D':['a','b','c','d','e'] })
In [22]: df
Out[22]:
A B C D
0 -0.941264 0.272726 -0.547948 a
1 0.069432 1.398414 0.039093 b
2 -0.073638 -1.264676 -1.339994 c
3 1.520017 -0.562979 -0.739326 d
4 -0.395157 0.542807 0.766582 e
[5 rows x 4 columns]
In [23]: df.take([2,0,1,2,3], axis=1).drop('C',axis=1)
Out[23]:
A B D
0 -0.941264 0.272726 a
1 0.069432 1.398414 b
2 -0.073638 -1.264676 c
3 1.520017 -0.562979 d
4 -0.395157 0.542807 e
[5 rows x 3 columns]
In [24]: df.take([2,0,1,2,1], axis=1).drop('C',axis=1)
IndexError: index 3 is out of bounds for axis 0 with size 3"><pre class="notranslate"><code class="notranslate">In [21]: df = DataFrame({'A' : np.random.randn(5),
'B' : np.random.randn(5),'C' : np.random.randn(5),
'D':['a','b','c','d','e'] })
In [22]: df
Out[22]:
A B C D
0 -0.941264 0.272726 -0.547948 a
1 0.069432 1.398414 0.039093 b
2 -0.073638 -1.264676 -1.339994 c
3 1.520017 -0.562979 -0.739326 d
4 -0.395157 0.542807 0.766582 e
[5 rows x 4 columns]
In [23]: df.take([2,0,1,2,3], axis=1).drop('C',axis=1)
Out[23]:
A B D
0 -0.941264 0.272726 a
1 0.069432 1.398414 b
2 -0.073638 -1.264676 c
3 1.520017 -0.562979 d
4 -0.395157 0.542807 e
[5 rows x 3 columns]
In [24]: df.take([2,0,1,2,1], axis=1).drop('C',axis=1)
IndexError: index 3 is out of bounds for axis 0 with size 3
</code></pre></div> | 0 |
<p dir="auto">One way to implement <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="204130237" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/7739" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/7739/hovercard" href="https://github.com/flutter/flutter/issues/7739">#7739</a> would be to create a headless test device. This would be based off of sky_shell, and be accessed through something like <code class="notranslate">flutter run -d test_shell</code>.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tvolkert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tvolkert">@tvolkert</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yjbanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yjbanov">@yjbanov</a></p> | <p dir="auto">A <code class="notranslate">HostDevice</code> is similar to <code class="notranslate">AndroidDevice</code> and <code class="notranslate">IOSDevice</code> but runs Flutter shell on the host machine instead of a real device or an emulator. We already do this for <code class="notranslate">flutter test</code>. This feature request is to extend this capability to other commands, especially <code class="notranslate">run</code> and <code class="notranslate">drive</code>.</p>
<p dir="auto">Flutter tools should have an option to use a host device as a deployment target. Strawman:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run -d host
flutter drive -d host"><pre class="notranslate"><code class="notranslate">flutter run -d host
flutter drive -d host
</code></pre></div>
<h2 dir="auto">Why?</h2>
<p dir="auto"><strong>tl;dr</strong> so we can run more tests on Travis as a pre-submit step</p>
<ul dir="auto">
<li>smoke-test <code class="notranslate">flutter</code> sub-commands, such as <code class="notranslate">run</code> and <code class="notranslate">drive</code></li>
<li>sanity check our integration tests prior to sending them over to the device lab, such as:
<ul dir="auto">
<li>performance tests</li>
<li>hot-reload dev cycle tests</li>
</ul>
</li>
</ul>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/devoncarew/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/devoncarew">@devoncarew</a></p> | 1 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">I recently updated material-ui from 0.18.2 to 0.18.4 and noticed that the buttons in my application have a unusual white gap on the bottom of the buttons with a containerElement attached to it (the element is a react element.</p>
<p dir="auto">I switched back to 0.18.2 and the gap seized to exist. I upgrade to 0.18.3 and it still didn't appear until I upgraded to 0.18.4.</p>
<p dir="auto">The difference seems to be that the button now has a overflow: hidden attribute to it whereas the other buttons do not show this attribute at all.</p>
<h3 dir="auto">Link to minimal working code that reproduces the issue</h3>
<p dir="auto">You can see this problem on the demo where a RaisedButton</p>
<p dir="auto"><br>
has the gap when you hover over it. I don't see this problem in other buttons.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9777005/27594080-de05e530-5b26-11e7-8183-d0dc82bacd92.png"><img src="https://user-images.githubusercontent.com/9777005/27594080-de05e530-5b26-11e7-8183-d0dc82bacd92.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.18.4</li>
<li>React: 15.6.1</li>
<li>Browser: Chrome 58.0.3029.110 (64-bit)</li>
</ul> | <p dir="auto">The latest release 0.18.4 adds <code class="notranslate">overflow: hidden;</code> to a containerElement on RaisedButton. This is not happening with 0.18.3. It increases the height of the button and displays a white border at the bottom of the button,</p>
<p dir="auto">Also checked FlatButton, which still works properly.</p>
<p dir="auto">Here is a link to a reproduction:<br>
<a href="https://www.webpackbin.com/bins/-KnZlC-OMVsBCErCmgGD" rel="nofollow">https://www.webpackbin.com/bins/-KnZlC-OMVsBCErCmgGD</a></p>
<p dir="auto">EDIT: for convenience, here is a link to webpackbin with 0.18.3<br>
<a href="https://www.webpackbin.com/bins/-KnZuTGm_5ZPX8yRYMgR" rel="nofollow">https://www.webpackbin.com/bins/-KnZuTGm_5ZPX8yRYMgR</a></p> | 1 |
<p dir="auto">The problem occurs when trying to compile the Slackbuild numpy or numpy3. THe compilation fails in the same position (see error message)<br>
I am unsure what needs to be fixed and why this compilation fails. Any help would be appreciated.</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">I tried to build a Slackbuild version of the latest numpy/numpy3 source on a recent stock slackware64-current install with OpenBLAS 0.3.3 added (<a href="http://slackbuilds.org" rel="nofollow">http://slackbuilds.org</a>)</p>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Command "gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c numpy/core/src/multiarray/numpyos.c -o build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/numpyos.o -MMD -MF build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/numpyos.o.d" failed with exit status 1"><pre class="notranslate"><code class="notranslate">error: Command "gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c numpy/core/src/multiarray/numpyos.c -o build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/numpyos.o -MMD -MF build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/numpyos.o.d" failed with exit status 1
</code></pre></div>
<h3 dir="auto">Numpy/Python version information: 1.14.3 (both numpy and numpy3)</h3> | <p dir="auto">On a clean Linux system (nothing but the most recent Manjaro Linux and the latest 64-bit Anaconda Linux install) I decided to try to use the conda compilers instead of the system ones to build NumPy and SciPy against the Anaconda-provided Python 3.7. There are some issues with that.</p>
<ol dir="auto">
<li>The <code class="notranslate">conda activate</code> scripts set <code class="notranslate">LDFLAGS</code>. This needs to be handled by setting <code class="notranslate">export NPY_DISTUTILS_APPEND_FLAGS=1</code>. That's a good thing to put in your <code class="notranslate">.bash_profile</code> anyway. So not a big issue.</li>
<li>The build fails because of include paths:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:28:16: error: redefinition of 'struct __locale_struct'
typedef struct __locale_struct
^~~~~~~~~~~~~~~
In file included from /usr/include/bits/types/locale_t.h:22:0,
from /usr/include/string.h:152,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:28:8: note: originally defined here
struct __locale_struct
^~~~~~~~~~~~~~~
In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:40:4: error: conflicting types for '__locale_t'
} *__locale_t;
^~~~~~~~~~
In file included from /usr/include/bits/types/locale_t.h:22:0,
from /usr/include/string.h:152,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:42:33: note: previous declaration of '__locale_t' was here
typedef struct __locale_struct *__locale_t;
^~~~~~~~~~
In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:43:20: error: conflicting types for 'locale_t'
typedef __locale_t locale_t;
^~~~~~~~
In file included from /usr/include/string.h:152:0,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/locale_t.h:24:20: note: previous declaration of 'locale_t' was here
typedef __locale_t locale_t;
^~~~~~~~
numpy/core/src/common/numpyos.c: In function 'NumPyOS_ascii_strtold':
numpy/core/src/common/numpyos.c:568:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
clocale = newlocale(LC_ALL_MASK, "C", NULL);
^
numpy/core/src/common/numpyos.c:571:39: warning: passing argument 3 of 'strtold_l' from incompatible pointer type [-Wincompatible-pointer-types]
result = strtold_l(s, endptr, clocale);
^~~~~~~
In file included from /home/rgommers/anaconda3/include/python3.7m/Python.h:34:0,
from numpy/core/src/common/numpyos.c:2:
/usr/include/stdlib.h:303:20: note: expected 'locale_t {aka struct __locale_struct *}' but argument is of type 'locale_t {aka struct __locale_struct *}'
extern long double strtold_l (const char *__restrict __nptr,
^~~~~~~~~
numpy/core/src/common/numpyos.c:572:20: warning: passing argument 1 of 'freelocale' from incompatible pointer type [-Wincompatible-pointer-types]
freelocale(clocale);
^~~~~~~
In file included from numpy/core/src/common/numpyos.c:4:0:
/usr/include/locale.h:180:13: note: expected 'locale_t {aka struct __locale_struct *}' but argument is of type 'locale_t {aka struct __locale_struct *}'
extern void freelocale (locale_t __dataset) __THROW;
^~~~~~~~~~
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/common/npy_longdouble.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/multiarray/mapping.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/multiarray/methods.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/umath/matmul.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/umath/ufunc_object.c
error: Command "/home/rgommers/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DSCIPY_MKL_H -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/rgommers/anaconda3/include -Inumpy/core/src/umath -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/include -Inumpy/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/home/rgommers/anaconda3/include/python3.7m -Inumpy/core/src/common -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o.d" failed with exit status 1"><pre class="notranslate"><code class="notranslate">In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:28:16: error: redefinition of 'struct __locale_struct'
typedef struct __locale_struct
^~~~~~~~~~~~~~~
In file included from /usr/include/bits/types/locale_t.h:22:0,
from /usr/include/string.h:152,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:28:8: note: originally defined here
struct __locale_struct
^~~~~~~~~~~~~~~
In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:40:4: error: conflicting types for '__locale_t'
} *__locale_t;
^~~~~~~~~~
In file included from /usr/include/bits/types/locale_t.h:22:0,
from /usr/include/string.h:152,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:42:33: note: previous declaration of '__locale_t' was here
typedef struct __locale_struct *__locale_t;
^~~~~~~~~~
In file included from numpy/core/src/common/numpyos.c:23:0:
/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/include/xlocale.h:43:20: error: conflicting types for 'locale_t'
typedef __locale_t locale_t;
^~~~~~~~
In file included from /usr/include/string.h:152:0,
from /home/rgommers/anaconda3/include/python3.7m/Python.h:30,
from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/locale_t.h:24:20: note: previous declaration of 'locale_t' was here
typedef __locale_t locale_t;
^~~~~~~~
numpy/core/src/common/numpyos.c: In function 'NumPyOS_ascii_strtold':
numpy/core/src/common/numpyos.c:568:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
clocale = newlocale(LC_ALL_MASK, "C", NULL);
^
numpy/core/src/common/numpyos.c:571:39: warning: passing argument 3 of 'strtold_l' from incompatible pointer type [-Wincompatible-pointer-types]
result = strtold_l(s, endptr, clocale);
^~~~~~~
In file included from /home/rgommers/anaconda3/include/python3.7m/Python.h:34:0,
from numpy/core/src/common/numpyos.c:2:
/usr/include/stdlib.h:303:20: note: expected 'locale_t {aka struct __locale_struct *}' but argument is of type 'locale_t {aka struct __locale_struct *}'
extern long double strtold_l (const char *__restrict __nptr,
^~~~~~~~~
numpy/core/src/common/numpyos.c:572:20: warning: passing argument 1 of 'freelocale' from incompatible pointer type [-Wincompatible-pointer-types]
freelocale(clocale);
^~~~~~~
In file included from numpy/core/src/common/numpyos.c:4:0:
/usr/include/locale.h:180:13: note: expected 'locale_t {aka struct __locale_struct *}' but argument is of type 'locale_t {aka struct __locale_struct *}'
extern void freelocale (locale_t __dataset) __THROW;
^~~~~~~~~~
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/common/npy_longdouble.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/multiarray/mapping.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/multiarray/methods.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/umath/matmul.c
x86_64-conda_cos6-linux-gnu-cc: numpy/core/src/umath/ufunc_object.c
error: Command "/home/rgommers/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DSCIPY_MKL_H -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/rgommers/anaconda3/include -Inumpy/core/src/umath -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/include -Inumpy/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/home/rgommers/anaconda3/include/python3.7m -Inumpy/core/src/common -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o.d" failed with exit status 1
</code></pre></div>
<p dir="auto">The problem seems to be that we explicitly include <code class="notranslate">/usr/include/</code> and <code class="notranslate">/usr/local/include/</code> in the <code class="notranslate">default_include_dirs</code> in <code class="notranslate">numpy/distutils/system_info.py</code>. If we remove those, then everything builds fine. I think this is the right thing to do, because those paths are already<br>
included by compilers anyway.</p>
<p dir="auto">The conda compiler docs linked above don't discuss this. They do explain this:<br>
<em>Some users want to use the latest Anaconda packages but do not yet want to use the Anaconda compilers. To enable this, the latest Python package builds have a default _sysconfigdata file. This file sets the compilers provided by the system, such as gcc and g++, as the default compilers. This way legacy recipes will keep working.</em><br>
It continues to talk about how to switch to conda compilers by setting <code class="notranslate">_PYTHON_SYSCONFIGDATA_NAME</code>, however this isn't enough.</p>
<p dir="auto">This is the default (from <code class="notranslate">anaconda3/lib/python3.7/distutils/sysconfig.py</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_x86_64-linux-gnu"><pre class="notranslate"><code class="notranslate">export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_x86_64-linux-gnu
</code></pre></div>
<p dir="auto">So setting it to that is a do-nothing. If you get the name wrong you'll get an error like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ModuleNotFoundError: No module named '_sysconfigdata_m_linux_x86_64-linux-gn'"><pre class="notranslate"><code class="notranslate">ModuleNotFoundError: No module named '_sysconfigdata_m_linux_x86_64-linux-gn'
</code></pre></div>
<p dir="auto">Now we set it to the value as set by <code class="notranslate">anaconda3/etc/conda/activate.d/activate-gcc_linux-64.sh</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu"><pre class="notranslate"><code class="notranslate">export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu
</code></pre></div>
<p dir="auto">This is what the conda compiler docs recommend:<br>
<a href="https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html#backward-compatibility" rel="nofollow">https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html#backward-compatibility</a>.<br>
It still gives us the same error though:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Command "/home/rgommers/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DSCIPY_MKL_H -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/rgommers/anaconda3/include -Inumpy/core/src/umath -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/include -Inumpy/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/home/rgommers/anaconda3/include/python3.7m -Inumpy/core/src/common -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o.d" failed with exit status 1"><pre class="notranslate"><code class="notranslate">error: Command "/home/rgommers/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DSCIPY_MKL_H -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/rgommers/anaconda3/include -Inumpy/core/src/umath -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/include -Inumpy/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/home/rgommers/anaconda3/include/python3.7m -Inumpy/core/src/common -Inumpy/core/src/npymath -Inumpy/core/src/common -Inumpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/core/src/common/numpyos.o.d" failed with exit status 1
</code></pre></div>
<p dir="auto">Also axplicitly including <code class="notranslate">--sysroot=/home/rgommers/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot</code> in that failing build command doesn't change the build error.</p>
<p dir="auto">On the other hand, this fixes things (both with and without setting <code class="notranslate">_PYTHON_SYSCONFIGDATA_NAME</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 4d923ad26..8d32db6f2 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -278,7 +278,7 @@ else:
'/opt/local/lib', '/sw/lib'], platform_bits)
default_runtime_dirs = []
default_include_dirs = ['/usr/local/include',
- '/opt/include', '/usr/include',
+ '/opt/include',
# path of umfpack under macports
'/opt/local/include/ufsparse',
'/opt/local/include', '/sw/include',"><pre class="notranslate"><code class="notranslate">diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 4d923ad26..8d32db6f2 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -278,7 +278,7 @@ else:
'/opt/local/lib', '/sw/lib'], platform_bits)
default_runtime_dirs = []
default_include_dirs = ['/usr/local/include',
- '/opt/include', '/usr/include',
+ '/opt/include',
# path of umfpack under macports
'/opt/local/include/ufsparse',
'/opt/local/include', '/sw/include',
</code></pre></div>
<p dir="auto">I think that's the right fix (ref <a href="https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html" rel="nofollow">https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html</a>). I think that all compilers include <code class="notranslate">/usr/include/</code> in their search path (however not 100% sure).</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.1.1</li>
<li>OS Version: Windows 8.1</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>open html file</li>
<li>alt+shift+RightArrow</li>
</ol>
<p dir="auto">works for me in other language modes, but not in HTML</p> | <p dir="auto">I can not use <code class="notranslate">editor.action.smartSelect.grow</code> and <code class="notranslate">editor.action.smartSelect.shrink</code> functions to working on html file. I don't think the develop team have any reason to disable them on html file. It's should be working on any file!! Any body know why?<br>
Please fix it!<br>
Thanks!</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="LibSSH2_jll (7) | started at 2020-12-17T15:29:21.241
From worker 2: ��� Warning: Package LibGit2_jll does not have nghttp2_jll in its dependencies:
From worker 2: ��� - If you have LibGit2_jll checked out for development and have
From worker 2: ��� added nghttp2_jll as a dependency but haven't updated your primary
From worker 2: ��� environment's manifest file, try `Pkg.resolve()`.
From worker 2: ��� - Otherwise you may need to report an issue with LibGit2_jll
From worker 2: ��� Loading nghttp2_jll into LibGit2_jll from project dependency, future warnings for LibGit2_jll are suppressed.
LibSSH2_jll (7) | 1.00 | 0.00 | 0.0 | 0.90 | 1581.01
LibUV_jll (7) | started at 2020-12-17T15:29:22.249
From worker 2: ��� Warning: Module MbedTLS_jll with build ID 45447383554825846 is missing from the cache.
From worker 2: ��� This may mean MbedTLS_jll [c8ffd9c3-330d-5841-b78e-0817d7145fa1] does not support precompilation but is imported by a module that does.
From worker 2: ��� @ Base loading.jl:1003
LibUV_jll (7) | 0.42 | 0.00 | 0.0 | 1.74 | 1581.01
LibUnwind_jll (7) | started at 2020-12-17T15:29:22.670
LibUnwind_jll (7) | 0.28 | 0.00 | 0.0 | 0.29 | 1581.01
Libdl (7) | started at 2020-12-17T15:29:22.951
��� Warning: The call to compilecache failed to create a usable precompiled cache file for LibGit2_jll [e37daf67-58a4-590a-8e99-b0245dd2ffc5]
��� exception = Required dependency MbedTLS_jll [c8ffd9c3-330d-5841-b78e-0817d7145fa1] failed to load from a cache file.
��� @ Base loading.jl:1028
��� Warning: Package LibGit2_jll does not have nghttp2_jll in its dependencies:
��� - If you have LibGit2_jll checked out for development and have
��� added nghttp2_jll as a dependency but haven't updated your primary
��� environment's manifest file, try `Pkg.resolve()`.
��� - Otherwise you may need to report an issue with LibGit2_jll
��� Loading nghttp2_jll into LibGit2_jll from project dependency, future warnings for LibGit2_jll are suppressed."><pre class="notranslate"><code class="notranslate">LibSSH2_jll (7) | started at 2020-12-17T15:29:21.241
From worker 2: ��� Warning: Package LibGit2_jll does not have nghttp2_jll in its dependencies:
From worker 2: ��� - If you have LibGit2_jll checked out for development and have
From worker 2: ��� added nghttp2_jll as a dependency but haven't updated your primary
From worker 2: ��� environment's manifest file, try `Pkg.resolve()`.
From worker 2: ��� - Otherwise you may need to report an issue with LibGit2_jll
From worker 2: ��� Loading nghttp2_jll into LibGit2_jll from project dependency, future warnings for LibGit2_jll are suppressed.
LibSSH2_jll (7) | 1.00 | 0.00 | 0.0 | 0.90 | 1581.01
LibUV_jll (7) | started at 2020-12-17T15:29:22.249
From worker 2: ��� Warning: Module MbedTLS_jll with build ID 45447383554825846 is missing from the cache.
From worker 2: ��� This may mean MbedTLS_jll [c8ffd9c3-330d-5841-b78e-0817d7145fa1] does not support precompilation but is imported by a module that does.
From worker 2: ��� @ Base loading.jl:1003
LibUV_jll (7) | 0.42 | 0.00 | 0.0 | 1.74 | 1581.01
LibUnwind_jll (7) | started at 2020-12-17T15:29:22.670
LibUnwind_jll (7) | 0.28 | 0.00 | 0.0 | 0.29 | 1581.01
Libdl (7) | started at 2020-12-17T15:29:22.951
��� Warning: The call to compilecache failed to create a usable precompiled cache file for LibGit2_jll [e37daf67-58a4-590a-8e99-b0245dd2ffc5]
��� exception = Required dependency MbedTLS_jll [c8ffd9c3-330d-5841-b78e-0817d7145fa1] failed to load from a cache file.
��� @ Base loading.jl:1028
��� Warning: Package LibGit2_jll does not have nghttp2_jll in its dependencies:
��� - If you have LibGit2_jll checked out for development and have
��� added nghttp2_jll as a dependency but haven't updated your primary
��� environment's manifest file, try `Pkg.resolve()`.
��� - Otherwise you may need to report an issue with LibGit2_jll
��� Loading nghttp2_jll into LibGit2_jll from project dependency, future warnings for LibGit2_jll are suppressed.
</code></pre></div>
<p dir="auto">Seems to be partially a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="749047464" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/38545" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/38545/hovercard" href="https://github.com/JuliaLang/julia/issues/38545">#38545</a> (caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="338280425" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/27932" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/27932/hovercard" href="https://github.com/JuliaLang/julia/pull/27932">#27932</a>). Possibly means <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="725936964" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/38116" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/38116/hovercard" href="https://github.com/JuliaLang/julia/issues/38116">#38116</a> needs to be reopened (again)?</p>
<p dir="auto"><a href="https://build.julialang.org/#/builders/4/builds/7130" rel="nofollow">https://build.julialang.org/#/builders/4/builds/7130</a></p> | <p dir="auto">Higham and Deadman have published a <a href="http://eprints.ma.man.ac.uk/2102/" rel="nofollow">list of software</a> implementing algorithms for matrix functions, showing that Julia's library for these functions could be improved greatly relative to the state of the art.</p>
<p dir="auto">The purpose of this issue is to discuss and track the implementation of matrix functions.</p>
<h2 dir="auto">From Higham and Deadman's list:</h2>
<h3 dir="auto">General function evaluations</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> General matrix function with derivatives of the underlying scalar function available: Schur–Parlett algorithm (Davies and Higham, 2003)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Function of a symmetric or Hermitian matrix by diagonalization</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Condition number estimate for general functions: <code class="notranslate">cond(f,A)</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> matrix function - vector product evaluation: <code class="notranslate">f(A) * b</code></li>
</ul>
<h3 dir="auto">Specific functions</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">expm</code>: scaling and squaring algorithm (Al-Mohy and Higham, 2009)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">logm</code>: inverse scaling and squaring algorithm (Al-Mohy, Higham, and Relton, 2012,<br>
2013)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">sqrtm</code>:
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Schur algorithm (Björck and Hammarling, 1983)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> real version for real matrices (Higham, 1987)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> blocking algorithm for performance improvements (Deadman, Higham, and Ralha, 2013)</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">A^t</code> for real matrix powers: Schur– Padé algorithm (Higham and Lin, 2013) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="217346763" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/21184" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/21184/hovercard" href="https://github.com/JuliaLang/julia/pull/21184">#21184</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Matrix <a href="http://eprints.ma.man.ac.uk/2094/" rel="nofollow">unwinding function</a></li>
</ul>
<h3 dir="auto"><a href="http://en.wikipedia.org/wiki/Fr%C3%A9chet_derivative" rel="nofollow">Fréchet derivatives</a></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Exponential: scaling and squaring algorithm (Al-Mohy and Higham, 2009)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Logarithm: inverse scaling and squaring algorithm (Al-Mohy, Higham, and Relton, 2013)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> General matrix function: complex step algorithm (Al-Mohy and Higham, 2010) or using block 2 × 2 matrix formula.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">A^t</code> for real matrix powers: Schur– Padé algorithm (Higham and Lin, 2013)</li>
</ul>
<h2 dir="auto">Miscellaneous functions</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">inv</code> and <code class="notranslate">det</code> for <code class="notranslate">Tridiagonal</code> and <code class="notranslate">SymTridiagonal</code> matrices (Usmani, 1994) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25438685" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/5358" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/5358/hovercard" href="https://github.com/JuliaLang/julia/pull/5358">#5358</a>)</li>
</ul> | 0 |
<h3 dir="auto"><strong>Create a react project with Typescript and start to report errors as soon as it runs.</strong></h3>
<h3 dir="auto">Errors</h3>
<p dir="auto"><strong>D:\XXXXXX\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239</strong><br>
appTsConfig.compilerOptions[option] = value;</p>
<p dir="auto">TypeError: Cannot assign to read only property 'jsx' of object '#'<br>
at verifyTypeScriptSetup (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239:43)<br>
at Object. (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\start.js:31:1)<br>
at Module._compile (internal/modules/cjs/loader.js:1063:30)<br>
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)<br>
at Module.load (internal/modules/cjs/loader.js:928:32)<br>
at Function.Module._load (internal/modules/cjs/loader.js:769:14)<br>
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)<br>
at internal/main/run_main_module.js:17:47<br>
error Command failed with exit code 1.</p><p dir="auto"></p><p></p> | <h3 dir="auto">Describe the bug</h3>
<p dir="auto">When creating a react-typescript app using</p>
<p dir="auto"><code class="notranslate">npx create-react-app . --template typescript </code></p>
<p dir="auto">The error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn run v1.22.5
$ react-scripts start
/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239
appTsConfig.compilerOptions[option] = value;
^
TypeError: Cannot assign to read only property 'jsx' of object '#<Object>'
at verifyTypeScriptSetup (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
at Object.<anonymous> (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/start.js:31:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
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 run v1.22.5
$ react-scripts start
/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239
appTsConfig.compilerOptions[option] = value;
^
TypeError: Cannot assign to read only property 'jsx' of object '#<Object>'
at verifyTypeScriptSetup (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
at Object.<anonymous> (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/start.js:31:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
</code></pre></div> | 1 |
<p dir="auto">As recently discussed on the TensorFlow mailing list (<a href="https://groups.google.com/a/tensorflow.org/d/msg/discuss/GUW0KOmN7MM/2lRMD4JVAQAJ" rel="nofollow">https://groups.google.com/a/tensorflow.org/d/msg/discuss/GUW0KOmN7MM/2lRMD4JVAQAJ</a>), it would be nice if TensorBoard would include an export function that supports exporting the graph in a vector graphics format (e.g., SVG or EPS, or both) in addition to the current PNG export function.</p>
<p dir="auto">For instance, I recently bumped into a case where I wanted to include the TensorBoard graph as an example output of a tutorial section on TensorBoard in my book and found that the PNG version is "too low-res" and not very helpful so that I had to manually redraw it. Also, I like to include TensorBoard graphs in reports some times after applying some stylistic changes and recently stumbled upon a browser utility called "SVG crowbar" that can get the graph from TensorBoard in SVG format -- with some workarounds. This indicates that it may already be in SVG format, and it would be nice to allow to export it to disk for styling and generating high res figures.</p> | <p dir="auto">Hi All,</p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: 1.12.0</li>
<li>Bazel installed version : 0.21.0</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv? pip? conda?:</li>
<li>Bazel version (if compiling from source): 0.21.0</li>
<li>GCC/Compiler version (if compiling from source): gcc 7.3</li>
<li>CUDA/cuDNN version: N/A</li>
<li>GPU model and memory: N/a</li>
</ul>
<p dir="auto">I'm trying to build tensorflow from source on arm64 (aarch64) but got stucked at the following:</p>
<p dir="auto">INFO: From Compiling tensorflow/core/kernels/diag_op.cc [for host]:<br>
tensorflow/core/kernels/diag_op.cc:118:1: warning: multi-line comment [-Wcomment]<br>
// `new_index = i1*(s2*...sk<em>s1</em>...<em>sk) + i2</em>(s3*...<em>sk</em>s1*...*sk) +... + <br>
^<br>
<strong>ERROR: /home/rock64/tensorflow/tensorflow/core/kernels/BUILD:2187:1: C++ compilation of rule '//tensorflow/core/kernels:resource_variable_ops' failed (Exit 4)</strong><br>
gcc: internal compiler error: Killed (program cc1plus)<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 3734.152s, Critical Path: 279.33s<br>
INFO: 4043 processes: 4043 local.<br>
FAILED: Build did NOT complete successfully</p>
<p dir="auto">Bazel installed version : 0.21.0<br>
Tensorflow : 1.12.0<br>
installed gcc-aarch64-linux-gnu & g++-aarch64-linux-gnu</p> | 0 |
<h2 dir="auto">Issue description</h2>
<p dir="auto">I was training an autoencoder with MSELoss, and the loss values on the training data were huge but the loss values on the validation data were small. It appeared as if the loss was not being averaged on the training pass, but it was on the validation pass. A little poking around in the debugger revealed this to be the case.</p>
<p dir="auto">The problem is in the <code class="notranslate">_pointwise_loss</code> loss function in <code class="notranslate">torch/nn/functional.py</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def _pointwise_loss(lambd, lambd_optimized, input, target, reduction='elementwise_mean'):
if target.requires_grad:
d = lambd(input, target)
if reduction == 'none':
return d
return torch.mean(d) if reduction == 'elementwise_mean' else torch.sum(d)
else:
return lambd_optimized(input, target, _Reduction.get_enum(reduction))"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">_pointwise_loss</span>(<span class="pl-s1">lambd</span>, <span class="pl-s1">lambd_optimized</span>, <span class="pl-s1">input</span>, <span class="pl-s1">target</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s">'elementwise_mean'</span>):
<span class="pl-k">if</span> <span class="pl-s1">target</span>.<span class="pl-s1">requires_grad</span>:
<span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-en">lambd</span>(<span class="pl-s1">input</span>, <span class="pl-s1">target</span>)
<span class="pl-k">if</span> <span class="pl-s1">reduction</span> <span class="pl-c1">==</span> <span class="pl-s">'none'</span>:
<span class="pl-k">return</span> <span class="pl-s1">d</span>
<span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-en">mean</span>(<span class="pl-s1">d</span>) <span class="pl-k">if</span> <span class="pl-s1">reduction</span> <span class="pl-c1">==</span> <span class="pl-s">'elementwise_mean'</span> <span class="pl-k">else</span> <span class="pl-s1">torch</span>.<span class="pl-en">sum</span>(<span class="pl-s1">d</span>)
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-en">lambd_optimized</span>(<span class="pl-s1">input</span>, <span class="pl-s1">target</span>, <span class="pl-s1">_Reduction</span>.<span class="pl-en">get_enum</span>(<span class="pl-s1">reduction</span>))</pre></div>
<p dir="auto">In the line <code class="notranslate">return torch.mean(d) if reduction == 'elementwise_mean' else torch.sum(d)</code>, the variable <code class="notranslate">reduction</code> is actually an integer with value <code class="notranslate">1</code>, not a string with value <code class="notranslate">'elementwise_mean'</code>, and so the loss is summed instead of averaged, even though the 'elementwise_mean` option was chosen.</p>
<h2 dir="auto">Code example</h2>
<p dir="auto">This code reproduces the problem:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torchvision as tv
class Net(torch.nn.Module):
def __init__(self):
super(Net, self).__init__()
self.c1 = torch.nn.Conv2d(1, 16, 3, padding=1)
self.c2 = torch.nn.Conv2d(16, 1, 3, padding=1)
self.relu = torch.nn.ReLU(inplace=True)
def forward(self, x):
x = self.c2(self.relu(self.c1(x)))
return x
net = Net()
data = torchvision.datasets.MNIST('MNIST', True, download=True, transform=tv.transforms.ToTensor())
mse = torch.nn.MSELoss(reduction='elementwise_mean')
img = data[0][0].view(1, 1, 28, 28).requires_grad_()
pred = net(img)
loss1 = mse(pred, img).item()
img.requires_grad = False
loss2 = mse(pred, img).item()
print(loss1, loss2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torchvision</span> <span class="pl-k">as</span> <span class="pl-s1">tv</span>
<span class="pl-k">class</span> <span class="pl-v">Net</span>(<span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-en">super</span>(<span class="pl-v">Net</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-s1">self</span>.<span class="pl-s1">c1</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Conv2d</span>(<span class="pl-c1">1</span>, <span class="pl-c1">16</span>, <span class="pl-c1">3</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">c2</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Conv2d</span>(<span class="pl-c1">16</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">relu</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>):
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">c2</span>(<span class="pl-s1">self</span>.<span class="pl-en">relu</span>(<span class="pl-s1">self</span>.<span class="pl-en">c1</span>(<span class="pl-s1">x</span>)))
<span class="pl-k">return</span> <span class="pl-s1">x</span>
<span class="pl-s1">net</span> <span class="pl-c1">=</span> <span class="pl-v">Net</span>()
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">torchvision</span>.<span class="pl-s1">datasets</span>.<span class="pl-v">MNIST</span>(<span class="pl-s">'MNIST'</span>, <span class="pl-c1">True</span>, <span class="pl-s1">download</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">transform</span><span class="pl-c1">=</span><span class="pl-s1">tv</span>.<span class="pl-s1">transforms</span>.<span class="pl-v">ToTensor</span>())
<span class="pl-s1">mse</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">MSELoss</span>(<span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s">'elementwise_mean'</span>)
<span class="pl-s1">img</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>[<span class="pl-c1">0</span>][<span class="pl-c1">0</span>].<span class="pl-en">view</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">28</span>, <span class="pl-c1">28</span>).<span class="pl-en">requires_grad_</span>()
<span class="pl-s1">pred</span> <span class="pl-c1">=</span> <span class="pl-en">net</span>(<span class="pl-s1">img</span>)
<span class="pl-s1">loss1</span> <span class="pl-c1">=</span> <span class="pl-en">mse</span>(<span class="pl-s1">pred</span>, <span class="pl-s1">img</span>).<span class="pl-en">item</span>()
<span class="pl-s1">img</span>.<span class="pl-s1">requires_grad</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-s1">loss2</span> <span class="pl-c1">=</span> <span class="pl-en">mse</span>(<span class="pl-s1">pred</span>, <span class="pl-s1">img</span>).<span class="pl-en">item</span>()
<span class="pl-en">print</span>(<span class="pl-s1">loss1</span>, <span class="pl-s1">loss2</span>)</pre></div>
<p dir="auto">And the output is:<br>
<code class="notranslate">155.7478 0.1987</code></p>
<h2 dir="auto">System Info</h2>
<p dir="auto">PyTorch version: 0.4.1<br>
Is debug build: No<br>
CUDA used to build PyTorch: 9.0.176</p>
<p dir="auto">OS: Ubuntu 16.04.2 LTS<br>
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609<br>
CMake version: version 3.10.2</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: Yes<br>
CUDA runtime version: 7.5.17<br>
GPU models and configuration:<br>
GPU 0: GeForce GTX 1080 Ti<br>
GPU 1: GeForce GTX 1080 Ti<br>
GPU 2: GeForce GTX 1080 Ti<br>
GPU 3: GeForce GTX 1080 Ti<br>
GPU 4: GeForce GTX 1080 Ti<br>
GPU 5: GeForce GTX 1080 Ti<br>
GPU 6: GeForce GTX 1080 Ti<br>
GPU 7: GeForce GTX 1080 Ti</p>
<p dir="auto">Nvidia driver version: 387.34<br>
cuDNN version: Probably one of the following:<br>
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so<br>
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5<br>
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5.0.5<br>
/usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn_static.a<br>
/usr/local/cuda-9.0/lib64/libcudnn.so<br>
/usr/local/cuda-9.0/lib64/libcudnn.so.7<br>
/usr/local/cuda-9.0/lib64/libcudnn.so.7.0.3<br>
/usr/local/cuda-9.0/lib64/libcudnn_static.a</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] Could not collect<br>
[conda] Could not collect</p> | <h2 dir="auto">Issue description</h2>
<p dir="auto">If a tensor with requires_grad=True is passed to mse_loss, then the loss is reduced even if reduction is none.<br>
Appeared in Pytorch 0.4.1.</p>
<h2 dir="auto">Code example</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch
x = torch.zeros((4, 5, 2))
print('Good', torch.nn.functional.mse_loss(x, x, reduction='none').shape)
x.requires_grad = True
print('Bad', torch.nn.functional.mse_loss(x, x, reduction='none').shape)"><pre lang="(python)" class="notranslate"><code class="notranslate">import torch
x = torch.zeros((4, 5, 2))
print('Good', torch.nn.functional.mse_loss(x, x, reduction='none').shape)
x.requires_grad = True
print('Bad', torch.nn.functional.mse_loss(x, x, reduction='none').shape)
</code></pre></div>
<p dir="auto">Outputs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Good torch.Size([4, 5, 2])
Bad torch.Size([])"><pre class="notranslate"><code class="notranslate">Good torch.Size([4, 5, 2])
Bad torch.Size([])
</code></pre></div>
<h2 dir="auto">System Info</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: 9.0.176
OS: Ubuntu 16.04.3 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
CMake version: version 3.5.1
Python version: 3.6"><pre class="notranslate"><code class="notranslate">Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: 9.0.176
OS: Ubuntu 16.04.3 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
CMake version: version 3.5.1
Python version: 3.6
</code></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>
<p dir="auto">This <em>might</em> be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="849605075" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/3021" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3021/hovercard" href="https://github.com/npm/cli/issues/3021">#3021</a>, but the repro is different, and hopefully easier to diagnose.</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto"><code class="notranslate">npm install --prefix <tmpdir> <package></code> fails on Mac OS</p>
<p dir="auto">where <code class="notranslate"><tmpdir></code> is the result of <code class="notranslate">fs.mkdtempSync(path.join(os.tmpdir(), "repro")</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! Cannot read property 'spec' of undefined
55 verbose stack TypeError: Cannot read property 'spec' of undefined
55 verbose stack at Arborist.[saveIdealTree] (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:959:62)
55 verbose stack at /Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:139:39
55 verbose stack at async Arborist.reify (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5)
55 verbose stack at async Install.install (/Users/nicholg/.npm/g/lib/node_modules/npm/lib/install.js:137:5)"><pre class="notranslate"><code class="notranslate">npm ERR! Cannot read property 'spec' of undefined
55 verbose stack TypeError: Cannot read property 'spec' of undefined
55 verbose stack at Arborist.[saveIdealTree] (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:959:62)
55 verbose stack at /Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:139:39
55 verbose stack at async Arborist.reify (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5)
55 verbose stack at async Install.install (/Users/nicholg/.npm/g/lib/node_modules/npm/lib/install.js:137:5)
</code></pre></div>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 verbose cli [
0 verbose cli '/usr/local/Cellar/node@14/14.17.0/bin/node',
0 verbose cli '/Users/nicholg/.npm/g/bin/npm',
0 verbose cli 'install',
0 verbose cli '--prefix',
0 verbose cli '/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76',
0 verbose cli 'leftpad-i18n'
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/nicholg/.npm/g/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76/.npmrc Completed in 1ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/nicholg/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 8ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:setTitle Completed in 3ms
21 timing npm:load:setupLog Completed in 1ms
22 timing npm:load:cleanupLog Completed in 2ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 16ms
26 timing config:load:flatten Completed in 2ms
27 timing arborist:ctor Completed in 1ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 18ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest leftpad-i18n@*
33 http fetch GET 304 https://registry.npmjs.org/leftpad-i18n 171ms (from cache)
34 silly placeDep ROOT [email protected] OK for: want: *
35 timing idealTree:#root Completed in 178ms
36 timing idealTree:node_modules/leftpad-i18n Completed in 0ms
37 timing idealTree:buildDeps Completed in 180ms
38 timing idealTree:fixDepFlags Completed in 0ms
39 timing idealTree Completed in 201ms
40 timing reify:loadTrees Completed in 202ms
41 timing reify:diffTrees Completed in 0ms
42 silly reify moves {}
43 timing reify:retireShallow Completed in 0ms
44 timing reify:createSparse Completed in 0ms
45 timing reify:loadBundles Completed in 0ms
46 silly audit bulk request { 'leftpad-i18n': [ '1.1.0' ] }
47 timing reify:unpack Completed in 0ms
48 timing reify:unretire Completed in 1ms
49 timing build:queue Completed in 0ms
50 timing build:deps Completed in 0ms
51 timing build Completed in 0ms
52 timing reify:build Completed in 0ms
53 timing reify:trash Completed in 0ms
54 timing command:install Completed in 219ms
55 verbose stack TypeError: Cannot read property 'spec' of undefined
55 verbose stack at Arborist.[saveIdealTree] (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:959:62)
55 verbose stack at /Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:139:39
55 verbose stack at async Arborist.reify (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5)
55 verbose stack at async Install.install (/Users/nicholg/.npm/g/lib/node_modules/npm/lib/install.js:137:5)
56 verbose cwd /Users/nicholg/q
57 verbose Darwin 20.4.0
58 verbose argv "/usr/local/Cellar/node@14/14.17.0/bin/node" "/Users/nicholg/.npm/g/bin/npm" "install" "--prefix" "/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76" "leftpad-i18n"
59 verbose node v14.17.0
60 verbose npm v7.13.0
61 error Cannot read property 'spec' of undefined
62 verbose exit 1"><pre class="notranslate"><code class="notranslate">0 verbose cli [
0 verbose cli '/usr/local/Cellar/node@14/14.17.0/bin/node',
0 verbose cli '/Users/nicholg/.npm/g/bin/npm',
0 verbose cli 'install',
0 verbose cli '--prefix',
0 verbose cli '/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76',
0 verbose cli 'leftpad-i18n'
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/nicholg/.npm/g/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76/.npmrc Completed in 1ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/Users/nicholg/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 8ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:setTitle Completed in 3ms
21 timing npm:load:setupLog Completed in 1ms
22 timing npm:load:cleanupLog Completed in 2ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 16ms
26 timing config:load:flatten Completed in 2ms
27 timing arborist:ctor Completed in 1ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 18ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest leftpad-i18n@*
33 http fetch GET 304 https://registry.npmjs.org/leftpad-i18n 171ms (from cache)
34 silly placeDep ROOT [email protected] OK for: want: *
35 timing idealTree:#root Completed in 178ms
36 timing idealTree:node_modules/leftpad-i18n Completed in 0ms
37 timing idealTree:buildDeps Completed in 180ms
38 timing idealTree:fixDepFlags Completed in 0ms
39 timing idealTree Completed in 201ms
40 timing reify:loadTrees Completed in 202ms
41 timing reify:diffTrees Completed in 0ms
42 silly reify moves {}
43 timing reify:retireShallow Completed in 0ms
44 timing reify:createSparse Completed in 0ms
45 timing reify:loadBundles Completed in 0ms
46 silly audit bulk request { 'leftpad-i18n': [ '1.1.0' ] }
47 timing reify:unpack Completed in 0ms
48 timing reify:unretire Completed in 1ms
49 timing build:queue Completed in 0ms
50 timing build:deps Completed in 0ms
51 timing build Completed in 0ms
52 timing reify:build Completed in 0ms
53 timing reify:trash Completed in 0ms
54 timing command:install Completed in 219ms
55 verbose stack TypeError: Cannot read property 'spec' of undefined
55 verbose stack at Arborist.[saveIdealTree] (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:959:62)
55 verbose stack at /Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:139:39
55 verbose stack at async Arborist.reify (/Users/nicholg/.npm/g/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:135:5)
55 verbose stack at async Install.install (/Users/nicholg/.npm/g/lib/node_modules/npm/lib/install.js:137:5)
56 verbose cwd /Users/nicholg/q
57 verbose Darwin 20.4.0
58 verbose argv "/usr/local/Cellar/node@14/14.17.0/bin/node" "/Users/nicholg/.npm/g/bin/npm" "install" "--prefix" "/var/folders/pt/zgtgnf1n5sl7_vw3n7dqvm5w0000gn/T/reproXMRg76" "leftpad-i18n"
59 verbose node v14.17.0
60 verbose npm v7.13.0
61 error Cannot read property 'spec' of undefined
62 verbose exit 1
</code></pre></div>
</details>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Installation succeeds as it does if I downgrade to npm 6.x.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">Using environment described below, create a repro.js file with the following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { spawnSync } = require("child_process");
const { mkdtempSync } = require("fs");
const { tmpdir } = require("os");
const { join } = require("path");
const dir = mkdtempSync(join(tmpdir(), "repro"));
console.log(`> npm install --prefix ${dir} "leftpad-i18n"\n`);
spawnSync("npm", ["install", "--prefix", dir, "leftpad-i18n" ], {
stdio: "inherit",
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> spawnSync <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">"child_process"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> mkdtempSync <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">"fs"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> tmpdir <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">"os"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> join <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">"path"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">dir</span> <span class="pl-c1">=</span> <span class="pl-en">mkdtempSync</span><span class="pl-kos">(</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-en">tmpdir</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">"repro"</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-s">`> npm install --prefix <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">dir</span><span class="pl-kos">}</span></span> "leftpad-i18n"\n`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">spawnSync</span><span class="pl-kos">(</span><span class="pl-s">"npm"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"install"</span><span class="pl-kos">,</span> <span class="pl-s">"--prefix"</span><span class="pl-kos">,</span> <span class="pl-s1">dir</span><span class="pl-kos">,</span> <span class="pl-s">"leftpad-i18n"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">stdio</span>: <span class="pl-s">"inherit"</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">Then run it:</p>
<blockquote>
<p dir="auto">node repro.js</p>
</blockquote>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: mac OS Big Sur 11.3.1</li>
<li>Node: 14.17.0</li>
<li>npm: 7.13.0</li>
</ul> | <p dir="auto">Hello</p>
<p dir="auto">I tried to install ffmpeg by :</p>
<blockquote>
<p dir="auto">sudo npm install --save @ffmpeg-installer/ffmpeg<br>
return npm ERR! "cb() never called"</p>
</blockquote>
<blockquote>
<p dir="auto">npm -v<br>
6.13.7<br>
node -v<br>
v13.7.0</p>
</blockquote>
<p dir="auto">OS : Linux Mint 19.3 Tricia base ubuntu bionic</p>
<p dir="auto">I can install express without a problem.<br>
Ask : Is it a chmod problem? A graphic card problem or an npm problem?</p> | 0 |
<h3 dir="auto">Description</h3>
<p dir="auto">I have following form types: <code class="notranslate">ContactType.php</code> and <code class="notranslate">SendContactType.php</code>.<br>
I have following entities with constraints: <code class="notranslate">Contact.php</code> and <code class="notranslate">SendContact.php</code>.</p>
<p dir="auto">They code for theose files can be seen at: <a href="https://gist.github.com/1199860">https://gist.github.com/1199860</a>.</p>
<p dir="auto">The problem is with the <code class="notranslate">something</code> field of <code class="notranslate">ContactType</code>.<br>
When that field is something simple (type <code class="notranslate">text</code> for example) everything works.<br>
If the value is shorter that 3 the error gets added to field's error list.</p>
<p dir="auto">But when that field is of type <code class="notranslate">repeated</code> something gets broken. When assertion<br>
fails the error gets added to the outermost form instead of "something" field.</p>
<p dir="auto">Basically with this code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $form = $this->get('form.factory')->create(new SendContactType());
$form->bindRequest($request);
if (!$form->isValid()) {
var_dump($form->getErrors());
}"><pre class="notranslate"><code class="notranslate"> $form = $this->get('form.factory')->create(new SendContactType());
$form->bindRequest($request);
if (!$form->isValid()) {
var_dump($form->getErrors());
}
</code></pre></div>
<p dir="auto">A non-empty array is unexpectedly dumped with the error/message that shouldn't be there but down the tree.</p>
<h3 dir="auto">My analysis</h3>
<p dir="auto">Basically what happens in this case is that the <code class="notranslate">propertyPath</code> put together during validation graph walking doesn't match<br>
any of the patterns later generated in <code class="notranslate">DegelatingValidator::buildFormPathMapping()</code> etc. This happens<br>
when a form embeds another form containing a type <code class="notranslate">repeated</code> field.</p>
<p dir="auto">The propertyPath generated for <code class="notranslate">something</code> field is <code class="notranslate">string(32) "children[contact].data.something"</code>.<br>
The patterns DelegatingValidator generates and tries to match it against:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="string(25) "/^children\.data\.(?!\w)/"
string(30) "/^children\.data\.agree(?!\w)/"
string(36) "/^children\[contact\]\.data\.(?!\w)/"
string(49) "/^children\[contact\]\[something\]\.data\.(?!\w)/"
string(54) "/^children\[contact\]\[something\]\.data\.first(?!\w)/"
string(55) "/^children\[contact\]\[something\]\.data\.second(?!\w)/"
string(41) "/^children\[contact\]\[something\](?!\w)/"
string(43) "/^children\[contact\]\.data\.message(?!\w)/"
string(28) "/^children\[contact\](?!\w)/""><pre class="notranslate"><code class="notranslate">string(25) "/^children\.data\.(?!\w)/"
string(30) "/^children\.data\.agree(?!\w)/"
string(36) "/^children\[contact\]\.data\.(?!\w)/"
string(49) "/^children\[contact\]\[something\]\.data\.(?!\w)/"
string(54) "/^children\[contact\]\[something\]\.data\.first(?!\w)/"
string(55) "/^children\[contact\]\[something\]\.data\.second(?!\w)/"
string(41) "/^children\[contact\]\[something\](?!\w)/"
string(43) "/^children\[contact\]\.data\.message(?!\w)/"
string(28) "/^children\[contact\](?!\w)/"
</code></pre></div>
<p dir="auto">The last one in this list is first that matches and that's why the error gets added to form, but it really should match earlier.</p> | <p dir="auto"><strong>Description</strong><br>
New feature request has start with the blog post : <a href="https://symfony.com/blog/new-in-symfony-4-1-form-field-help" rel="nofollow">Form field help</a>. It's a great post that explain how to extend a form to add a custom option <code class="notranslate">help</code> to show help message. I asked myself how to add this help message in an item choice of choiceType form. I wanted to make that like a <code class="notranslate">choice_attr</code> and callable function. But I cant. I fact ChoiceType <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php#L371">create</a> his children fields (Radio or Checkbox) with <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/ChoiceList/View/ChoiceView.php">ChoiceView</a> class and we can't add your custom options.</p>
<p dir="auto">In resume we can't extend choice_options like this:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $builder
->add('dilem', ChoiceType::class, [
'choices' => [
'foo' => false,
'bar' => true,
],
'choice_options' => function ($value, $key, $index) {
if ($value) {
return ['help' => 'My Help message'];
}
},
'expanded' => true,
'multiple' => false,
]) ;"><pre class="notranslate"> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>
-><span class="pl-en">add</span>(<span class="pl-s">'dilem'</span>, <span class="pl-v">ChoiceType</span>::class, [
<span class="pl-s">'choices'</span> => [
<span class="pl-s">'foo'</span> => <span class="pl-c1">false</span>,
<span class="pl-s">'bar'</span> => <span class="pl-c1">true</span>,
],
<span class="pl-s">'choice_options'</span> => <span class="pl-k">function</span> (<span class="pl-s1"><span class="pl-c1">$</span>value</span>, <span class="pl-s1"><span class="pl-c1">$</span>key</span>, <span class="pl-s1"><span class="pl-c1">$</span>index</span>) {
<span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span>value</span>) {
<span class="pl-k">return</span> [<span class="pl-s">'help'</span> => <span class="pl-s">'My Help message'</span>];
}
},
<span class="pl-s">'expanded'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'multiple'</span> => <span class="pl-c1">false</span>,
]) ;</pre></div>
<p dir="auto">I want to modify the code and create the pull request but can someone can accompany me to do it properly ?</p> | 0 |
<p dir="auto"><Button disableRipple /> throws an exception when the KeyDown event triggered.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Pressing the spacebar over keyboardFocused button should`t lead to exception.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a href="https://github.com/mui-org/material-ui/blob/c17d66e187cbb9acdd86c0c3735c84735085e836/src/ButtonBase/ButtonBase.js#L113">https://github.com/mui-org/material-ui/blob/c17d66e187cbb9acdd86c0c3735c84735085e836/src/ButtonBase/ButtonBase.js#L113</a><br>
This line does not protect from that the this.ripple can be null.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/z6jwnmzq1p" rel="nofollow">https://codesandbox.io/s/z6jwnmzq1p</a></p>
<ol dir="auto">
<li>Focus the button by keyboard</li>
<li>Press the spacebar</li>
</ol> | <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">As I use material components, they mostly come with the Robot font and I've found that Subheader is the first one I encountered that doesn't have the font declared. I was expecting it to be styled since other components are.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The Subheader is not styled with a font family.</p> | 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">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.4.7</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="celery -A backend.celery_app:app report
software -> celery:4.4.7 (cliffs) kombu:4.6.11 py:3.8.5
billiard:3.6.3.0 redis:3.5.3
platform -> system:Linux arch:64bit
kernel version:4.15.0-112-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://redis:6379/2
broker_url: 'redis://redis:6379/1'
result_backend: 'redis://redis:6379/2'
accpet_content: ['application/json']
task_serializer: 'json'
result_serializer: 'json'
task_acks_late: True
task_default_queue: 'default'
worker_send_task_events: True
worker_prefetch_multiplier: 1
task_queues:
(<unbound Queue default -> <unbound Exchange default(direct)> -> default>,
<unbound Queue other -> <unbound Exchange other(direct)> -> other>)
task_routes: {
'core.tasks.debug_task': { 'exchange': 'default',
'queue': 'default',
'routing_key': '********'},
'core.tasks.debug_task_other': { 'exchange': 'other',
'queue': 'other',
'routing_key': '********'}}
task_default_exchange_type: 'direct'"><pre class="notranslate"><code class="notranslate">celery -A backend.celery_app:app report
software -> celery:4.4.7 (cliffs) kombu:4.6.11 py:3.8.5
billiard:3.6.3.0 redis:3.5.3
platform -> system:Linux arch:64bit
kernel version:4.15.0-112-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://redis:6379/2
broker_url: 'redis://redis:6379/1'
result_backend: 'redis://redis:6379/2'
accpet_content: ['application/json']
task_serializer: 'json'
result_serializer: 'json'
task_acks_late: True
task_default_queue: 'default'
worker_send_task_events: True
worker_prefetch_multiplier: 1
task_queues:
(<unbound Queue default -> <unbound Exchange default(direct)> -> default>,
<unbound Queue other -> <unbound Exchange other(direct)> -> other>)
task_routes: {
'core.tasks.debug_task': { 'exchange': 'default',
'queue': 'default',
'routing_key': '********'},
'core.tasks.debug_task_other': { 'exchange': 'other',
'queue': 'other',
'routing_key': '********'}}
task_default_exchange_type: 'direct'
</code></pre></div>
<p dir="auto"></p>
</details>
<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.1
appdirs==1.4.4
argh==0.26.2
argon2-cffi==20.1.0
asgiref==3.2.10
atomicwrites==1.4.0
attrs==20.1.0
backcall==0.2.0
billiard==3.6.3.0
black==19.10b0
bleach==3.1.5
celery==4.4.7
cffi==1.14.2
click==7.1.2
decorator==4.4.2
defusedxml==0.6.0
Django==3.1
django-debug-toolbar==2.2
django-extensions==3.0.5
entrypoints==0.3
factory-boy==2.11.1
Faker==4.1.2
gunicorn==20.0.4
ipykernel==5.3.4
ipython==7.17.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.17.2
Jinja2==2.11.2
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.6
jupyter-console==6.1.0
jupyter-core==4.6.3
kombu==4.6.11
MarkupSafe==1.1.1
mistune==0.8.4
more-itertools==8.4.0
nbconvert==5.6.1
nbformat==5.0.7
notebook==6.1.3
packaging==20.4
pandocfilters==1.4.2
parso==0.7.1
pathspec==0.8.0
pathtools==0.1.2
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
prometheus-client==0.8.0
prompt-toolkit==3.0.6
psycopg2-binary==2.8.5
ptyprocess==0.6.0
py==1.9.0
pycparser==2.20
Pygments==2.6.1
pyparsing==2.4.7
pyrsistent==0.16.0
pytest==4.4.1
pytest-django==3.4.8
python-dateutil==2.8.1
pytz==2020.1
PyYAML==5.3.1
pyzmq==19.0.2
qtconsole==4.7.6
QtPy==1.9.0
redis==3.5.3
regex==2020.7.14
Send2Trash==1.5.0
six==1.15.0
sqlparse==0.3.1
terminado==0.8.3
testpath==0.4.4
text-unidecode==1.3
toml==0.10.1
tornado==6.0.4
traitlets==4.3.3
typed-ast==1.4.1
vine==1.3.0
watchdog==0.10.3
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1"><pre class="notranslate"><code class="notranslate">amqp==2.6.1
appdirs==1.4.4
argh==0.26.2
argon2-cffi==20.1.0
asgiref==3.2.10
atomicwrites==1.4.0
attrs==20.1.0
backcall==0.2.0
billiard==3.6.3.0
black==19.10b0
bleach==3.1.5
celery==4.4.7
cffi==1.14.2
click==7.1.2
decorator==4.4.2
defusedxml==0.6.0
Django==3.1
django-debug-toolbar==2.2
django-extensions==3.0.5
entrypoints==0.3
factory-boy==2.11.1
Faker==4.1.2
gunicorn==20.0.4
ipykernel==5.3.4
ipython==7.17.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.17.2
Jinja2==2.11.2
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.6
jupyter-console==6.1.0
jupyter-core==4.6.3
kombu==4.6.11
MarkupSafe==1.1.1
mistune==0.8.4
more-itertools==8.4.0
nbconvert==5.6.1
nbformat==5.0.7
notebook==6.1.3
packaging==20.4
pandocfilters==1.4.2
parso==0.7.1
pathspec==0.8.0
pathtools==0.1.2
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
prometheus-client==0.8.0
prompt-toolkit==3.0.6
psycopg2-binary==2.8.5
ptyprocess==0.6.0
py==1.9.0
pycparser==2.20
Pygments==2.6.1
pyparsing==2.4.7
pyrsistent==0.16.0
pytest==4.4.1
pytest-django==3.4.8
python-dateutil==2.8.1
pytz==2020.1
PyYAML==5.3.1
pyzmq==19.0.2
qtconsole==4.7.6
QtPy==1.9.0
redis==3.5.3
regex==2020.7.14
Send2Trash==1.5.0
six==1.15.0
sqlparse==0.3.1
terminado==0.8.3
testpath==0.4.4
text-unidecode==1.3
toml==0.10.1
tornado==6.0.4
traitlets==4.3.3
typed-ast==1.4.1
vine==1.3.0
watchdog==0.10.3
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
</code></pre></div>
<p dir="auto"></p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<p dir="auto">Here is a fully reproducible example: <a href="https://gitlab.com/verbose-equals-true/digital-ocean-docker-swarm" rel="nofollow">https://gitlab.com/verbose-equals-true/digital-ocean-docker-swarm</a> that can be setup with docker-compose. Run <code class="notranslate">docker-compose up</code> to start it.</p>
<p dir="auto">I am using celery with Django and redis as the broker. I'm trying to setup two queues: <code class="notranslate">default</code> and <code class="notranslate">other</code>. My tasks are working, but the settings I have configured are not working have I am expecting them to work.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">I'm having two related issues:</p>
<ol dir="auto">
<li><strong>celery tasks are not respecting the <code class="notranslate">task_routes</code> setting (see below).</strong></li>
<li><strong>all of the celery tasks (no matter how they are defined) are registered to each of the two queues when they are started</strong></li>
</ol>
<p dir="auto">Here are the relevant parts of my code:</p>
<ol dir="auto">
<li>the celery app definition file</li>
<li>task definitions/declarations</li>
<li>commands to start workers</li>
</ol>
<p dir="auto">celery app definition:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
from django.conf import settings
from kombu import Exchange, Queue
CELERY_QUEUE_DEFAULT = 'default'
CELERY_QUEUE_OTHER = 'other'
app = Celery('backend')
app.conf["broker_url"] = f"redis://{settings.REDIS_SERVICE_HOST}:6379/1"
app.conf["result_backend"] = f"redis://{settings.REDIS_SERVICE_HOST}:6379/2"
app.conf["accpet_content"] = ['application/json']
app.conf["task_serializer"] = 'json'
app.conf["result_serializer"] = 'json'
app.conf["task_acks_late"] = True
app.conf["task_default_queue"] = CELERY_QUEUE_DEFAULT
app.conf["worker_send_task_events"] = True
app.conf["worker_prefetch_multiplier"] = 1
app.conf["task_queues"] = (
Queue(
CELERY_QUEUE_DEFAULT,
Exchange(CELERY_QUEUE_DEFAULT),
routing_key=CELERY_QUEUE_DEFAULT,
),
Queue(
CELERY_QUEUE_OTHER,
Exchange(CELERY_QUEUE_OTHER),
routing_key=CELERY_QUEUE_OTHER,
),
)
app.conf["task_routes"] = {
'backend.core.tasks.debug_task': {
'queue': 'default',
'routing_key': 'default',
'exchange': 'default',
},
'backend.core.tasks.debug_task_other': {
'queue': 'other',
'routing_key': 'other',
'exchange': 'other',
},
}
app.conf["task_default_exchange_type"] = 'direct'
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">django</span>.<span class="pl-s1">conf</span> <span class="pl-k">import</span> <span class="pl-s1">settings</span>
<span class="pl-k">from</span> <span class="pl-s1">kombu</span> <span class="pl-k">import</span> <span class="pl-v">Exchange</span>, <span class="pl-v">Queue</span>
<span class="pl-v">CELERY_QUEUE_DEFAULT</span> <span class="pl-c1">=</span> <span class="pl-s">'default'</span>
<span class="pl-v">CELERY_QUEUE_OTHER</span> <span class="pl-c1">=</span> <span class="pl-s">'other'</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'backend'</span>)
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"broker_url"</span>] <span class="pl-c1">=</span> <span class="pl-s">f"redis://<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">settings</span>.<span class="pl-v">REDIS_SERVICE_HOST</span><span class="pl-kos">}</span></span>:6379/1"</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"result_backend"</span>] <span class="pl-c1">=</span> <span class="pl-s">f"redis://<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">settings</span>.<span class="pl-v">REDIS_SERVICE_HOST</span><span class="pl-kos">}</span></span>:6379/2"</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"accpet_content"</span>] <span class="pl-c1">=</span> [<span class="pl-s">'application/json'</span>]
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"task_serializer"</span>] <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"result_serializer"</span>] <span class="pl-c1">=</span> <span class="pl-s">'json'</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"task_acks_late"</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"task_default_queue"</span>] <span class="pl-c1">=</span> <span class="pl-v">CELERY_QUEUE_DEFAULT</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"worker_send_task_events"</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"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-s">"task_queues"</span>] <span class="pl-c1">=</span> (
<span class="pl-v">Queue</span>(
<span class="pl-v">CELERY_QUEUE_DEFAULT</span>,
<span class="pl-v">Exchange</span>(<span class="pl-v">CELERY_QUEUE_DEFAULT</span>),
<span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-v">CELERY_QUEUE_DEFAULT</span>,
),
<span class="pl-v">Queue</span>(
<span class="pl-v">CELERY_QUEUE_OTHER</span>,
<span class="pl-v">Exchange</span>(<span class="pl-v">CELERY_QUEUE_OTHER</span>),
<span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-v">CELERY_QUEUE_OTHER</span>,
),
)
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"task_routes"</span>] <span class="pl-c1">=</span> {
<span class="pl-s">'backend.core.tasks.debug_task'</span>: {
<span class="pl-s">'queue'</span>: <span class="pl-s">'default'</span>,
<span class="pl-s">'routing_key'</span>: <span class="pl-s">'default'</span>,
<span class="pl-s">'exchange'</span>: <span class="pl-s">'default'</span>,
},
<span class="pl-s">'backend.core.tasks.debug_task_other'</span>: {
<span class="pl-s">'queue'</span>: <span class="pl-s">'other'</span>,
<span class="pl-s">'routing_key'</span>: <span class="pl-s">'other'</span>,
<span class="pl-s">'exchange'</span>: <span class="pl-s">'other'</span>,
},
}
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>[<span class="pl-s">"task_default_exchange_type"</span>] <span class="pl-c1">=</span> <span class="pl-s">'direct'</span>
<span class="pl-s1">app</span>.<span class="pl-en">autodiscover_tasks</span>(<span class="pl-k">lambda</span>: <span class="pl-s1">settings</span>.<span class="pl-v">INSTALLED_APPS</span>)</pre></div>
<p dir="auto">Task definitions (defined in a file called <code class="notranslate">tasks.py</code> in an app called <code class="notranslate">core</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time
import celery
# from backend import celery_app as app
# from celery import shared_task
from celery.task import task
from django.conf import settings
# @celery.task <-- I have seen these decorators in other example
# @app.task <-- neither of these result in the tasks being sent to the correct queue
# @shared_task
@task(queue="default", exchange="default")
def debug_task():
time.sleep(10)
return "Task is done."
@task(queue="other", exchange="other")
def debug_task_other():
time.sleep(10)
return "Task is done for other queue.""><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span>
<span class="pl-k">import</span> <span class="pl-s1">celery</span>
<span class="pl-c"># from backend import celery_app as app</span>
<span class="pl-c"># from celery import shared_task</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">task</span> <span class="pl-k">import</span> <span class="pl-s1">task</span>
<span class="pl-k">from</span> <span class="pl-s1">django</span>.<span class="pl-s1">conf</span> <span class="pl-k">import</span> <span class="pl-s1">settings</span>
<span class="pl-c"># @celery.task <-- I have seen these decorators in other example</span>
<span class="pl-c"># @app.task <-- neither of these result in the tasks being sent to the correct queue</span>
<span class="pl-c"># @shared_task</span>
<span class="pl-en">@<span class="pl-en">task</span>(<span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s">"default"</span>, <span class="pl-s1">exchange</span><span class="pl-c1">=</span><span class="pl-s">"default"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">debug_task</span>():
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>)
<span class="pl-k">return</span> <span class="pl-s">"Task is done."</span>
<span class="pl-en">@<span class="pl-en">task</span>(<span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s">"other"</span>, <span class="pl-s1">exchange</span><span class="pl-c1">=</span><span class="pl-s">"other"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">debug_task_other</span>():
<span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">10</span>)
<span class="pl-k">return</span> <span class="pl-s">"Task is done for other queue."</span></pre></div>
<p dir="auto">Here's how I'm starting my workers in <code class="notranslate">docker-compose</code> locally:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" celery:
<<: *backend
container_name: celery
command:
- "watchmedo"
- "auto-restart"
- "--directory=./"
- "--pattern=*.py"
- "--recursive"
- "--"
- "celery"
- "worker"
- "--app=backend.celery_app:app"
- "-Q"
- "default"
- "--concurrency=1"
- "--loglevel=INFO"
ports: []
celery_other:
<<: *backend
container_name: celery_other
command:
- "watchmedo"
- "auto-restart"
- "--directory=./"
- "--pattern=*.py"
- "--recursive"
- "--"
- "celery"
- "worker"
- "--app=backend.celery_app:app"
- "-Q"
- "other"
- "--concurrency=1"
- "--loglevel=INFO"
ports: []"><pre class="notranslate"> <span class="pl-ent">celery</span>:
<span class="pl-ent"><<</span>: <span class="pl-s">*backend</span>
<span class="pl-ent">container_name</span>: <span class="pl-s">celery</span>
<span class="pl-ent">command</span>:
- <span class="pl-s"><span class="pl-pds">"</span>watchmedo<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>auto-restart<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--directory=./<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--pattern=*.py<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--recursive<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>celery<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>worker<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--app=backend.celery_app:app<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>-Q<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>default<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--concurrency=1<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--loglevel=INFO<span class="pl-pds">"</span></span>
<span class="pl-ent">ports</span>: <span class="pl-s">[]</span>
<span class="pl-ent">celery_other</span>:
<span class="pl-ent"><<</span>: <span class="pl-s">*backend</span>
<span class="pl-ent">container_name</span>: <span class="pl-s">celery_other</span>
<span class="pl-ent">command</span>:
- <span class="pl-s"><span class="pl-pds">"</span>watchmedo<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>auto-restart<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--directory=./<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--pattern=*.py<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--recursive<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>celery<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>worker<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--app=backend.celery_app:app<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>-Q<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>other<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--concurrency=1<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>--loglevel=INFO<span class="pl-pds">"</span></span>
<span class="pl-ent">ports</span>: <span class="pl-s">[]</span></pre></div>
<p dir="auto">Here are the logs from <code class="notranslate">docker-compose</code> that show that the two tasks are both registered to each worker:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery |
celery | -------------- celery@c8f0ed3f97df v4.4.7 (cliffs)
celery | --- ***** -----
celery | -- ******* ---- Linux-4.15.0-112-generic-x86_64-with-glibc2.2.5 2020-08-21 20:35:47
celery | - *** --- * ---
celery | - ** ---------- [config]
celery | - ** ---------- .> app: backend:0x7fb327c2e6a0
celery | - ** ---------- .> transport: redis://redis:6379/1
celery | - ** ---------- .> results: redis://redis:6379/2
celery | - *** --- * --- .> concurrency: 1 (prefork)
celery | -- ******* ---- .> task events: ON
celery | --- ***** -----
celery | -------------- [queues]
celery | .> default exchange=default(direct) key=default
celery |
celery |
celery | [tasks]
celery | . core.tasks.debug_task
celery | . core.tasks.debug_task_other
celery |
celery_other |
celery_other | -------------- celery@3dd99b1ed32e v4.4.7 (cliffs)
celery_other | --- ***** -----
celery_other | -- ******* ---- Linux-4.15.0-112-generic-x86_64-with-glibc2.2.5 2020-08-21 20:35:47
celery_other | - *** --- * ---
celery_other | - ** ---------- [config]
celery_other | - ** ---------- .> app: backend:0x7f54fa89e6a0
celery_other | - ** ---------- .> transport: redis://redis:6379/1
celery_other | - ** ---------- .> results: redis://redis:6379/2
celery_other | - *** --- * --- .> concurrency: 1 (prefork)
celery_other | -- ******* ---- .> task events: ON
celery_other | --- ***** -----
celery_other | -------------- [queues]
celery_other | .> other exchange=other(direct) key=other
celery_other |
celery_other |
celery_other | [tasks]
celery_other | . core.tasks.debug_task
celery_other | . core.tasks.debug_task_other"><pre class="notranslate"><code class="notranslate">celery |
celery | -------------- celery@c8f0ed3f97df v4.4.7 (cliffs)
celery | --- ***** -----
celery | -- ******* ---- Linux-4.15.0-112-generic-x86_64-with-glibc2.2.5 2020-08-21 20:35:47
celery | - *** --- * ---
celery | - ** ---------- [config]
celery | - ** ---------- .> app: backend:0x7fb327c2e6a0
celery | - ** ---------- .> transport: redis://redis:6379/1
celery | - ** ---------- .> results: redis://redis:6379/2
celery | - *** --- * --- .> concurrency: 1 (prefork)
celery | -- ******* ---- .> task events: ON
celery | --- ***** -----
celery | -------------- [queues]
celery | .> default exchange=default(direct) key=default
celery |
celery |
celery | [tasks]
celery | . core.tasks.debug_task
celery | . core.tasks.debug_task_other
celery |
celery_other |
celery_other | -------------- celery@3dd99b1ed32e v4.4.7 (cliffs)
celery_other | --- ***** -----
celery_other | -- ******* ---- Linux-4.15.0-112-generic-x86_64-with-glibc2.2.5 2020-08-21 20:35:47
celery_other | - *** --- * ---
celery_other | - ** ---------- [config]
celery_other | - ** ---------- .> app: backend:0x7f54fa89e6a0
celery_other | - ** ---------- .> transport: redis://redis:6379/1
celery_other | - ** ---------- .> results: redis://redis:6379/2
celery_other | - *** --- * --- .> concurrency: 1 (prefork)
celery_other | -- ******* ---- .> task events: ON
celery_other | --- ***** -----
celery_other | -------------- [queues]
celery_other | .> other exchange=other(direct) key=other
celery_other |
celery_other |
celery_other | [tasks]
celery_other | . core.tasks.debug_task
celery_other | . core.tasks.debug_task_other
</code></pre></div>
<p dir="auto">I was thinking that defining <code class="notranslate">task_routes</code> would mean that I don't have to specify the tasks's queue in the task decorator. If I don't specify the queue, the tasks are all picked up by the default worker.</p>
<p dir="auto">If it helps, here is my Django directory structure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tree -L 3 backend
backend
├── backend
│ ├── asgi.py
│ ├── celery_app.py <- this is where I define my celery app
│ ├── __init__.py
│ ├── settings
│ │ ├── base.py
│ │ ├── development.py
│ │ ├── __init__.py
│ │ └── production.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── core
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── migrations
│ │ └── __init__.py
│ ├── models.py
│ ├── tasks.py <- this is where I define the tasks shown above
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── docker
│ ├── Dockerfile.dev
│ └── Dockerfile.prod
├── manage.py
└── requirements
├── base.txt
├── dev.txt
└── test.txt"><pre class="notranslate"><code class="notranslate">tree -L 3 backend
backend
├── backend
│ ├── asgi.py
│ ├── celery_app.py <- this is where I define my celery app
│ ├── __init__.py
│ ├── settings
│ │ ├── base.py
│ │ ├── development.py
│ │ ├── __init__.py
│ │ └── production.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── core
│ ├── admin.py
│ ├── apps.py
│ ├── __init__.py
│ ├── migrations
│ │ └── __init__.py
│ ├── models.py
│ ├── tasks.py <- this is where I define the tasks shown above
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── docker
│ ├── Dockerfile.dev
│ └── Dockerfile.prod
├── manage.py
└── requirements
├── base.txt
├── dev.txt
└── test.txt
</code></pre></div>
<p dir="auto">I have tried to follow the <code class="notranslate">Routing Tasks</code> page from the celery documentation to get everything setup correctly: <a href="https://docs.celeryproject.org/en/stable/userguide/routing.html" rel="nofollow">https://docs.celeryproject.org/en/stable/userguide/routing.html</a></p> | <p dir="auto">it's duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="324811646" data-permission-text="Title is private" data-url="https://github.com/celery/kombu/issues/870" data-hovercard-type="issue" data-hovercard-url="/celery/kombu/issues/870/hovercard" href="https://github.com/celery/kombu/issues/870">celery/kombu#870</a>, but in order to fix 4.1 I suggest creating a 4.1.1 release with kombu dependency set to <code class="notranslate">>=4,1,<4.2</code></p> | 0 |
<p dir="auto">Hi,<br>
I am running elasticsearch 0.90.5 on windows 2008 R2. In service.bat I updated ES_HEAP_SIZE as 2g I checked script with Echo ON and it showed my 2g .<br>
However when I run the service and check heap committed it comes as 111 mb .</p>
<p dir="auto">I check running the es with elasticsearch.bat with ES_HEAP_SIZE=2g and it shows heap committed as 1.9 g.<br>
By the way I am using server jre 1.7 u40 .<br>
However I earlier tried client jre 1.7 u 25 but the result is same .</p>
<p dir="auto">Thanks</p> | <p dir="auto">Currently the memory options are passed on as java options but these are ignored by the jvm.dll. They need to be extracted and passed through different arguments so they can be used before starting the java process.<br>
Unfortunately this also means doing some conversion (from GB to MB and MB to KB).</p> | 1 |
<p dir="auto">Pasting or opening a file with the following code, turns the editor unresponsive.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script type="text/javascript">
_characterList = {"R01-S01-T01":[{"id":"Chloe Flower","name":"Chloe Flower","imageUrl":"/media/5801/SPKS2_PNGs_FRUIT__VEG_Chloe-Flower.png","bio":"A bit of a hippy, I'm all about 'Flower Power' but I'm loyal to the end! I never leaf my friends behind!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Rockin' Broc","shopkinsHangout":"Fruit & Veg","favouriteHobby":"Leafing through the newspaper"},{"id":"Corny Cob","name":"Corny Cob","imageUrl":"/media/5802/SPKS2_PNGs_FRUIT__VEG_Corny-Cob.png","bio":"Famous for his corny jokes, he can’t help pop up to say hello when things get hot! After a big day of shopping, he loves to just flake out! And what sort of pet does Poppy Corn own? A corn dog of course! Oh how Corny can one Shopkin get!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Poppy Corn","shopkinsHangout":"His Husky voice is always heard in the Fruit and Vegetable Department","favouriteHobby":"Doing Puzzles and Maizes"},{"id":"Dippy Avocado","name":"Dippy Avocado","imageUrl":"/media/5824/SPKS2_PNGs_FRUIT__VEG_Dippy-Avocado.png","bio":"A true greenie who likes to spread himself around. I sometimes like to spice things up!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Silly Chilli & Brenda Blenda","shopkinsHangout":"Fruit & Veg","favouriteHobby":"Taking a dip on a hot day"},{"id":"Juicy Orange","name":"Juicy Orange","imageUrl":"/media/5803/SPKS2_PNGs_FRUIT__VEG_Juicy-Orange.png","bio":"She loves a juicy bargain and is always putting the squeeze of the shop owner for the best price! Her favorite color? – Orange! Her favorite flavor? – Orange! Her favorite greeting? “Orange you glad to see me?” Now that’s an a-peeling joke!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Sour Lemon","shopkinsHangout":"She’s squeezed into the Fruit and Veg Section.","favouriteHobby":"Keeping Juicy Secrets"},{"id":"Silly Chilli","name":"Silly Chilli","imageUrl":"/media/5825/SPKS2_PNGs_FRUIT__VEG_Silly-Chilli.png","bio":"Some friends say I come across as being cold, but really I'm just a little chilli!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Dippy Avocado","shopkinsHangout":"Fruit & Veg","favouriteHobby":"Eating very HOT dogs"}],"R01-S01-T02":[{"id":"Brenda Blenda","name":"Brenda Blenda","imageUrl":"/media/5804/SPKS2_PNGs_HOMEWARES_Brenda-Blender.png","bio":"A real smooth operator who sometimes like to stir up trouble. I'm a wiz at blending in with a crowd!","theName":"Homewares","theTeam":"","shopkinsBFF":"Dippy Avocado","shopkinsHangout":"Homewares","favouriteHobby":"Mixing with her friends"},{"id":"Lana Lamp","name":"Lana Lamp","imageUrl":"/media/5805/SPKS2_PNGs_HOMEWARES_Lana-Lamp.png","bio":"A brilliant personality who loves light hearted jokes. I love coming up with bright ideas!","theName":"Homewares","theTeam":"","shopkinsBFF":"Lisa Litter","shopkinsHangout":"Homewares","favouriteHobby":"Reading in bed"},{"id":"Sizzles","name":"Sizzles","imageUrl":"/media/5826/SPKS2_PNGs_HOMEWARES_Sizzles.png","bio":"Warm hearted rather than hot tempered and a hard worker. I love to steam through my jobs each day!","theName":"Homewares","theTeam":"","shopkinsBFF":"Wendy Washer","shopkinsHangout":"Homewares","favouriteHobby":"Riding on steam trains"},{"id":"Toasty Pops","name":"Toasty Pops","imageUrl":"/media/5827/SPKS2_PNGs_HOMEWARES_Toasty-Pop.png","bio":"Toasty Pop is always popping up when it’s least expected but she always has a warm welcome for everyone! The burning question is what’s here favorite type of bread? I’ve heard its raisin loaf! Spread the word!","theName":"Homewares","theTeam":"","shopkinsBFF":"Butter Cup","shopkinsHangout":"She’s always popping up in the Homewares Department ","favouriteHobby":"Throwing parties and giving toasts! "},{"id":"Zappy Microwave","name":"Zappy Microwave","imageUrl":"/media/5828/SPKS2_PNGs_HOMEWARES_Zappy-Microwave.png","bio":"A real fast thinker who wants everything done YESTERDAY! I can be a little inpatient so don't push my buttons!","theName":"Homewares","theTeam":"","shopkinsBFF":"Saucy Pan","shopkinsHangout":"Homewares","favouriteHobby":"Speed Reading"}],"R01-S01-T03":[{"id":"Carrie Carrot Cake","name":"Carrie Carrot Cake","imageUrl":"/media/5795/SPKS2_PNGs_BAKERY_Carrie-Carrot-Cake.png","bio":"Sweet but a little nutty! People say I have a heart of gold… A 24 carrot heart of gold!","theName":"Bakery","theTeam":"","shopkinsBFF":"Pecanna Pie","shopkinsHangout":"Bakery","favouriteHobby":"Horse Riding"},{"id":"Fifi Fruit Tart","name":"Fifi Fruit Tart","imageUrl":"/media/5837/SPKS2_PNGs_BAKERY_Fifi-Fruit-Tart.png","bio":"","theName":"Bakery","theTeam":"","shopkinsBFF":"","shopkinsHangout":"","favouriteHobby":""},{"id":"Mary Meringue","name":"Mary Meringue","imageUrl":"/media/5796/SPKS2_PNGs_BAKERY_Mary-Meringue.png","bio":"SWEEEET and fluffy! Plus I always have my head in the clouds….. Sorry what was the question?","theName":"Bakery","theTeam":"","shopkinsBFF":"Lippy Lips","shopkinsHangout":"Bakery","favouriteHobby":"Whipping up treats"},{"id":"Pecanna Pie","name":"Pecanna Pie","imageUrl":"/media/5838/SPKS2_PNGs_BAKERY_Pecanna-Pie.png","bio":"A bit nutty in the head but a real sweetheart inside!","theName":"Bakery","theTeam":"","shopkinsBFF":"Carrie Carrot Cake","shopkinsHangout":"Bakery","favouriteHobby":"Going to the Ballet, especially 'The Nutcracker'"},{"id":"Slick Breadstick","name":"Slick Breadstick","imageUrl":"/media/5797/SPKS2_PNGs_BAKERY_Slick-Breadstick.png","bio":"Crusty on the outside but warm on the inside. It's a tall order being a breadstick!","theName":"Bakery","theTeam":"","shopkinsBFF":"Alpha Soup and Faster Pasta","shopkinsHangout":"Bakery","favouriteHobby":"Lunching in a French Cafe"}],"R01-S01-T04":[{"id":"Ice-cream Dream","name":"Ice-cream Dream","imageUrl":"/media/5789/SPKS2_PNGs_SWEET_TREATS_Ice-Cream-Dream.png","bio":"A little bit drippy but never loses her cool. I'm always cool, cone and collected!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Ice-cream Dream & Waffle Sue","shopkinsHangout":"Sweet Treats ","favouriteHobby":"Chilling out alone in her cone"},{"id":"Minnie Mintie","name":"Minnie Mintie","imageUrl":"/media/5833/SPKS2_PNGs_SWEET_TREATS_Minnie-Mintie.png","bio":"A breath of fresh air! She's always cool to be around! Hugs and Kisses everyone!!!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Yummy Gum","shopkinsHangout":"Sweet Treats ","favouriteHobby":"Yoga and deep breathing"},{"id":"Pamela Pancake","name":"Pamela Pancake","imageUrl":"/media/5834/SPKS2_PNGs_SWEET_TREATS_Pamela-Pancake.png","bio":"Stacks of fun! Overflowing with sweetness. But I'm never too syrupy! ","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Cheery Churro","shopkinsHangout":"Sweet Treats ","favouriteHobby":"Flipping out in the Diving pool"},{"id":"Poppy Corn","name":"Poppy Corn","imageUrl":"/media/5790/SPKS2_PNGs_SWEET_TREATS_Poppy-Corn.png","bio":"When it comes to shopping, no one does it butter! Poppy Corn really knows how to bag a bargain. She’ll shop till she pops and then some! She always gets into the cinema early so she can watch all the ads. They’re her favorite part of the movie!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Corny Cob","shopkinsHangout":"Sweet Treats ","favouriteHobby":"Going to the movies "},{"id":"Waffle Sue","name":"Waffle Sue","imageUrl":"/media/5791/SPKS2_PNGs_SWEET_TREATS_Waffle-Sue.png","bio":"A total chatterbox who loves to stay toasty warm. Even if it means a meltdown on top!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Ice-cream Dream","shopkinsHangout":"Sweet Treats ","favouriteHobby":"Waffling on about anything"}],"R01-S01-T05":[{"id":"Al Foil","name":"Al Foil","imageUrl":"/media/5829/SPKS2_PNGs_PANTRY_Al-Foil.png","bio":"Strong and protective but can get torn between friends. I love to shine!","theName":"Pantry","theTeam":"","shopkinsBFF":"Soda Pops","shopkinsHangout":"Pantry","favouriteHobby":"Wrapping with his friends"},{"id":"Cornell Mustard","name":"Cornell Mustard","imageUrl":"/media/5830/SPKS2_PNGs_PANTRY_Cornell-Mustard.png","bio":"He's hot stuff! A little squirt with a big flavour who can make any hot dog a little hotter!","theName":"Pantry","theTeam":"","shopkinsBFF":"Bart Beans","shopkinsHangout":"Pantry","favouriteHobby":"Solving mysteries"},{"id":"Fasta Pasta","name":"Fasta Pasta","imageUrl":"/media/5783/SPKS2_PNGs_PANTRY_Fasta-Pasta.png","bio":"A great friend to twirl around with. Once you meet me, I'm un-spagettable! ","theName":"Pantry","theTeam":"","shopkinsBFF":"Fi Fi Flour & Olivia Oil","shopkinsHangout":"Pantry","favouriteHobby":"Shooting hoops with meatballs"},{"id":"Fi Fi Flour","name":"Fi Fi Flour","imageUrl":"/media/5784/SPKS2_PNGs_PANTRY_Fi-Fi-Flour.png","bio":"A little bit messy to be around but I'll help anyone in a sticky situation!","theName":"Pantry","theTeam":"","shopkinsBFF":"Fasta Pasta","shopkinsHangout":"Pantry","favouriteHobby":"Creating Half baked inventions"},{"id":"Honeeey","name":"Honeeey","imageUrl":"/media/5785/SPKS2_PNGs_PANTRY_Honeeey.png","bio":"She can Bee Charming, she can Bee Helpful but most of all she love to Bee Sweeeet!","theName":"Pantry","theTeam":"","shopkinsBFF":"Lee Tea","shopkinsHangout":"Pantry","favouriteHobby":"The spelling bee and catching flies"}],"R01-S01-T06":[{"id":"Leafy","name":"Leafy","imageUrl":"/media/5798/SPKS2_PNGs_CLEANING__LAUNDRY_Leafy.png","bio":"A girl who knows her roll in life! She always feels flushed with success!","theName":"Cleaning and Laundry","theTeam":"","shopkinsBFF":" Peta Plunger","shopkinsHangout":"Cleaning and Laundry","favouriteHobby":"Unwinding with a good magazine"},{"id":"Molly Mops","name":"Molly Mops","imageUrl":"/media/5799/SPKS2_PNGs_CLEANING__LAUNDRY_Molly-Mops.png","bio":"Molly Mops is buckets of fun! She’s a real hard worker with a shiny personality. When it comes to finding a bargain, she loves to clean up! Just don’t walk over her wet floor or she may fly off her handle!! After a hard days work she loves to watch the Moppets on TV!","theName":"Cleaning and Laundry","theTeam":"","shopkinsBFF":"Sweeps","shopkinsHangout":" Always looking spotless in the Cleaning and Laundry Aisle.","favouriteHobby":"Playing Mopscotch"},{"id":"Squeaky Clean","name":"Squeaky Clean","imageUrl":"/media/5800/SPKS2_PNGs_CLEANING__LAUNDRY_Squeaky-Clean.png","bio":"Honest and clean-cut. She's in a 'Glass of her own'! Every morning she loves to 'Rise and Shine'","theName":"Cleaning and Laundry","theTeam":"","shopkinsBFF":"Dishy Liquid and Leafy","shopkinsHangout":"Cleaning and Laundry","favouriteHobby":"Writing poetry"},{"id":"Sweeps","name":"Sweeps","imageUrl":"/media/5822/SPKS2_PNGs_CLEANING__LAUNDRY_Sweeps.png","bio":"Don't just brush past Sweeps, she'll be your friend from 'Dust till Dawn'! She can handle it all!","theName":"Cleaning and Laundry","theTeam":"","shopkinsBFF":"Molly Mops","shopkinsHangout":"Cleaning and Laundry","favouriteHobby":"Brushing up on her schooling"},{"id":"Wendy Washer","name":"Wendy Washer","imageUrl":"/media/5823/SPKS2_PNGs_CLEANING__LAUNDRY_Wendy-Washer.png","bio":"A truthful shopkin, she lays it on the line! She's a clean-living type of girl!","theName":"Cleaning and Laundry","theTeam":"","shopkinsBFF":"Sizzles & Sarah Softener","shopkinsHangout":"Cleaning and Laundry","favouriteHobby":"Spin cycle classes at the gym"}],"R01-S01-T07":[{"id":"Betty Boot","name":"Betty Boot","imageUrl":"/media/5831/SPKS2_PNGs_SHOES_Betty-Boot.png","bio":"She gets her kicks riding high in the saddle. She's the wildest boot in the west!","theName":"Shoes","theTeam":"","shopkinsBFF":"Heels","shopkinsHangout":"Shoes","favouriteHobby":"Boot Scootin'"},{"id":"Bun Bun Slipper","name":"Bun Bun Slipper","imageUrl":"/media/5786/SPKS2_PNGs_SHOES_Bun-Bun-Slipper.png","bio":"A bit of a snoozy head who is always ready for bed. She'd better hop to it before she falls asleep! ","theName":"Shoes","theTeam":"","shopkinsBFF":"Cute Boot","shopkinsHangout":"Shoes","favouriteHobby":"Getting ready for bed"},{"id":"Heels","name":"Heels","imageUrl":"/media/5832/SPKS2_PNGs_SHOES_Heels.png","bio":"Always a hard worker, Mary Jane Buckles down and gets on with it! She's no Shoe-off!","theName":"Shoes","theTeam":"","shopkinsBFF":"Betty Boot","shopkinsHangout":"Shoes","favouriteHobby":"Tap Dancing"},{"id":"Prommy","name":"Prommy","imageUrl":"/media/5787/SPKS2_PNGs_SHOES_Prommy.png","bio":"High spirited and never flat, she is known for her fabulous style sense.","theName":"Shoes","theTeam":"","shopkinsBFF":"Wendy Wedge","shopkinsHangout":"Shoes","favouriteHobby":"Kicking up her heels"},{"id":"Sneaky Wedge","name":"Sneaky Wedge","imageUrl":"/media/5788/SPKS2_PNGs_SHOES_Sneaky-Wedge.png","bio":"Watch out! Sneaky Wedge is about! She’s always running from store to store hunting for bargains. She’s footloose and fancy-free but gets a little tongue-tied now and then. But no sweat! She’s always a step ahead of the other Shopkins.","theName":"Shoes","theTeam":"","shopkinsBFF":"Sneaky Sue","shopkinsHangout":"Feeling sporty in the Shoe Shop. ","favouriteHobby":"Playing “Hide and Sneak”"}],"R01-S01-T08":[{"id":"Baby Puff","name":"Baby Puff","imageUrl":"/media/5835/SPKS2_PNGs_BABY_Baby-Puff.png","bio":"A sweet smelling shopkin who never makes rash decisions! She's so fit she never runs out of puff!","theName":"Baby","theTeam":"","shopkinsBFF":"Nappy Dee","shopkinsHangout":"Baby","favouriteHobby":"Finding shapes in the clouds"},{"id":"Baby Swipes","name":"Baby Swipes","imageUrl":"/media/5836/SPKS2_PNGs_BABY_Baby-Swipes.png","bio":"A real clean machine! She keeps things shiny from top to bottom!","theName":"Baby","theTeam":"","shopkinsBFF":"Shampoo Sue","shopkinsHangout":"Baby","favouriteHobby":"Swiping out in a wave pool"},{"id":"Dribbles","name":"Dribbles","imageUrl":"/media/5792/SPKS2_PNGs_BABY_Dribbles.png","bio":"She's like a little super hero! When she hears a cry for help this little squirt can save the day!","theName":"Baby","theTeam":"","shopkinsBFF":"Ga Ga Gourmet","shopkinsHangout":"Baby","favouriteHobby":"Taking nice warm baths"},{"id":"Dum Mee Mee","name":"Dum Mee Mee","imageUrl":"/media/5793/SPKS2_PNGs_BABY_Dum-Mee-Mee.png","bio":"Dum Mee Mee is a peacekeeper that was born to shop! She’s no dummy when it comes to stopping tears! The only cries she likes to hear are cries of joy when the sales begin! She’s a sucker for a bargain and a real sooth mover!","theName":"Baby","theTeam":"","shopkinsBFF":"Sippy Sips","shopkinsHangout":"Baby ","favouriteHobby":"Rocking out with babies."},{"id":"Sippy Sips","name":"Sippy Sips","imageUrl":"/media/5794/SPKS2_PNGs_BABY_Sippy-Sips.png","bio":"Never spills a secret and likes to be held tight! She always loves to be sealed with a kiss!","theName":"Baby","theTeam":"","shopkinsBFF":"Dum Mee Mee","shopkinsHangout":"Baby","favouriteHobby":"Singing Lullabies "}],"R01-S01-T09":[{"id":"Angie Ankle Boot","name":"Angie Ankle Boot","imageUrl":"/media/5777/SPKS2_PNGs_LIMITED_EDITION_Angie-Ankle-Boot.png","bio":"Practical yet sleek. Known for taking problems in her stride and never thinking she's too big for her boots!","theName":"Limited Edition","theTeam":"","shopkinsBFF":"Cute Boot","shopkinsHangout":"Limited Edition","favouriteHobby":"Disco Dancing"},{"id":"Donna Donut","name":"Donna Donut","imageUrl":"/media/5778/SPKS2_PNGs_LIMITED_EDITION_Donna-Donut.png","bio":"Everyday is a great day with Donna, but the best days are Fry-Days! ","theName":"Limited Edition","theTeam":"","shopkinsBFF":"D'Lish Donut","shopkinsHangout":"Limited Edition","favouriteHobby":"A hole lot of stuff!"},{"id":"Lee Tea","name":"Lee Tea","imageUrl":"/media/5779/SPKS2_PNGs_LIMITED_EDITION_Lee-Tea.png","bio":"Sometimes he seems a little weak, but gets stronger with time! Loves a dip in a hot tub!","theName":"Limited Edition","theTeam":"","shopkinsBFF":"Sugar Lump","shopkinsHangout":"Limited Edition","favouriteHobby":"Doing a little Jig"},{"id":"Lenny Lime","name":"Lenny Lime","imageUrl":"/media/5780/SPKS2_PNGs_LIMITED_EDITION_Lenny-Lime.png","bio":"Born to please with just a little squeeze! He may be little but never call him a Pip-Squeak!","theName":"Limited Edition","theTeam":"","shopkinsBFF":"Sour Lemon","shopkinsHangout":"Limited Edition","favouriteHobby":"Sipping on a soda!"},{"id":"Marsha Mellow","name":"Marsha Mellow","imageUrl":"/media/5781/SPKS2_PNGs_LIMITED_EDITION_Marsha-Mellow.png","bio":"A real softie who doesn't like the heat! She loves sleeping out under the stars. Sweet Dreams!","theName":"Limited Edition","theTeam":"","shopkinsBFF":"Choco Lava","shopkinsHangout":"Limited Edition","favouriteHobby":"Camping Out around the fire"},{"id":"Rub-a-Glove","name":"Rub-a-Glove","imageUrl":"/media/5782/SPKS2_PNGs_LIMITED_EDITION_Rub-a-Glove.png","bio":"You've really got to hand it to her, She's the Queen of Clean when it comes to dishing up sparkling plates!","theName":"Limited Edition","theTeam":"","shopkinsBFF":"Molly Mops","shopkinsHangout":"Limited Edition","favouriteHobby":"Water Sports"}],"R01-S02-T01":[{"id":"Apple Blossom","name":"Apple Blossom","imageUrl":"/media/1399/SPKS1_FRUIT-N-VEG_Apple-Blossom.png","bio":"An adventurer with big dreams and kind to the core","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"I have lots!","shopkinsHangout":"Fruit and vege","favouriteHobby":"Going on adventures!"},{"id":"Strawberry Kiss","name":"Strawberry Kiss","imageUrl":"/media/1398/SPKS1_FRUIT-N-VEG_Strawberry-Kiss-.png","bio":"A day dreamer with a huge imagination and often away with the fairies","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Apple Blossom","shopkinsHangout":"The fruit section","favouriteHobby":"Writing poetry"},{"id":"Pineapple Crush","name":"Pineapple Crush","imageUrl":"/media/1396/SPKS1_FRUIT-N-VEG_Pineapple-Crush.png","bio":"Silly and fun and a lover of the sun!","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Melonie Pips","shopkinsHangout":"The fruit section","favouriteHobby":"Surfing and sunbaking"},{"id":"Miss Mushy Moo","name":"Miss Mushy-Moo","imageUrl":"/media/1400/SPKS1_FRUIT-N-VEG_Miss-Mushy.png","bio":"A bit of a softy but with a good head on my shoulders","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Rockin' Broc","shopkinsHangout":"Vege department","favouriteHobby":"Making mud pies"},{"id":"Posh Pear","name":"Posh Pear","imageUrl":"/media/1397/SPKS1_FRUIT-N-VEG_Posh-Pear.png","bio":"A bit spoilt but a good listener and friendly","theName":"Fruit and Veg","theTeam":"This team hangs out in the fruit and vege department","shopkinsBFF":"Lippy Lips","shopkinsHangout":"In the fruit and vege department!","favouriteHobby":"Playing cards"}],"R01-S02-T02":[{"id":"Tommy Ketchup","name":"Tommy Ketchup","imageUrl":"/media/1402/SPKS1_PANTRY_Tommy-Ketchup.png","bio":"Extremely cheeky and always wanting to be a part of everything!","theName":"Pantry","theTeam":"","shopkinsBFF":"Frank Furter","shopkinsHangout":"Pantry","favouriteHobby":"Trolley Riding"},{"id":"Peppe Pepper","name":"Peppe Pepper","imageUrl":"/media/1405/SPKS1_PANTRY_Peppe-Pepper.png","bio":"Always sneezing! Hehe no, probably clever and kind and a bit of a daredevil - I like to spice things up!","theName":"Pantry","theTeam":"","shopkinsBFF":"Sally Shakes","shopkinsHangout":"On the pantry shelf","favouriteHobby":"Shaking it on the dance floor!"},{"id":"Sally Shakes","name":"Sally Shakes ","imageUrl":"/media/1406/SPKS1_PANTRY_Salty-Shakes.png","bio":"hmm I think they would say I add some fun and flavour to any party!","theName":"Pantry","theTeam":"","shopkinsBFF":"Peppe Pepper","shopkinsHangout":"On the pantry shelf","favouriteHobby":"Dancing the Cha Cha"},{"id":"Sugar Lump","name":"Sugar Lump","imageUrl":"/media/1401/SPKS1_PANTRY_Sugar-Lump.png","bio":"A real sweety who gets along with everyone and is easy to be around.","theName":"Pantry","theTeam":"","shopkinsBFF":"Wishes","shopkinsHangout":"On the pantry shelf","favouriteHobby":"Perfecting the ultimate cup of tea"},{"id":"Breaky Crunch","name":"Breaky Crunch","imageUrl":"/media/1403/SPKS1_PANTRY_Breaky-Crunch.png","bio":"Full of energy and ready to go at a moments notice, definitely a morning Shopkin!","theName":"Pantry","theTeam":"","shopkinsBFF":"Spilt Milk","shopkinsHangout":"In the cereal aisle!","favouriteHobby":"Working out"},{"id":"Gran Jam","name":"Gran Jam","imageUrl":"/media/1404/SPKS1_PANTRY_Gran-Jam.png","bio":"Caring, gentle and the mother of the group.","theName":"Pantry","theTeam":"","shopkinsBFF":"Papa Tomato","shopkinsHangout":"Pantry","favouriteHobby":"Knitting"}],"R01-S02-T03":[{"id":"Bread Head","name":"Bread Head","imageUrl":"/media/1409/SPKS1_BAKERY_Bread-Head.png","bio":"Hmm maybe independent and confident and a bit of a chatter box!","theName":"Bakery","theTeam":"","shopkinsBFF":"Kooky Cookie ","shopkinsHangout":"On the bakery stand mainly","favouriteHobby":"Chatting on the phone"},{"id":"Dlish Donut","name":"D'Lish Donut","imageUrl":"/media/1410/SPKS1_BAKERY_Dlish-Donut.png","bio":"Super sweet but with a competitive edge. I'm always trying for the perfect hole in one!","theName":"Bakery","theTeam":"","shopkinsBFF":"Cheeky Chocolate","shopkinsHangout":"In the bakery section","favouriteHobby":"Playing golf and basketball"},{"id":"Mini Muffin","name":"Mini Muffin","imageUrl":"/media/1408/SPKS1_BAKERY_Mini-Muffin.png","bio":"Sweet inside and out with a lot of energy! Oh, and an early riser too!","theName":"Bakery","theTeam":"","shopkinsBFF":"Spilt Milk","shopkinsHangout":"In the bakery aisle","favouriteHobby":"Going to brunch"},{"id":"Kooky Cookie","name":"Kooky Cookie","imageUrl":"/media/1407/SPKS1_BAKERY_Kooky-Cookie.png","bio":"I think they would say I'm really shy and sensitive. They're always getting me to try new things!","theName":"Bakery","theTeam":"","shopkinsBFF":"Bread Head & Apple Blossom","shopkinsHangout":"On the bakery stand ","favouriteHobby":"Acrobatics like somersaulting and also reading"}],"R01-S02-T04":[{"id":"Bubbles","name":"Bubbles","imageUrl":"/media/1414/SPKS1_SWEET-TREATS_Bubbles.png","bio":"hmm they sometimes say I talk so much that I'm chewing their ears off haha! But I think they would also say I'm kind and caring. ","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Lolli Poppins","shopkinsHangout":"In the party food section","favouriteHobby":"Singing a tune for anyone who’ll listen! "},{"id":"Candy Kisses","name":"Candy Kisses","imageUrl":"/media/1415/SPKS1_SWEET-TREATS_Candy-Kisses.png","bio":"Romantic and a smooth - I haven't got a date yet buuutt I chalk it up to bad luck!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Candi Cotton","shopkinsHangout":"In the sweet treats section","favouriteHobby":"Writing poetry"},{"id":"Le Quorice","name":"Le Quorice","imageUrl":"/media/1412/SPKS1_SWEET-TREATS_LeQuorice.png","bio":"I think they would call me old fashioned but I can still be the life of any party! ","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Mandy Candy","shopkinsHangout":"In the confectionary aisle","favouriteHobby":"Hopscotch"},{"id":"Cheeky Chocolate","name":"Cheeky Chocolate","imageUrl":"/media/1416/SPKS1_SWEET-TREATS_Cheeky-Chocolate.png","bio":"Well, definitely cheeky and a prankster! Always laughing and having fun and never afraid to get dirty.","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"D'Lish Donut and Apple Blossom","shopkinsHangout":"In the sweet treats section","favouriteHobby":"Pranking!"},{"id":"Jelly B","name":"Jelly B","imageUrl":"/media/1411/SPKS1_SWEET-TREATS_Jelly-B.png","bio":"Full of beans with a colourful personality! ","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Candy Kisses","shopkinsHangout":"In the sweet treats section","favouriteHobby":"Skipping!"},{"id":"Lolli Poppins","name":"Lolli Poppins","imageUrl":"/media/1413/SPKS1_SWEET-TREATS_Lolli-Poppins.png","bio":"As sweet as can be! I love smiling and making Shopkins laugh!","theName":"Sweet Treats","theTeam":"","shopkinsBFF":"Candi Cotton","shopkinsHangout":"In the sweets section","favouriteHobby":"Hairdressing"}],"R01-S02-T05":[{"id":"Chee Zee","name":"Chee Zee","imageUrl":"/media/1420/SPKS1_DAIRY_Chee-Zee.png","bio":"A confident and passionate performer who loves taking centre stage and is a little bit crackers!","theName":"Dairy","theTeam":"","shopkinsBFF":"Cheezey-B and Freezy Peazy","shopkinsHangout":"In the dairy aisle","favouriteHobby":"Rapping with my BFFs"},{"id":"Swiss Miss","name":"Swiss Miss","imageUrl":"/media/1419/SPKS1_DAIRY_Swiss-Miss.png","bio":"A hilarious jokester (If they say my jokes are cheesy they're lying! ;) ","theName":"Dairy","theTeam":"","shopkinsBFF":"Tommy Ketchup","shopkinsHangout":"In the dairy case","favouriteHobby":"Stand up comedian "},{"id":"Spilt Milk","name":"Spilt Milk","imageUrl":"/media/1418/SPKS1_DAIRY_Spilt-Milk.png","bio":"A bit of a klutz and a born risk-taker, I like to stir things up!","theName":"Dairy","theTeam":"","shopkinsBFF":"Breaky Crunch","shopkinsHangout":"Dairy department","favouriteHobby":"Splashing about in the local pool"},{"id":"Googy","name":"Googy","imageUrl":"/media/1417/SPKS1_DAIRY_Googy.png","bio":"Clumsy and shy. They're always trying to get me to come out of my shell","theName":"Dairy","theTeam":"","shopkinsBFF":"Split Milk","shopkinsHangout":"Dairy department","favouriteHobby":"Juggling"}],"R01-S02-T06":[{"id":"Pretz Elle","name":"Pretz-elle","imageUrl":"/media/1427/SPKS1_PARTY-FOODS_Pretz-elle.png","bio":"A bit scatter-brained maybe! But also cheeky and charming.","theName":"Party Food","theTeam":"","shopkinsBFF":"Sally Shakes ","shopkinsHangout":"In the party section!","favouriteHobby":"Gymnastics"},{"id":"Wobbles","name":"Wobbles","imageUrl":"/media/1424/SPKS1_PARTY-FOODS_Wobbles.png","bio":"A bit klutzy and a bit of a worry wart! But once she starts jiggling on the dance floor, no Shopkins can stop her! ","theName":"Party Food","theTeam":"","shopkinsBFF":"Snow Crush","shopkinsHangout":"In the party section!","favouriteHobby":"Hip Hop Dancing"},{"id":"Wishes","name":"Wishes","imageUrl":"/media/1423/SPKS1_PARTY-FOODS_Wishes.png","bio":"A real party starter and a bit of an attention seeker!","theName":"Party Food","theTeam":"","shopkinsBFF":"Soda Pops","shopkinsHangout":"In the party aisle","favouriteHobby":"Singing a tune for anyone who’ll listen! "},{"id":"Fairy Crumbs","name":"Fairy Crumbs","imageUrl":"/media/1426/SPKS1_PARTY-FOODS_Fairy-Crumbs.png","bio":"Cute and colourful with a love for all things pink and purple!","theName":"Party Food","theTeam":"","shopkinsBFF":"Soda Pops","shopkinsHangout":"Party food aisle","favouriteHobby":"Parties!"},{"id":"Cheezey B","name":"Cheezey B","imageUrl":"/media/1425/SPKS1_PARTY-FOODS_Cheezy-B.png","bio":"A Shopkin who never stops rhyming! I love to rap, so let's all clap, take off your hat and dat is dat…ok not my best work hehe","theName":"Party Food","theTeam":"","shopkinsBFF":"Freezy Peazy and Chee Zee","shopkinsHangout":"Party food","favouriteHobby":"Rapping with my BFFs"},{"id":"Soda Pops","name":"Soda Pops","imageUrl":"/media/1422/SPKS1_PARTY-FOODS_Soda-Pops.png","bio":"Super bubbly and sweet! I add fizz to any party!","theName":"Party Food","theTeam":"","shopkinsBFF":"Rainbow Bite","shopkinsHangout":"Where-ever there's a party!","favouriteHobby":"Shaking it on the dance floor!"}],"R01-S02-T07":[{"id":"Scrubs","name":"Scrubs","imageUrl":"/media/1428/SPKS1_HEALTH-BEAUTY_Scrubs.png","bio":"Chatty and always grinning. I love to make people smile!","theName":"Health and Beauty","theTeam":"","shopkinsBFF":"Toofs","shopkinsHangout":"In the beauty section","favouriteHobby":"Tubing "},{"id":"Lippy Lips","name":"Lippy Lips","imageUrl":"/media/1431/SPKS1_HEALTH-BEAUTY_Lippy-Lips.png","bio":"A fashionista with sassy style and maybe a bit bossy!","theName":"Health and Beauty","theTeam":"","shopkinsBFF":"Apple Blossom and Polly Polish","shopkinsHangout":"Health and beauty section","favouriteHobby":"Shopping of course!"},{"id":"Shampy","name":"Shampy","imageUrl":"/media/1429/SPKS1_HEALTH-BEAUTY_Shampy.png","bio":"Err is that Silky or Shampy? We never know! Heeheehee","theName":"Health and Beauty","theTeam":"","shopkinsBFF":"Silky","shopkinsHangout":"In the Beauty Section","favouriteHobby":"Swimming"},{"id":"Silky","name":"Silky","imageUrl":"/media/1430/SPKS1_HEALTH-BEAUTY_Silky.png","bio":"Partners in crime with Shampy with a great sense of style","theName":"Health and Beauty","theTeam":"","shopkinsBFF":"Shampy","shopkinsHangout":"In the beauty section","favouriteHobby":"Swimming"},{"id":"Poly Poshish","name":"Polly Polish","imageUrl":"/media/1432/SPKS1_HEALTH-BEAUTY_Polly-Polish.png","bio":"A fashion risk-taker who's always trying new colours and styles","theName":"Health and Beauty","theTeam":"","shopkinsBFF":"Lippy Lips","shopkinsHangout":"In the beauty section","favouriteHobby":"Shopping of course!!"}],"R01-S02-T08":[{"id":"Ice Cream Dream","name":"Ice Cream Dream","imageUrl":"/media/1433/SPKS1_FROZEN_Ice-Cream.png","bio":"Scoops of fun but maybe a bit of a headache at times! Lol","theName":"Frozen","theTeam":"","shopkinsBFF":"Cheeky Chocolate","shopkinsHangout":"Frozen section","favouriteHobby":"Igloo building"},{"id":"Popsi Cool","name":"Popsi Cool","imageUrl":"/media/1434/SPKS1_FROZEN_Popsi-Cool.png","bio":"Cold on the outside but warm and gooey on the inside!","theName":"Frozen","theTeam":"","shopkinsBFF":"Cool Cube","shopkinsHangout":"The frozen food section","favouriteHobby":"Ice Skating"},{"id":"Yo Chi","name":"Yo Chi","imageUrl":"/media/1436/SPKS1_FROZEN_Yo-Chi-.png","bio":"Well cultured and different each day!","theName":"Frozen","theTeam":"","shopkinsBFF":"Melonie Pips","shopkinsHangout":"Frozen section","favouriteHobby":"Swirling around the dance floor"},{"id":"Cool Cube","name":"Cool Cube","imageUrl":"/media/1437/SPKS1_FROZEN_Cool-Cube.png","bio":"A bit of a snow bunny, who hates hot weather. Seriously. ","theName":"Frozen","theTeam":"","shopkinsBFF":"Snow Crush","shopkinsHangout":"The frozen food section","favouriteHobby":"Snowboarding, skiing, sledding and ice-Skating"},{"id":"Snow Crush","name":"Snow Crush","imageUrl":"/media/1435/SPKS1_FROZEN_Snow-Crush.png","bio":"A snowkin builder extraordinaire!!","theName":"Frozen","theTeam":"","shopkinsBFF":"Popsi Cool","shopkinsHangout":"Frozen section","favouriteHobby":"Snowkin building and curling "},{"id":"Freezy Peazy","name":"Freezy Peazy","imageUrl":"/media/1438/SPKS1_FROZEN_Freezy-Peazy.png","bio":"Super cool and the best rapper in the pod. ","theName":"Frozen","theTeam":"","shopkinsBFF":"Cheezey-B and Chee Zee","shopkinsHangout":"The frozen food section","favouriteHobby":"Rapping with my BFFs"}]};
_navList = {"Shopkins":{"Season 2":["Fruit and Veg","Homewares","Bakery","Sweet Treats","Pantry","Cleaning and Laundry","Shoes","Baby","Limited Edition"],"Season 1":["Fruit and Veg","Pantry","Bakery","Sweet Treats","Dairy","Party Food","Health and Beauty","Frozen"]}};
</script>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">text/javascript</span>"<span class="pl-kos">></span>
<span class="pl-s1">_characterList</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-s">"R01-S01-T01"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Chloe Flower"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Chloe Flower"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5801/SPKS2_PNGs_FRUIT__VEG_Chloe-Flower.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit of a hippy, I'm all about 'Flower Power' but I'm loyal to the end! I never leaf my friends behind!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Rockin' Broc"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Fruit & Veg"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Leafing through the newspaper"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Corny Cob"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Corny Cob"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5802/SPKS2_PNGs_FRUIT__VEG_Corny-Cob.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Famous for his corny jokes, he can’t help pop up to say hello when things get hot! After a big day of shopping, he loves to just flake out! And what sort of pet does Poppy Corn own? A corn dog of course! Oh how Corny can one Shopkin get!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Poppy Corn"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"His Husky voice is always heard in the Fruit and Vegetable Department"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Doing Puzzles and Maizes"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Dippy Avocado"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Dippy Avocado"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5824/SPKS2_PNGs_FRUIT__VEG_Dippy-Avocado.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A true greenie who likes to spread himself around. I sometimes like to spice things up!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Silly Chilli & Brenda Blenda"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Fruit & Veg"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Taking a dip on a hot day"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Juicy Orange"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Juicy Orange"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5803/SPKS2_PNGs_FRUIT__VEG_Juicy-Orange.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"She loves a juicy bargain and is always putting the squeeze of the shop owner for the best price! Her favorite color? – Orange! Her favorite flavor? – Orange! Her favorite greeting? “Orange you glad to see me?” Now that’s an a-peeling joke!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sour Lemon"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"She’s squeezed into the Fruit and Veg Section."</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Keeping Juicy Secrets"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Silly Chilli"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Silly Chilli"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5825/SPKS2_PNGs_FRUIT__VEG_Silly-Chilli.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Some friends say I come across as being cold, but really I'm just a little chilli!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Dippy Avocado"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Fruit & Veg"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Eating very HOT dogs"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T02"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Brenda Blenda"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Brenda Blenda"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5804/SPKS2_PNGs_HOMEWARES_Brenda-Blender.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real smooth operator who sometimes like to stir up trouble. I'm a wiz at blending in with a crowd!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Dippy Avocado"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Mixing with her friends"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Lana Lamp"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Lana Lamp"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5805/SPKS2_PNGs_HOMEWARES_Lana-Lamp.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A brilliant personality who loves light hearted jokes. I love coming up with bright ideas!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lisa Litter"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Reading in bed"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sizzles"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sizzles"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5826/SPKS2_PNGs_HOMEWARES_Sizzles.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Warm hearted rather than hot tempered and a hard worker. I love to steam through my jobs each day!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Wendy Washer"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Riding on steam trains"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Toasty Pops"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Toasty Pops"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5827/SPKS2_PNGs_HOMEWARES_Toasty-Pop.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Toasty Pop is always popping up when it’s least expected but she always has a warm welcome for everyone! The burning question is what’s here favorite type of bread? I’ve heard its raisin loaf! Spread the word!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Butter Cup"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"She’s always popping up in the Homewares Department "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Throwing parties and giving toasts! "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Zappy Microwave"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Zappy Microwave"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5828/SPKS2_PNGs_HOMEWARES_Zappy-Microwave.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real fast thinker who wants everything done YESTERDAY! I can be a little inpatient so don't push my buttons!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Saucy Pan"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Speed Reading"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T03"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Carrie Carrot Cake"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Carrie Carrot Cake"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5795/SPKS2_PNGs_BAKERY_Carrie-Carrot-Cake.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Sweet but a little nutty! People say I have a heart of gold… A 24 carrot heart of gold!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Pecanna Pie"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Horse Riding"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Fifi Fruit Tart"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Fifi Fruit Tart"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5837/SPKS2_PNGs_BAKERY_Fifi-Fruit-Tart.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">""</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Mary Meringue"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Mary Meringue"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5796/SPKS2_PNGs_BAKERY_Mary-Meringue.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"SWEEEET and fluffy! Plus I always have my head in the clouds….. Sorry what was the question?"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lippy Lips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Whipping up treats"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Pecanna Pie"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Pecanna Pie"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5838/SPKS2_PNGs_BAKERY_Pecanna-Pie.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit nutty in the head but a real sweetheart inside!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Carrie Carrot Cake"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Going to the Ballet, especially 'The Nutcracker'"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Slick Breadstick"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Slick Breadstick"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5797/SPKS2_PNGs_BAKERY_Slick-Breadstick.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Crusty on the outside but warm on the inside. It's a tall order being a breadstick!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Alpha Soup and Faster Pasta"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Lunching in a French Cafe"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T04"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Ice-cream Dream"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Ice-cream Dream"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5789/SPKS2_PNGs_SWEET_TREATS_Ice-Cream-Dream.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A little bit drippy but never loses her cool. I'm always cool, cone and collected!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Ice-cream Dream & Waffle Sue"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Sweet Treats "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Chilling out alone in her cone"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Minnie Mintie"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Minnie Mintie"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5833/SPKS2_PNGs_SWEET_TREATS_Minnie-Mintie.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A breath of fresh air! She's always cool to be around! Hugs and Kisses everyone!!!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Yummy Gum"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Sweet Treats "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Yoga and deep breathing"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Pamela Pancake"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Pamela Pancake"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5834/SPKS2_PNGs_SWEET_TREATS_Pamela-Pancake.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Stacks of fun! Overflowing with sweetness. But I'm never too syrupy! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cheery Churro"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Sweet Treats "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Flipping out in the Diving pool"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Poppy Corn"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Poppy Corn"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5790/SPKS2_PNGs_SWEET_TREATS_Poppy-Corn.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"When it comes to shopping, no one does it butter! Poppy Corn really knows how to bag a bargain. She’ll shop till she pops and then some! She always gets into the cinema early so she can watch all the ads. They’re her favorite part of the movie!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Corny Cob"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Sweet Treats "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Going to the movies "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Waffle Sue"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Waffle Sue"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5791/SPKS2_PNGs_SWEET_TREATS_Waffle-Sue.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A total chatterbox who loves to stay toasty warm. Even if it means a meltdown on top!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Ice-cream Dream"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Sweet Treats "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Waffling on about anything"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T05"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Al Foil"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Al Foil"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5829/SPKS2_PNGs_PANTRY_Al-Foil.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Strong and protective but can get torn between friends. I love to shine!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Soda Pops"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Wrapping with his friends"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Cornell Mustard"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Cornell Mustard"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5830/SPKS2_PNGs_PANTRY_Cornell-Mustard.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"He's hot stuff! A little squirt with a big flavour who can make any hot dog a little hotter!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Bart Beans"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Solving mysteries"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Fasta Pasta"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Fasta Pasta"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5783/SPKS2_PNGs_PANTRY_Fasta-Pasta.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A great friend to twirl around with. Once you meet me, I'm un-spagettable! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Fi Fi Flour & Olivia Oil"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Shooting hoops with meatballs"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Fi Fi Flour"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Fi Fi Flour"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5784/SPKS2_PNGs_PANTRY_Fi-Fi-Flour.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A little bit messy to be around but I'll help anyone in a sticky situation!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Fasta Pasta"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Creating Half baked inventions"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Honeeey"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Honeeey"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5785/SPKS2_PNGs_PANTRY_Honeeey.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"She can Bee Charming, she can Bee Helpful but most of all she love to Bee Sweeeet!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lee Tea"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"The spelling bee and catching flies"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T06"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Leafy"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Leafy"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5798/SPKS2_PNGs_CLEANING__LAUNDRY_Leafy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A girl who knows her roll in life! She always feels flushed with success!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">" Peta Plunger"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Unwinding with a good magazine"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Molly Mops"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Molly Mops"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5799/SPKS2_PNGs_CLEANING__LAUNDRY_Molly-Mops.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Molly Mops is buckets of fun! She’s a real hard worker with a shiny personality. When it comes to finding a bargain, she loves to clean up! Just don’t walk over her wet floor or she may fly off her handle!! After a hard days work she loves to watch the Moppets on TV!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sweeps"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">" Always looking spotless in the Cleaning and Laundry Aisle."</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Playing Mopscotch"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Squeaky Clean"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Squeaky Clean"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5800/SPKS2_PNGs_CLEANING__LAUNDRY_Squeaky-Clean.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Honest and clean-cut. She's in a 'Glass of her own'! Every morning she loves to 'Rise and Shine'"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Dishy Liquid and Leafy"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Writing poetry"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sweeps"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sweeps"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5822/SPKS2_PNGs_CLEANING__LAUNDRY_Sweeps.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Don't just brush past Sweeps, she'll be your friend from 'Dust till Dawn'! She can handle it all!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Molly Mops"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Brushing up on her schooling"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Wendy Washer"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Wendy Washer"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5823/SPKS2_PNGs_CLEANING__LAUNDRY_Wendy-Washer.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A truthful shopkin, she lays it on the line! She's a clean-living type of girl!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sizzles & Sarah Softener"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Spin cycle classes at the gym"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T07"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Betty Boot"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Betty Boot"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5831/SPKS2_PNGs_SHOES_Betty-Boot.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"She gets her kicks riding high in the saddle. She's the wildest boot in the west!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Heels"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Boot Scootin'"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Bun Bun Slipper"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Bun Bun Slipper"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5786/SPKS2_PNGs_SHOES_Bun-Bun-Slipper.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit of a snoozy head who is always ready for bed. She'd better hop to it before she falls asleep! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cute Boot"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Getting ready for bed"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Heels"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Heels"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5832/SPKS2_PNGs_SHOES_Heels.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Always a hard worker, Mary Jane Buckles down and gets on with it! She's no Shoe-off!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Betty Boot"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Tap Dancing"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Prommy"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Prommy"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5787/SPKS2_PNGs_SHOES_Prommy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"High spirited and never flat, she is known for her fabulous style sense."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Wendy Wedge"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Kicking up her heels"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sneaky Wedge"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sneaky Wedge"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5788/SPKS2_PNGs_SHOES_Sneaky-Wedge.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Watch out! Sneaky Wedge is about! She’s always running from store to store hunting for bargains. She’s footloose and fancy-free but gets a little tongue-tied now and then. But no sweat! She’s always a step ahead of the other Shopkins."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sneaky Sue"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Feeling sporty in the Shoe Shop. "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Playing “Hide and Sneak”"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T08"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Baby Puff"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Baby Puff"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5835/SPKS2_PNGs_BABY_Baby-Puff.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A sweet smelling shopkin who never makes rash decisions! She's so fit she never runs out of puff!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Nappy Dee"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Finding shapes in the clouds"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Baby Swipes"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Baby Swipes"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5836/SPKS2_PNGs_BABY_Baby-Swipes.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real clean machine! She keeps things shiny from top to bottom!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Shampoo Sue"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Swiping out in a wave pool"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Dribbles"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Dribbles"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5792/SPKS2_PNGs_BABY_Dribbles.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"She's like a little super hero! When she hears a cry for help this little squirt can save the day!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Ga Ga Gourmet"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Taking nice warm baths"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Dum Mee Mee"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Dum Mee Mee"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5793/SPKS2_PNGs_BABY_Dum-Mee-Mee.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Dum Mee Mee is a peacekeeper that was born to shop! She’s no dummy when it comes to stopping tears! The only cries she likes to hear are cries of joy when the sales begin! She’s a sucker for a bargain and a real sooth mover!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sippy Sips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Baby "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Rocking out with babies."</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sippy Sips"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sippy Sips"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5794/SPKS2_PNGs_BABY_Sippy-Sips.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Never spills a secret and likes to be held tight! She always loves to be sealed with a kiss!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Dum Mee Mee"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Singing Lullabies "</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S01-T09"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Angie Ankle Boot"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Angie Ankle Boot"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5777/SPKS2_PNGs_LIMITED_EDITION_Angie-Ankle-Boot.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Practical yet sleek. Known for taking problems in her stride and never thinking she's too big for her boots!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cute Boot"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Disco Dancing"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Donna Donut"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Donna Donut"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5778/SPKS2_PNGs_LIMITED_EDITION_Donna-Donut.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Everyday is a great day with Donna, but the best days are Fry-Days! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"D'Lish Donut"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"A hole lot of stuff!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Lee Tea"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Lee Tea"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5779/SPKS2_PNGs_LIMITED_EDITION_Lee-Tea.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Sometimes he seems a little weak, but gets stronger with time! Loves a dip in a hot tub!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sugar Lump"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Doing a little Jig"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Lenny Lime"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Lenny Lime"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5780/SPKS2_PNGs_LIMITED_EDITION_Lenny-Lime.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Born to please with just a little squeeze! He may be little but never call him a Pip-Squeak!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sour Lemon"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Sipping on a soda!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Marsha Mellow"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Marsha Mellow"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5781/SPKS2_PNGs_LIMITED_EDITION_Marsha-Mellow.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real softie who doesn't like the heat! She loves sleeping out under the stars. Sweet Dreams!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Choco Lava"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Camping Out around the fire"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Rub-a-Glove"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Rub-a-Glove"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/5782/SPKS2_PNGs_LIMITED_EDITION_Rub-a-Glove.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"You've really got to hand it to her, She's the Queen of Clean when it comes to dishing up sparkling plates!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Molly Mops"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Limited Edition"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Water Sports"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T01"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Apple Blossom"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Apple Blossom"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1399/SPKS1_FRUIT-N-VEG_Apple-Blossom.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"An adventurer with big dreams and kind to the core"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"I have lots!"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Fruit and vege"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Going on adventures!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Strawberry Kiss"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Strawberry Kiss"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1398/SPKS1_FRUIT-N-VEG_Strawberry-Kiss-.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A day dreamer with a huge imagination and often away with the fairies"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Apple Blossom"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"The fruit section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Writing poetry"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Pineapple Crush"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Pineapple Crush"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1396/SPKS1_FRUIT-N-VEG_Pineapple-Crush.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Silly and fun and a lover of the sun!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Melonie Pips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"The fruit section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Surfing and sunbaking"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Miss Mushy Moo"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Miss Mushy-Moo"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1400/SPKS1_FRUIT-N-VEG_Miss-Mushy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit of a softy but with a good head on my shoulders"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Rockin' Broc"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Vege department"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Making mud pies"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Posh Pear"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Posh Pear"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1397/SPKS1_FRUIT-N-VEG_Posh-Pear.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit spoilt but a good listener and friendly"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">"This team hangs out in the fruit and vege department"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lippy Lips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the fruit and vege department!"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Playing cards"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T02"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Tommy Ketchup"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Tommy Ketchup"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1402/SPKS1_PANTRY_Tommy-Ketchup.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Extremely cheeky and always wanting to be a part of everything!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Frank Furter"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Trolley Riding"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Peppe Pepper"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Peppe Pepper"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1405/SPKS1_PANTRY_Peppe-Pepper.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Always sneezing! Hehe no, probably clever and kind and a bit of a daredevil - I like to spice things up!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sally Shakes"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"On the pantry shelf"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Shaking it on the dance floor!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sally Shakes"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sally Shakes "</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1406/SPKS1_PANTRY_Salty-Shakes.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"hmm I think they would say I add some fun and flavour to any party!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Peppe Pepper"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"On the pantry shelf"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Dancing the Cha Cha"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Sugar Lump"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Sugar Lump"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1401/SPKS1_PANTRY_Sugar-Lump.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real sweety who gets along with everyone and is easy to be around."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Wishes"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"On the pantry shelf"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Perfecting the ultimate cup of tea"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Breaky Crunch"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Breaky Crunch"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1403/SPKS1_PANTRY_Breaky-Crunch.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Full of energy and ready to go at a moments notice, definitely a morning Shopkin!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Spilt Milk"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the cereal aisle!"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Working out"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Gran Jam"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Gran Jam"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1404/SPKS1_PANTRY_Gran-Jam.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Caring, gentle and the mother of the group."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Papa Tomato"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Knitting"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T03"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Bread Head"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Bread Head"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1409/SPKS1_BAKERY_Bread-Head.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Hmm maybe independent and confident and a bit of a chatter box!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Kooky Cookie "</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"On the bakery stand mainly"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Chatting on the phone"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Dlish Donut"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"D'Lish Donut"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1410/SPKS1_BAKERY_Dlish-Donut.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Super sweet but with a competitive edge. I'm always trying for the perfect hole in one!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cheeky Chocolate"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the bakery section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Playing golf and basketball"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Mini Muffin"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Mini Muffin"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1408/SPKS1_BAKERY_Mini-Muffin.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Sweet inside and out with a lot of energy! Oh, and an early riser too!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Spilt Milk"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the bakery aisle"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Going to brunch"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Kooky Cookie"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Kooky Cookie"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1407/SPKS1_BAKERY_Kooky-Cookie.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"I think they would say I'm really shy and sensitive. They're always getting me to try new things!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Bread Head & Apple Blossom"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"On the bakery stand "</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Acrobatics like somersaulting and also reading"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T04"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Bubbles"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Bubbles"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1414/SPKS1_SWEET-TREATS_Bubbles.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"hmm they sometimes say I talk so much that I'm chewing their ears off haha! But I think they would also say I'm kind and caring. "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lolli Poppins"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the party food section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Singing a tune for anyone who’ll listen! "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Candy Kisses"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Candy Kisses"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1415/SPKS1_SWEET-TREATS_Candy-Kisses.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Romantic and a smooth - I haven't got a date yet buuutt I chalk it up to bad luck!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Candi Cotton"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the sweet treats section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Writing poetry"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Le Quorice"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Le Quorice"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1412/SPKS1_SWEET-TREATS_LeQuorice.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"I think they would call me old fashioned but I can still be the life of any party! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Mandy Candy"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the confectionary aisle"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Hopscotch"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Cheeky Chocolate"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Cheeky Chocolate"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1416/SPKS1_SWEET-TREATS_Cheeky-Chocolate.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Well, definitely cheeky and a prankster! Always laughing and having fun and never afraid to get dirty."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"D'Lish Donut and Apple Blossom"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the sweet treats section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Pranking!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Jelly B"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Jelly B"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1411/SPKS1_SWEET-TREATS_Jelly-B.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Full of beans with a colourful personality! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Candy Kisses"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the sweet treats section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Skipping!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Lolli Poppins"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Lolli Poppins"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1413/SPKS1_SWEET-TREATS_Lolli-Poppins.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"As sweet as can be! I love smiling and making Shopkins laugh!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Candi Cotton"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the sweets section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Hairdressing"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T05"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Chee Zee"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Chee Zee"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1420/SPKS1_DAIRY_Chee-Zee.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A confident and passionate performer who loves taking centre stage and is a little bit crackers!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Dairy"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cheezey-B and Freezy Peazy"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the dairy aisle"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Rapping with my BFFs"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Swiss Miss"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Swiss Miss"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1419/SPKS1_DAIRY_Swiss-Miss.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A hilarious jokester (If they say my jokes are cheesy they're lying! ;) "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Dairy"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Tommy Ketchup"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the dairy case"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Stand up comedian "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Spilt Milk"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Spilt Milk"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1418/SPKS1_DAIRY_Spilt-Milk.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit of a klutz and a born risk-taker, I like to stir things up!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Dairy"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Breaky Crunch"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Dairy department"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Splashing about in the local pool"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Googy"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Googy"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1417/SPKS1_DAIRY_Googy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Clumsy and shy. They're always trying to get me to come out of my shell"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Dairy"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Split Milk"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Dairy department"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Juggling"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T06"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Pretz Elle"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Pretz-elle"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1427/SPKS1_PARTY-FOODS_Pretz-elle.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit scatter-brained maybe! But also cheeky and charming."</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Sally Shakes "</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the party section!"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Gymnastics"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Wobbles"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Wobbles"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1424/SPKS1_PARTY-FOODS_Wobbles.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit klutzy and a bit of a worry wart! But once she starts jiggling on the dance floor, no Shopkins can stop her! "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Snow Crush"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the party section!"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Hip Hop Dancing"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Wishes"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Wishes"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1423/SPKS1_PARTY-FOODS_Wishes.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A real party starter and a bit of an attention seeker!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Soda Pops"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the party aisle"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Singing a tune for anyone who’ll listen! "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Fairy Crumbs"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Fairy Crumbs"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1426/SPKS1_PARTY-FOODS_Fairy-Crumbs.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Cute and colourful with a love for all things pink and purple!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Soda Pops"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Party food aisle"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Parties!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Cheezey B"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Cheezey B"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1425/SPKS1_PARTY-FOODS_Cheezy-B.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A Shopkin who never stops rhyming! I love to rap, so let's all clap, take off your hat and dat is dat…ok not my best work hehe"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Freezy Peazy and Chee Zee"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Party food"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Rapping with my BFFs"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Soda Pops"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Soda Pops"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1422/SPKS1_PARTY-FOODS_Soda-Pops.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Super bubbly and sweet! I add fizz to any party!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Rainbow Bite"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Where-ever there's a party!"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Shaking it on the dance floor!"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T07"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Scrubs"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Scrubs"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1428/SPKS1_HEALTH-BEAUTY_Scrubs.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Chatty and always grinning. I love to make people smile!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Toofs"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the beauty section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Tubing "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Lippy Lips"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Lippy Lips"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1431/SPKS1_HEALTH-BEAUTY_Lippy-Lips.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A fashionista with sassy style and maybe a bit bossy!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Apple Blossom and Polly Polish"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Health and beauty section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Shopping of course!"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Shampy"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Shampy"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1429/SPKS1_HEALTH-BEAUTY_Shampy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Err is that Silky or Shampy? We never know! Heeheehee"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Silky"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the Beauty Section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Swimming"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Silky"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Silky"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1430/SPKS1_HEALTH-BEAUTY_Silky.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Partners in crime with Shampy with a great sense of style"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Shampy"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the beauty section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Swimming"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Poly Poshish"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Polly Polish"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1432/SPKS1_HEALTH-BEAUTY_Polly-Polish.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A fashion risk-taker who's always trying new colours and styles"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Lippy Lips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"In the beauty section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Shopping of course!!"</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"R01-S02-T08"</span>:<span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Ice Cream Dream"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Ice Cream Dream"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1433/SPKS1_FROZEN_Ice-Cream.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Scoops of fun but maybe a bit of a headache at times! Lol"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cheeky Chocolate"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Frozen section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Igloo building"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Popsi Cool"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Popsi Cool"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1434/SPKS1_FROZEN_Popsi-Cool.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Cold on the outside but warm and gooey on the inside!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cool Cube"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"The frozen food section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Ice Skating"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Yo Chi"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Yo Chi"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1436/SPKS1_FROZEN_Yo-Chi-.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Well cultured and different each day!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Melonie Pips"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Frozen section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Swirling around the dance floor"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Cool Cube"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Cool Cube"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1437/SPKS1_FROZEN_Cool-Cube.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A bit of a snow bunny, who hates hot weather. Seriously. "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Snow Crush"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"The frozen food section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Snowboarding, skiing, sledding and ice-Skating"</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Snow Crush"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Snow Crush"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1435/SPKS1_FROZEN_Snow-Crush.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"A snowkin builder extraordinaire!!"</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Popsi Cool"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"Frozen section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Snowkin building and curling "</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-s">"id"</span>:<span class="pl-s">"Freezy Peazy"</span><span class="pl-kos">,</span><span class="pl-s">"name"</span>:<span class="pl-s">"Freezy Peazy"</span><span class="pl-kos">,</span><span class="pl-s">"imageUrl"</span>:<span class="pl-s">"/media/1438/SPKS1_FROZEN_Freezy-Peazy.png"</span><span class="pl-kos">,</span><span class="pl-s">"bio"</span>:<span class="pl-s">"Super cool and the best rapper in the pod. "</span><span class="pl-kos">,</span><span class="pl-s">"theName"</span>:<span class="pl-s">"Frozen"</span><span class="pl-kos">,</span><span class="pl-s">"theTeam"</span>:<span class="pl-s">""</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsBFF"</span>:<span class="pl-s">"Cheezey-B and Chee Zee"</span><span class="pl-kos">,</span><span class="pl-s">"shopkinsHangout"</span>:<span class="pl-s">"The frozen food section"</span><span class="pl-kos">,</span><span class="pl-s">"favouriteHobby"</span>:<span class="pl-s">"Rapping with my BFFs"</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">_navList</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-s">"Shopkins"</span>:<span class="pl-kos">{</span><span class="pl-s">"Season 2"</span>:<span class="pl-kos">[</span><span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"Homewares"</span><span class="pl-kos">,</span><span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"Cleaning and Laundry"</span><span class="pl-kos">,</span><span class="pl-s">"Shoes"</span><span class="pl-kos">,</span><span class="pl-s">"Baby"</span><span class="pl-kos">,</span><span class="pl-s">"Limited Edition"</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-s">"Season 1"</span>:<span class="pl-kos">[</span><span class="pl-s">"Fruit and Veg"</span><span class="pl-kos">,</span><span class="pl-s">"Pantry"</span><span class="pl-kos">,</span><span class="pl-s">"Bakery"</span><span class="pl-kos">,</span><span class="pl-s">"Sweet Treats"</span><span class="pl-kos">,</span><span class="pl-s">"Dairy"</span><span class="pl-kos">,</span><span class="pl-s">"Party Food"</span><span class="pl-kos">,</span><span class="pl-s">"Health and Beauty"</span><span class="pl-kos">,</span><span class="pl-s">"Frozen"</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-ent">script</span><span class="pl-kos">></span></pre></div> | <p dir="auto">May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).</p>
<p dir="auto">Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.</p> | 1 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/8245/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/8245/</a></p>
<p dir="auto">Failed: [k8s.io] Load capacity [Feature:Performance] should be able to handle 30 pods per node {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/load.go:71
Expected
<int>: 1
not to be >
<int>: 0"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/load.go:71
Expected
<int>: 1
not to be >
<int>: 0
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157557108" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26544" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26544/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26544">#26544</a></p> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-5-gce/4982/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-5-gce/4982/</a></p>
<p dir="auto">Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:150
There should be no high-latency requests
Expected
<int>: 2
not to be >
<int>: 0"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:150
There should be no high-latency requests
Expected
<int>: 2
not to be >
<int>: 0
</code></pre></div> | 1 |
<p dir="auto">npm run build -> (next build) is working locally but on the production web server with the same code it gives the following error log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v8.6.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v8.6.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/bin/node-gyp-bin:/var/www/app/frontend/node_modules/.bin:/root/.nvm/versions/node/v8.6.0/bin:/root/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle [email protected]~build: CWD: /var/www/app/frontend
10 silly lifecycle [email protected]~build: Args: [ '-c', 'next build' ]
11 silly lifecycle [email protected]~build: Returned: code: 137 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `next build`
13 verbose stack Exit status 137
13 verbose stack at EventEmitter.<anonymous> (/root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:927:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /var/www/app/frontend
16 verbose Linux 4.4.0-71-generic
17 verbose argv "/root/.nvm/versions/node/v8.6.0/bin/node" "/root/.nvm/versions/node/v8.6.0/bin/npm" "run" "build"
18 verbose node v8.6.0
19 verbose npm v5.4.2
20 error code ELIFECYCLE
21 error errno 137
22 error [email protected] build: `next build`
22 error Exit status 137
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 137, true ]"><pre class="notranslate"><code class="notranslate">0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v8.6.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v8.6.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/bin/node-gyp-bin:/var/www/app/frontend/node_modules/.bin:/root/.nvm/versions/node/v8.6.0/bin:/root/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle [email protected]~build: CWD: /var/www/app/frontend
10 silly lifecycle [email protected]~build: Args: [ '-c', 'next build' ]
11 silly lifecycle [email protected]~build: Returned: code: 137 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `next build`
13 verbose stack Exit status 137
13 verbose stack at EventEmitter.<anonymous> (/root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v8.6.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:927:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /var/www/app/frontend
16 verbose Linux 4.4.0-71-generic
17 verbose argv "/root/.nvm/versions/node/v8.6.0/bin/node" "/root/.nvm/versions/node/v8.6.0/bin/npm" "run" "build"
18 verbose node v8.6.0
19 verbose npm v5.4.2
20 error code ELIFECYCLE
21 error errno 137
22 error [email protected] build: `next build`
22 error Exit status 137
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 137, true ]
</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<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>3.2.2</td>
</tr>
<tr>
<td>node</td>
<td>8.6.0</td>
</tr>
<tr>
<td>OS</td>
<td>ubuntu 16.04</td>
</tr>
</tbody>
</table> | <p dir="auto">Here's the URL looks like,</p>
<p dir="auto"><a href="http://www.mydomain.com/suresh/450" rel="nofollow">www.mydomain.com/suresh/450</a></p>
<p dir="auto">Here <strong>suresh</strong> is parsed as "<strong>username</strong>" and <strong>450</strong> is parsed as "<strong>amount</strong>". Here's the <strong>server.js</strong> code<br>
`const express = require("express");<br>
const { parse } = require("url");<br>
const next = require("next");</p>
<p dir="auto">const dev = process.env.NODE_ENV !== "production";<br>
const app = next({ dev });<br>
const handle = app.getRequestHandler();</p>
<p dir="auto">app<br>
.prepare()<br>
.then(() => {<br>
const server = express();</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="server.get("/", (req, res) => {
return handle(req, res);
});
server.get("/get-link", (req, res) => {
return handle(req, res);
});
server.get("/:username/", (req, res) => {
const actualPage = "/processor";
const mergedQuery = Object.assign(
{},
{ reqQuery: req.query },
{ reqParams: req.params }
);
console.log('req', req);
console.log('cProps', cProps);
return app.render(req, res, actualPage, { cProps: mergedQuery });
});
server.get("/:username/:amount", (req, res) => {
const actualPage = "/processor";
const mergedQuery = Object.assign(
{},
{ reqQuery: req.query },
{ reqParams: req.params }
);
return app.render(req, res, actualPage, { cProps: mergedQuery });
});
server.get("*", (req, res) => {
return handle(req, res);
});
server.listen(3005, err => {
if (err) throw err;
console.log("> Ready on http://localhost:3005");
});"><pre class="notranslate"><code class="notranslate">server.get("/", (req, res) => {
return handle(req, res);
});
server.get("/get-link", (req, res) => {
return handle(req, res);
});
server.get("/:username/", (req, res) => {
const actualPage = "/processor";
const mergedQuery = Object.assign(
{},
{ reqQuery: req.query },
{ reqParams: req.params }
);
console.log('req', req);
console.log('cProps', cProps);
return app.render(req, res, actualPage, { cProps: mergedQuery });
});
server.get("/:username/:amount", (req, res) => {
const actualPage = "/processor";
const mergedQuery = Object.assign(
{},
{ reqQuery: req.query },
{ reqParams: req.params }
);
return app.render(req, res, actualPage, { cProps: mergedQuery });
});
server.get("*", (req, res) => {
return handle(req, res);
});
server.listen(3005, err => {
if (err) throw err;
console.log("> Ready on http://localhost:3005");
});
</code></pre></div>
<p dir="auto">})<br>
.catch(ex => {<br>
console.error(ex.stack);<br>
process.exit(1);<br>
});<br>
`<br>
In Dev mode, this URL <strong><a href="http://www.mydomain.com/suresh" rel="nofollow">www.mydomain.com/suresh</a></strong> and **<a href="http://www.mydomain.com/suresh/450**is" rel="nofollow">www.mydomain.com/suresh/450**is</a> working as expected, But after build and running in production its showing 404.</p>
<p dir="auto">Here's my package.json<br>
<code class="notranslate">{ "name": "stellar-me", "version": "1.0.0", "scripts": { "dev": "node server.js", "build": "next build", "start": "NODE_ENV=production next start" }, "dependencies": { "next": "5.0.0", "express": "4.16.2", "next-redux-wrapper": "^1.0.0", "react": "16.2.0", "react-dom": "16.2.0", "react-redux": "^5.0.1", "redux": "^3.6.0", "redux-devtools-extension": "^2.13.2", "redux-thunk": "^2.1.0", "stellar-sdk": "^0.8.0" }, "license": "ISC" } </code></p>
<p dir="auto">Please let me know whats happening.</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">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>6.10.3</td>
</tr>
<tr>
<td>OS</td>
<td>Ubuntu 16.04</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">When running ./configure on OS X with CUDA support enabled with bazel 0.3.1-homebrew, these errors occur:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD:692:1: no such package 'base': BUILD file not found on package path and referenced by '//tensorflow/core:ios_tensorflow_test_lib'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such package 'base': BUILD file not found on package path and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such target '//tensorflow/core:android_tensorflow_lib_lite_no_rtti_lite_runtime': target 'android_tensorflow_lib_lite_no_rtti_lite_runtime' not declared in package 'tensorflow/core' defined by /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such target '//tensorflow/core:android_proto_lib_no_rtti_lite_runtime': target 'android_proto_lib_no_rtti_lite_runtime' not declared in package 'tensorflow/core' defined by /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure."><pre class="notranslate"><code class="notranslate">ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD:692:1: no such package 'base': BUILD file not found on package path and referenced by '//tensorflow/core:ios_tensorflow_test_lib'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such package 'base': BUILD file not found on package path and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such target '//tensorflow/core:android_tensorflow_lib_lite_no_rtti_lite_runtime': target 'android_tensorflow_lib_lite_no_rtti_lite_runtime' not declared in package 'tensorflow/core' defined by /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/kernels/BUILD:2211:1: no such target '//tensorflow/core:android_proto_lib_no_rtti_lite_runtime': target 'android_proto_lib_no_rtti_lite_runtime' not declared in package 'tensorflow/core' defined by /Users/jmhodges/src/github.com/tensorflow/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/core/kernels:android_tensorflow_kernels_no_rtti_lite_runtime'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.
</code></pre></div>
<p dir="auto">This seems to be because of targets like "ios_tensorflow_test_lib" and, so on, depending on a <code class="notranslate">//base</code> and <code class="notranslate">//tensorflow/core:android_tensorflow_lib_lite_no_rtti_lite_runtime</code> that do not exist.</p>
<p dir="auto">Off hand, I'm not able to figure out what this was trying to refer to. Perhaps it used to exist?</p> | <p dir="auto">I am having trouble configuring the latest master branch (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b/hovercard" href="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b"><tt>dbe7ee0</tt></a>). When I run <code class="notranslate">./configure</code>, I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.
Configuration finished"><pre class="notranslate"><code class="notranslate">ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.
Configuration finished
</code></pre></div>
<p dir="auto">To summarize, the dependencies that are included inside the <code class="notranslate">if_android</code> and <code class="notranslate">if_ios</code> are not found. They don't exist in the repository, so that is not that surprising. What is more surprising though is that my vanilla installation is not returning empty lists when <code class="notranslate">if_android</code> is called. I haven't looked into how those functions work, so not sure why that is happening.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Setup: CentOS, Bazel 0.3.1, CUDA 7.5, CuDNN 5.1, Tensorflow master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b/hovercard" href="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b"><tt>dbe7ee0</tt></a>)</p>
<p dir="auto">I run <code class="notranslate">configure</code> and set it up for GPU support. Actually, I don't think this is criticial, but first I had to open up <code class="notranslate">configure</code> and add <code class="notranslate">--output_base=...</code> on the two calls to <code class="notranslate">bazel</code>, since my setup requires a custom cache directory.</p>
<h3 dir="auto">Fix</h3>
<p dir="auto">The <code class="notranslate">if_...</code> lines were added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/ed87884e50e1a50f7dc7b36dc7a7ff225442bee0/hovercard" href="https://github.com/tensorflow/tensorflow/commit/ed87884e50e1a50f7dc7b36dc7a7ff225442bee0"><tt>ed87884</tt></a>, so a fix that I know works is to use its parent commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/7705791619f5e851687e9a63b4315087e189f8be/hovercard" href="https://github.com/tensorflow/tensorflow/commit/7705791619f5e851687e9a63b4315087e189f8be"><tt>7705791</tt></a>.</p> | 1 |
<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"> 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"> 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"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery. (<b>Note on this</b> -- I am using the latest version of Celery from Pip, though I am not building/installing from source)</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" checked=""> 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" checked=""> 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" checked=""> 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" checked=""> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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 & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 5.1.2</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 -> celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.6
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit
kernel version:5.10.47-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:rpc://redis:6379/
broker_url: 'amqp://changeme:********@rabbitmq:5672//'
result_backend: 'rpc://redis:6379/'
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -> celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.6
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit
kernel version:5.10.47-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:rpc://redis:6379/
broker_url: 'amqp://changeme:********@rabbitmq:5672//'
result_backend: 'rpc://redis:6379/'
deprecated_settings: None
</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.9</li>
<li><strong>Minimal Celery Version</strong>: 5.1.2</li>
<li><strong>Minimal Kombu Version</strong>: 5.1.0</li>
<li><strong>Minimal Broker Version</strong>: RabbitMQ 3.9.5</li>
<li><strong>Minimal Result Backend Version</strong>: Redis 6.2.5</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: Debian Bullseye (official <a href="https://github.com/docker-library/python/blob/f154e5d1c8f5b582aa2fd782df880b9cc96bb431/3.9/bullseye/slim/Dockerfile">python3.9-slim</a> Docker image)</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==5.0.6
appdirs==1.4.4
beautifulsoup4==4.9.3
billiard==3.6.4.0
bs4==0.0.1
cachetools==4.2.2
celery==5.1.2
certifi==2021.5.30
charset-normalizer==2.0.4
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
cssselect==1.1.0
DateTime==4.3
fake-useragent==0.1.11
future==0.18.2
google-api-core==2.0.0
google-api-python-client==2.17.0
google-auth==2.0.1
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.5
googleapis-common-protos==1.53.0
httplib2==0.19.1
idna==3.2
importlib-metadata==4.6.4
kombu==5.1.0
lxml==4.6.3
oauthlib==3.1.1
parse==1.19.0
prompt-toolkit==3.0.20
protobuf==3.17.3
pyArango==1.3.5
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyee==8.2.2
pyparsing==2.4.7
pyppeteer==0.2.6
pyquery==1.4.3
pytz==2021.1
requests==2.26.0
requests-html==0.10.0
requests-oauthlib==1.3.0
rsa==4.7.2
six==1.15.
soupsieve==2.2.1
tqdm==4.62.1
uritemplate==3.0.1
urllib3==1.26.6
vine==5.0.0
w3lib==1.22.0
wcwidth==0.2.5
websockets==9.1
zipp==3.5.0
zope.interface==5.4.0"><pre class="notranslate"><code class="notranslate">amqp==5.0.6
appdirs==1.4.4
beautifulsoup4==4.9.3
billiard==3.6.4.0
bs4==0.0.1
cachetools==4.2.2
celery==5.1.2
certifi==2021.5.30
charset-normalizer==2.0.4
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
cssselect==1.1.0
DateTime==4.3
fake-useragent==0.1.11
future==0.18.2
google-api-core==2.0.0
google-api-python-client==2.17.0
google-auth==2.0.1
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.5
googleapis-common-protos==1.53.0
httplib2==0.19.1
idna==3.2
importlib-metadata==4.6.4
kombu==5.1.0
lxml==4.6.3
oauthlib==3.1.1
parse==1.19.0
prompt-toolkit==3.0.20
protobuf==3.17.3
pyArango==1.3.5
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyee==8.2.2
pyparsing==2.4.7
pyppeteer==0.2.6
pyquery==1.4.3
pytz==2021.1
requests==2.26.0
requests-html==0.10.0
requests-oauthlib==1.3.0
rsa==4.7.2
six==1.15.
soupsieve==2.2.1
tqdm==4.62.1
uritemplate==3.0.1
urllib3==1.26.6
vine==5.0.0
w3lib==1.22.0
wcwidth==0.2.5
websockets==9.1
zipp==3.5.0
zope.interface==5.4.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<summary><b>My Full Dockerfile:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.9-slim
# Set bash to default shell
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Do not prompt apt for user input when installing packages
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt update && \
apt install -y \
build-essential supervisor software-properties-common \
gconf-service libasound2 libatk1.0-0 libc6 libcairo2 \
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 \
libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 \
libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \
libxrender1 libxss1 libxtst6 ca-certificates \
fonts-liberation libnss3 lsb-release xdg-utils wget && \
apt dist-upgrade -y
ENV VIRTUAL_ENV=/venv
RUN python3.9 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Upgrade pip
RUN python -m pip install --upgrade pip
# Install python packages
RUN pip install --no-dependencies \
amqp==5.0.6 \
appdirs==1.4.4 \
beautifulsoup4==4.9.3 \
billiard==3.6.4.0 \
bs4==0.0.1 \
cachetools==4.2.2 \
celery==5.1.2 \
certifi==2021.5.30 \
charset-normalizer==2.0.4 \
click==7.1.2 \
click-didyoumean==0.0.3 \
click-plugins==1.1.1 \
click-repl==0.2.0 \
cssselect==1.1.0 \
DateTime==4.3 \
fake-useragent==0.1.11 \
future==0.18.2 \
google-api-core==2.0.0 \
google-api-python-client==2.17.0 \
google-auth==2.0.1 \
google-auth-httplib2==0.1.0 \
google-auth-oauthlib==0.4.5 \
googleapis-common-protos==1.53.0 \
httplib2==0.19.1 \
idna==3.2 \
importlib-metadata==4.6.4 \
kombu==5.1.0 \
lxml==4.6.3 \
oauthlib==3.1.1 \
parse==1.19.0 \
prompt-toolkit==3.0.20 \
protobuf==3.17.3 \
pyArango==1.3.5 \
pyasn1==0.4.8 \
pyasn1-modules==0.2.8 \
pyee==8.2.2 \
pyparsing==2.4.7 \
pyppeteer==0.2.6 \
pyquery==1.4.3 \
pytz==2021.1 \
requests==2.26.0 \
requests-html==0.10.0 \
requests-oauthlib==1.3.0 \
rsa==4.7.2 \
six==1.15.0 \
soupsieve==2.2.1 \
tqdm==4.62.1 \
uritemplate==3.0.1 \
urllib3==1.26.6 \
vine==5.0.0 \
w3lib==1.22.0 \
wcwidth==0.2.5 \
websockets==9.1 \
zipp==3.5.0 \
zope.interface==5.4.0
# Run pyppeteer download/install chromium script
RUN pyppeteer-install
# Add supervisord app config files
ADD conf/supervise-* /etc/supervisor/conf.d/
# Add app files
RUN mkdir /app
ADD producer.py /app/producer.py
ADD consumer.py /app/consumer.py
ADD db /app/db
# Let 'er rip
CMD /usr/bin/supervisord -n"><pre class="notranslate"><code class="notranslate">FROM python:3.9-slim
# Set bash to default shell
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Do not prompt apt for user input when installing packages
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt update && \
apt install -y \
build-essential supervisor software-properties-common \
gconf-service libasound2 libatk1.0-0 libc6 libcairo2 \
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 \
libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 \
libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \
libxrender1 libxss1 libxtst6 ca-certificates \
fonts-liberation libnss3 lsb-release xdg-utils wget && \
apt dist-upgrade -y
ENV VIRTUAL_ENV=/venv
RUN python3.9 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Upgrade pip
RUN python -m pip install --upgrade pip
# Install python packages
RUN pip install --no-dependencies \
amqp==5.0.6 \
appdirs==1.4.4 \
beautifulsoup4==4.9.3 \
billiard==3.6.4.0 \
bs4==0.0.1 \
cachetools==4.2.2 \
celery==5.1.2 \
certifi==2021.5.30 \
charset-normalizer==2.0.4 \
click==7.1.2 \
click-didyoumean==0.0.3 \
click-plugins==1.1.1 \
click-repl==0.2.0 \
cssselect==1.1.0 \
DateTime==4.3 \
fake-useragent==0.1.11 \
future==0.18.2 \
google-api-core==2.0.0 \
google-api-python-client==2.17.0 \
google-auth==2.0.1 \
google-auth-httplib2==0.1.0 \
google-auth-oauthlib==0.4.5 \
googleapis-common-protos==1.53.0 \
httplib2==0.19.1 \
idna==3.2 \
importlib-metadata==4.6.4 \
kombu==5.1.0 \
lxml==4.6.3 \
oauthlib==3.1.1 \
parse==1.19.0 \
prompt-toolkit==3.0.20 \
protobuf==3.17.3 \
pyArango==1.3.5 \
pyasn1==0.4.8 \
pyasn1-modules==0.2.8 \
pyee==8.2.2 \
pyparsing==2.4.7 \
pyppeteer==0.2.6 \
pyquery==1.4.3 \
pytz==2021.1 \
requests==2.26.0 \
requests-html==0.10.0 \
requests-oauthlib==1.3.0 \
rsa==4.7.2 \
six==1.15.0 \
soupsieve==2.2.1 \
tqdm==4.62.1 \
uritemplate==3.0.1 \
urllib3==1.26.6 \
vine==5.0.0 \
w3lib==1.22.0 \
wcwidth==0.2.5 \
websockets==9.1 \
zipp==3.5.0 \
zope.interface==5.4.0
# Run pyppeteer download/install chromium script
RUN pyppeteer-install
# Add supervisord app config files
ADD conf/supervise-* /etc/supervisor/conf.d/
# Add app files
RUN mkdir /app
ADD producer.py /app/producer.py
ADD consumer.py /app/consumer.py
ADD db /app/db
# Let 'er rip
CMD /usr/bin/supervisord -n
</code></pre></div>
<p dir="auto"></p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<summary>Simple addition task with celery's "group" object, "send_task()", and "apply_async()"</summary>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python
from celery import Celery, group
import random
import os
app = Celery(
'consumer',
broker=f'''amqp://{os.getenv('RABBITMQ_DEFAULT_USER')}:{os.getenv('RABBITMQ_DEFAULT_PASS')}@{os.getenv('RABBITMQ_HOST')}:{os.getenv('RABBITMQ_PORT')}''',
backend='rpc://redis:6379'
)
@app.task(name='add')
def add(n1, n2):
return n1 + n2
def main():
# Build a group of 5 "add" tasks with two arguments, each of which are a random integer between 0 and 10
pool = group([app.send_task('add', (random.randint(0,10), random.randint(0,10))) for i in range(0,5)])
# Complete tasks asynchronously with .apply_async()
jobs = pool.apply_async() # .apply_async() raises an error in the drain_events_until method in celery.backends.asynchronous
# Get results of tasks
results = jobs.join()
main()"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>, <span class="pl-s1">group</span>
<span class="pl-k">import</span> <span class="pl-s1">random</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(
<span class="pl-s">'consumer'</span>,
<span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">f'''amqp://<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">os</span>.<span class="pl-en">getenv</span>(<span class="pl-s">'RABBITMQ_DEFAULT_USER'</span>)<span class="pl-kos">}</span></span>:<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">os</span>.<span class="pl-en">getenv</span>(<span class="pl-s">'RABBITMQ_DEFAULT_PASS'</span>)<span class="pl-kos">}</span></span>@<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">os</span>.<span class="pl-en">getenv</span>(<span class="pl-s">'RABBITMQ_HOST'</span>)<span class="pl-kos">}</span></span>:<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">os</span>.<span class="pl-en">getenv</span>(<span class="pl-s">'RABBITMQ_PORT'</span>)<span class="pl-kos">}</span></span>'''</span>,
<span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s">'rpc://redis:6379'</span>
)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'add'</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">add</span>(<span class="pl-s1">n1</span>, <span class="pl-s1">n2</span>):
<span class="pl-k">return</span> <span class="pl-s1">n1</span> <span class="pl-c1">+</span> <span class="pl-s1">n2</span>
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-c"># Build a group of 5 "add" tasks with two arguments, each of which are a random integer between 0 and 10</span>
<span class="pl-s1">pool</span> <span class="pl-c1">=</span> <span class="pl-en">group</span>([<span class="pl-s1">app</span>.<span class="pl-en">send_task</span>(<span class="pl-s">'add'</span>, (<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>,<span class="pl-c1">10</span>), <span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>,<span class="pl-c1">10</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">0</span>,<span class="pl-c1">5</span>)])
<span class="pl-c"># Complete tasks asynchronously with .apply_async()</span>
<span class="pl-s1">jobs</span> <span class="pl-c1">=</span> <span class="pl-s1">pool</span>.<span class="pl-en">apply_async</span>() <span class="pl-c"># .apply_async() raises an error in the drain_events_until method in celery.backends.asynchronous</span>
<span class="pl-c"># Get results of tasks</span>
<span class="pl-s1">results</span> <span class="pl-c1">=</span> <span class="pl-s1">jobs</span>.<span class="pl-en">join</span>()
<span class="pl-en">main</span>()</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">The tasks are completed asynchronously and all resulting sums are saved as <code class="notranslate">results</code> (as such the program waits until all tasks are done before exiting).</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">A TypeError is raised in <code class="notranslate">celery/backends/asynchronous.py</code> because of an attempt to perform a mathematical calculation between unsupported types. I've done my best to trace this problem and have seen the argument <code class="notranslate">timeout</code> is set by default in <code class="notranslate">drain_events_until</code> to <code class="notranslate">None</code>. I'm wondering if this value is being accidentally set elsewhere in celery's code. I have also tried explicitly setting <code class="notranslate">timeout=None</code> when calling <code class="notranslate">apply_async</code> and the same error occurs.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/app/main.py", line 21, in main
jobs = pool.apply_async() # .apply_async() raises an error in the drain_events_until method in celery.backends.asynchronous
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1090, in apply_async
results = list(self._apply_tasks(tasks, producer, app, p,
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1182, in _apply_tasks
lookahead(tasks)
File "/venv/lib/python3.9/site-packages/celery/utils/functional.py", line 174, in lookahead
next(b, None)
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1157, in _prepared
task = from_dict(task, app=app)
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 134, in from_dict
typ = d.get('subtask_type')
File "/venv/lib/python3.9/site-packages/celery/result.py", line 223, in get
return self.backend.wait_for_pending(
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 199, in wait_for_pending
for _ in self._wait_for_pending(result, **kwargs):
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 265, in _wait_for_pending
for _ in self.drain_events_until(
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 51, in drain_events_until
if timeout and time.monotonic() - time_start >= timeout:
TypeError: '>=' not supported between instances of 'float' and 'str'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/app/main.py", line 21, in main
jobs = pool.apply_async() # .apply_async() raises an error in the drain_events_until method in celery.backends.asynchronous
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1090, in apply_async
results = list(self._apply_tasks(tasks, producer, app, p,
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1182, in _apply_tasks
lookahead(tasks)
File "/venv/lib/python3.9/site-packages/celery/utils/functional.py", line 174, in lookahead
next(b, None)
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 1157, in _prepared
task = from_dict(task, app=app)
File "/venv/lib/python3.9/site-packages/celery/canvas.py", line 134, in from_dict
typ = d.get('subtask_type')
File "/venv/lib/python3.9/site-packages/celery/result.py", line 223, in get
return self.backend.wait_for_pending(
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 199, in wait_for_pending
for _ in self._wait_for_pending(result, **kwargs):
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 265, in _wait_for_pending
for _ in self.drain_events_until(
File "/venv/lib/python3.9/site-packages/celery/backends/asynchronous.py", line 51, in drain_events_until
if timeout and time.monotonic() - time_start >= timeout:
TypeError: '>=' not supported between instances of 'float' and 'str'
</code></pre></div> | <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?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical enhancement to an existing 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/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed enhancements.</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 enhancement 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 in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h4 dir="auto">Related Issues</h4>
<p dir="auto"><a href="https://stackoverflow.com/questions/16493364/stopping-celery-task-gracefully" rel="nofollow">https://stackoverflow.com/questions/16493364/stopping-celery-task-gracefully</a></p>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<p dir="auto">Im using celery to execute python subprocess (Bash script ) in the background , My bash script will keep running until it receive <strong>CTRL+C</strong> to stop and do some <strong>cleaning in the OS</strong> , i tried to use</p>
<p dir="auto"><code class="notranslate">app.control.revoke('d9078da5-9915-40a0-bfa1-392c7bde42ed',terminate=True, signal='SIGINT')</code></p>
<p dir="auto">But the task keep running in the background , i read the docs and issues list and i could not get clear answer how i can send CTRL+C to the running worker telling him to stop the task using CTRL+C not terminating the task by killing the process because if i kill the process , my background process will break my OS ,</p>
<p dir="auto">Example :<br>
My background program (Bash script) doing some analytic and it will never stop until i click ctrl+c , when i click ctrl+c the bash script will restore all settings to default , in other hand if i kill the process the settings will remain changed .</p>
<p dir="auto"><strong>How i can send CTRL+C to the running process ?</strong></p>
<p dir="auto">I tried<br>
<a href="http://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks" rel="nofollow">http://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks</a><br>
<a href="https://docs.python.org/dev/library/signal.html#module-signal" rel="nofollow">https://docs.python.org/dev/library/signal.html#module-signal</a><br>
but nothing works .</p>
<p dir="auto">FYI , im using latest version of celery and python 3.7 with debain</p> | 0 |
<p dir="auto">It would be great if we could save the values we use in the customiser. If I need to re-customize one or two values a week after downloading I have to enter all of the custom values again</p> | <p dir="auto">The new site has the awesome customization screen, but unless you manage your bookmarks like a champ, there's no clear mapping between which custom builds on your system correspond to which URLs on the site. It would rock socks if the URL of the custom build was in the header comment in the generated source files.</p>
<p dir="auto">For example, In bootstrap.css, you could have something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/*!
* Bootstrap v3.0.0
* Custom build generated by http://getbootstrap.com/customize/?id=6277349
* "><pre class="notranslate"><code class="notranslate">/*!
* Bootstrap v3.0.0
* Custom build generated by http://getbootstrap.com/customize/?id=6277349
*
</code></pre></div> | 1 |
<p dir="auto">In many places we're checking the numpy version by comparing strings. This will break when numpy gets to 1.10. Need to fix this all over the codebase for the next release.</p> | <p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20963287" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/2992" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/2992/hovercard" href="https://github.com/scipy/scipy/pull/2992">#2992</a></p>
<p dir="auto">There are several places where version checking is done as follows:<br>
<code class="notranslate">np.version.short_version < '1.6'</code>. This will do the wrong thing if numpy ever gets to version 1.10 or higher.</p> | 1 |
<p dir="auto">I am looking at broadcast.jl and wondering what magic is occurring for me to use ".+" in an expression and have it work but when I type it by itself it gives an error.</p>
<p dir="auto">Why is it not like an addition where it's just a generic function?</p>
<p dir="auto">The goal of my exploration is to try and document the ".+" and ".*" broadcasting ability.</p> | <p dir="auto">When more than one array is used on <code class="notranslate">maximum</code>, the output is confusing.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> max([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
4
4
4
4
4
julia> maximum([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
1
2
3
2
1
julia> maximum([4,4,4,4,4],[5,2,3,2,1])
1-element Array{Int64,1}:
4
julia> maximum([4,4,4,4,4],[5,5,5,5,5])
5-element Array{Int64,1}:
4
4
4
4
4
"><pre class="notranslate"><code class="notranslate">julia> max([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
4
4
4
4
4
julia> maximum([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
1
2
3
2
1
julia> maximum([4,4,4,4,4],[5,2,3,2,1])
1-element Array{Int64,1}:
4
julia> maximum([4,4,4,4,4],[5,5,5,5,5])
5-element Array{Int64,1}:
4
4
4
4
4
</code></pre></div> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" req.respond({ body: renderApp(`
<body>
<script type="module">
import server from 'https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js';
console.warn(server)
</script>
</body>
`) });"><pre class="notranslate"><code class="notranslate"> req.respond({ body: renderApp(`
<body>
<script type="module">
import server from 'https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js';
console.warn(server)
</script>
</body>
`) });
</code></pre></div>
<p dir="auto">throws:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Download https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js
error: Uncaught TypeError: Cannot resolve extension for "https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js" with mediaType "Unknown".
at getExtension ($deno$/compiler/sourcefile.ts:42:13)
at new SourceFile ($deno$/compiler/sourcefile.ts:70:22)
at processImports ($deno$/compiler/imports.ts:122:45)
at async Object.processImports ($deno$/compiler/imports.ts:125:7)
at async compile (file:///home/runner/work/deno/deno/cli/js/compiler.ts:144:31)
at async tsCompilerOnMessage (file:///home/runner/work/deno/deno/cli/js/compiler.ts:359:22)
at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)"><pre class="notranslate"><code class="notranslate">Download https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js
error: Uncaught TypeError: Cannot resolve extension for "https://unpkg.com/browse/[email protected]/dist/html-dom-parser.min.js" with mediaType "Unknown".
at getExtension ($deno$/compiler/sourcefile.ts:42:13)
at new SourceFile ($deno$/compiler/sourcefile.ts:70:22)
at processImports ($deno$/compiler/imports.ts:122:45)
at async Object.processImports ($deno$/compiler/imports.ts:125:7)
at async compile (file:///home/runner/work/deno/deno/cli/js/compiler.ts:144:31)
at async tsCompilerOnMessage (file:///home/runner/work/deno/deno/cli/js/compiler.ts:359:22)
at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)
</code></pre></div>
<p dir="auto">import in string should not be evaluated</p> | <ul dir="auto">
<li>v0.20.0</li>
<li>Parser doesn't find declarations correctly?</li>
</ul>
<p dir="auto"><strong>[EDITED]</strong></p>
<p dir="auto">Previous example has unrelated mistake but I don' know which code can reproduce error I met.</p>
<p dir="auto">I met this error when I ran -> <a href="https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts" rel="nofollow">https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts</a><br>
That can be compiled with [email protected]. But got error below with v0.20.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:85:10)"><pre class="notranslate"><code class="notranslate">error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:85:10)
</code></pre></div> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<ul dir="auto">
<li>4.0.0-RC3</li>
</ul>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<ul dir="auto">
<li>ShardingSphere-Proxy</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<ul dir="auto">
<li>my sql : update profile set name='fakexuxin666 C', gold=0 where id=40584740;</li>
</ul>
<h3 dir="auto">Actual behavior</h3>
<ul dir="auto">
<li>java.lang.IllegalArgumentException: null<br>
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)<br>
at org.apache.shardingsphere.core.preprocessor.segment.table.TablesContext.getSingleTableName(TablesContext.java:110)<br>
at org.apache.shardingsphere.core.route.router.sharding.validator.impl.ShardingUpdateStatementValidator.validate(ShardingUpdateStatementValidator.java:50)<br>
at org.apache.shardingsphere.core.route.router.sharding.validator.impl.ShardingUpdateStatementValidator.validate(ShardingUpdateStatementValidator.java:46)<br>
at org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.route(ShardingRouter.java:95)<br>
at org.apache.shardingsphere.core.route.StatementRoutingEngine.route(StatementRoutingEngine.java:54)<br>
at org.apache.shardingsphere.core.SimpleQueryShardingEngine.route(SimpleQueryShardingEngine.java:58)<br>
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:91)<br>
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:74)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.doShardingRoute(StatementExecutorWrapper.java:78)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.route(StatementExecutorWrapper.java:64)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:77)<br>
at org.apache.shardingsphere.shardingproxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:54)<br>
at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:73)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at java.lang.Thread.run(Thread.java:748)</li>
</ul>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">config:</p>
<p dir="auto">dataSources:<br>
ds_0:<br>
url: jdbc:mysql://127.0.0.1:3306/aow_cian_02?serverTimezone=UTC&useSSL=false<br>
username: root<br>
password: 123456<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50<br>
ds_1:<br>
url: jdbc:mysql://127.0.0.1:3306/aow_cian_01?serverTimezone=UTC&useSSL=false<br>
username: root<br>
password: 123456<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50</p>
<p dir="auto">shardingRule:<br>
tables:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="profile:
actualDataNodes: ds_${0..1}.profile
databaseStrategy:
standard:
shardingColumn: id
preciseAlgorithmClassName: com.idreamsky.shardingalgorithm.ProfileIdShardingAlgorithm"><pre class="notranslate"><code class="notranslate">profile:
actualDataNodes: ds_${0..1}.profile
databaseStrategy:
standard:
shardingColumn: id
preciseAlgorithmClassName: com.idreamsky.shardingalgorithm.ProfileIdShardingAlgorithm
</code></pre></div>
<p dir="auto">bindingTables:<br>
- account,profile,<br>
defaultDataSourceName: ds_0<br>
defaultDatabaseStrategy:<br>
none:<br>
defaultTableStrategy:<br>
none:</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">I execute the sql statement directly</p>
<p dir="auto">appear:<br>
line 1:7 mismatched input 'profile' expecting {'(', '{', TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}<br>
line 1:7 mismatched input 'profile' expecting {'(', '{', TRUNCATE, POSITION, VIEW, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, CLONE, AGGREGATE, INSTALL, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, UNIX_TIMESTAMP, LOWER, UPPER, IDENTIFIER_}<br>
[ERROR] 11:42:34.097 [ShardingSphere-Command-3] o.a.s.s.f.c.CommandExecutorTask - Exception occur:<br>
java.lang.IllegalArgumentException: null<br>
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)<br>
at org.apache.shardingsphere.core.preprocessor.segment.table.TablesContext.getSingleTableName(TablesContext.java:110)<br>
at org.apache.shardingsphere.core.route.router.sharding.validator.impl.ShardingUpdateStatementValidator.validate(ShardingUpdateStatementValidator.java:50)<br>
at org.apache.shardingsphere.core.route.router.sharding.validator.impl.ShardingUpdateStatementValidator.validate(ShardingUpdateStatementValidator.java:46)<br>
at org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.route(ShardingRouter.java:95)<br>
at org.apache.shardingsphere.core.route.StatementRoutingEngine.route(StatementRoutingEngine.java:54)<br>
at org.apache.shardingsphere.core.SimpleQueryShardingEngine.route(SimpleQueryShardingEngine.java:58)<br>
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:91)<br>
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:74)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.doShardingRoute(StatementExecutorWrapper.java:78)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.route(StatementExecutorWrapper.java:64)<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:77)<br>
at org.apache.shardingsphere.shardingproxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:54)<br>
at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:73)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at java.lang.Thread.run(Thread.java:748)</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto">When use openGauss, proxy can't start up.</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">master <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/a26bae221684c984aa20f90810e749a40f8044a2/hovercard" href="https://github.com/apache/shardingsphere/commit/a26bae221684c984aa20f90810e749a40f8044a2"><tt>a26bae2</tt></a></p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">proxy normal start-up</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">proxy will thrown exception</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO ] 2022-05-24 09:56:23.694 [main] o.a.s.d.p.a.e.AbstractLifecycleExecutor - start lifecycle executor: org.apache.shardingsphere.data.pipeline.core.execute.PipelineJobExecutor@5f0a2638
[INFO ] 2022-05-24 09:56:23.705 [main] o.a.s.d.p.s.r.RuleAlteredJobWorker - worker initialization done
Exception in thread "Connection-1-ThreadExecutor" java.lang.StackOverflowError
at java.lang.String.indexOf(String.java:1503)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:143)
at sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
at java.net.URL.<init>(URL.java:622)
at java.net.URL.<init>(URL.java:490)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1311)
at sun.misc.URLClassPath.getResource(URLClassPath.java:249)
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.jooq.impl.DSL.using(DSL.java:492)
at org.apache.shardingsphere.sqltranslator.jooq.JooQSQLTranslator.translate(JooQSQLTranslator.java:36)
at org.apache.shardingsphere.sqltranslator.rule.SQLTranslatorRule.translate(SQLTranslatorRule.java:57)
at org.apache.shardingsphere.infra.rewrite.engine.GenericSQLRewriteEngine.rewrite(GenericSQLRewriteEngine.java:47)
at org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry.rewrite(SQLRewriteEntry.java:72)
at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.rewrite(KernelProcessor.java:59)
at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.generateExecutionContext(KernelProcessor.java:47)
at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDataba<x>seCommunicationEngine.execute(JDBCDataba<x>seCommunicationEngine.java:123)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.JDBCPortal.bind(JDBCPortal.java:131)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor.execute(PostgreSQLComBindExecutor.java:54)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedCommandExecutor.execute(PostgreSQLAggregatedCommandExecutor.java:41)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:107)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate">[INFO ] 2022-05-24 09:56:23.694 [main] o.a.s.d.p.a.e.AbstractLifecycleExecutor - start lifecycle executor: org.apache.shardingsphere.data.pipeline.core.execute.PipelineJobExecutor@5f0a2638
[INFO ] 2022-05-24 09:56:23.705 [main] o.a.s.d.p.s.r.RuleAlteredJobWorker - worker initialization done
Exception in thread "Connection-1-ThreadExecutor" java.lang.StackOverflowError
at java.lang.String.indexOf(String.java:1503)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:143)
at sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
at java.net.URL.<init>(URL.java:622)
at java.net.URL.<init>(URL.java:490)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1311)
at sun.misc.URLClassPath.getResource(URLClassPath.java:249)
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.jooq.impl.DSL.using(DSL.java:492)
at org.apache.shardingsphere.sqltranslator.jooq.JooQSQLTranslator.translate(JooQSQLTranslator.java:36)
at org.apache.shardingsphere.sqltranslator.rule.SQLTranslatorRule.translate(SQLTranslatorRule.java:57)
at org.apache.shardingsphere.infra.rewrite.engine.GenericSQLRewriteEngine.rewrite(GenericSQLRewriteEngine.java:47)
at org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry.rewrite(SQLRewriteEntry.java:72)
at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.rewrite(KernelProcessor.java:59)
at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.generateExecutionContext(KernelProcessor.java:47)
at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDataba<x>seCommunicationEngine.execute(JDBCDataba<x>seCommunicationEngine.java:123)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.JDBCPortal.bind(JDBCPortal.java:131)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.bind.PostgreSQLComBindExecutor.execute(PostgreSQLComBindExecutor.java:54)
at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.PostgreSQLAggregatedCommandExecutor.execute(PostgreSQLAggregatedCommandExecutor.java:41)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:107)
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
</code></pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">the proxy server.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: opengauss_db
server-lists: zk.host:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: true
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
provider:
type: ALL_PERMITTED
props:
max-connections-size-per-query: 1
kernel-executor-size: 16 # Infinite by default.
proxy-frontend-flush-threshold: 128 # The default value is 128.
proxy-hint-enabled: false
sql-show: true
check-table-metadata-enabled: false
show-process-list-enabled: false
proxy-backend-query-fetch-size: -1
check-duplicate-table-enabled: false
proxy-backend-executor-suitable: OLAP
proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
sql-federation-enabled: false
proxy-backend-driver-type: JDBC
proxy-frontend-database-protocol-type: openGauss"><pre class="notranslate"><code class="notranslate">mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: opengauss_db
server-lists: zk.host:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: true
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
provider:
type: ALL_PERMITTED
props:
max-connections-size-per-query: 1
kernel-executor-size: 16 # Infinite by default.
proxy-frontend-flush-threshold: 128 # The default value is 128.
proxy-hint-enabled: false
sql-show: true
check-table-metadata-enabled: false
show-process-list-enabled: false
proxy-backend-query-fetch-size: -1
check-duplicate-table-enabled: false
proxy-backend-executor-suitable: OLAP
proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
sql-federation-enabled: false
proxy-backend-driver-type: JDBC
proxy-frontend-database-protocol-type: openGauss
</code></pre></div>
<p dir="auto">it seems is <code class="notranslate">select version()</code> caused.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/101622833/170008917-bcd42c81-62f4-4a14-9188-7b75e2091ac2.png"><img width="1134" alt="image" src="https://user-images.githubusercontent.com/101622833/170008917-bcd42c81-62f4-4a14-9188-7b75e2091ac2.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">Can use scaling it reproduce it.</p>
<ol dir="auto">
<li>PostgreSQLGeneralScalingIT.class</li>
<li>add VM options</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/101622833/170009329-3dc658db-071a-4020-811b-19f11039f2a3.png"><img width="896" alt="image" src="https://user-images.githubusercontent.com/101622833/170009329-3dc658db-071a-4020-811b-19f11039f2a3.png" style="max-width: 100%;"></a></p>
<p dir="auto">Sometimes it will happend, but not everytime, but if retry several times, high probability of be reproduced, the error ci link is<br>
<a href="https://github.com/apache/shardingsphere/runs/6569411244?check_suite_focus=true">https://github.com/apache/shardingsphere/runs/6569411244?check_suite_focus=true</a></p>
<p dir="auto">Starting from line 2335<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/101622833/170011032-c0a1271d-1b8c-4a91-9934-36fe4473bc07.png"><img width="1147" alt="image" src="https://user-images.githubusercontent.com/101622833/170011032-c0a1271d-1b8c-4a91-9934-36fe4473bc07.png" style="max-width: 100%;"></a></p> | 0 |
<pre class="notranslate">The FreeBSD builder sporadically fails with (among other things) EADDRINUSE errors.
e.g.
Change 4e18f60442c2 broke the freebsd-386 build:
<a href="http://godashboard.appspot.com/log/c55befefa54d803c1b6327356ac0db98109203d2f462e9efb547462e7cc3f948" rel="nofollow">http://godashboard.appspot.com/log/c55befefa54d803c1b6327356ac0db98109203d2f462e9efb547462e7cc3f948</a>
... shows a net.Dial failing.
This test program (attached) will reproduce it after a few tries on a 64-bit FreeBSD
8.0-RELEASE-p4 box:
[bradfitz@ch ~]$ ./stress
2011/04/14 09:22:34 at 0
2011/04/14 09:22:34 at 100
2011/04/14 09:22:34 at 200
2011/04/14 09:22:34 Accept: dial tcp 127.0.0.1:57021: address already in use
Output also includes sometimes:
...
2011/04/14 09:16:49 at 9400
2011/04/14 09:16:49 at 9500
2011/04/14 09:16:49 at 9600
2011/04/14 09:16:49 Accept: dial tcp 127.0.0.1:38028: connection reset by peer</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/1694/0/stress.go" rel="nofollow">stress.go</a> (590 bytes)</li>
</ol> | <p dir="auto">by <strong>CMT.miniBill</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
===
1. Install go on a normal kernel
2. Try to run /usr/bin/go on a grsec kernel
3. It crashes believing to be out of memory
What is the expected output?
===
Go is a tool for managing Go source code.
Usage:
...
What do you see instead?
===
throw: out of memory (FixAlloc)
Which compiler are you using (5g, 6g, 8g, gccgo)?
===
I don't know
Which operating system are you using?
===
Gentoo Linux
Which version are you using? (run 'go version')
===
I can't run 'go version'. Eix reports 1.0.3
Please provide any additional information below.
this is the tail of a strace
mmap(NULL, 131072, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
-1 EPERM (Operation not permitted)
write(2, "throw: ", 7throw: ) = 7
write(2, "out of memory (FixAlloc)", 24out of memory (FixAlloc)) = 24
write(2, "\n", 1
) = 1
exit_group(2) = ?
+++ exited with 2 +++</pre> | 0 |
<ul dir="auto">
<li>[Y ] 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>[Y ] 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.5.9</li>
<li>Operating System version: WIN10</li>
<li>Java version: IBM 1.6</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">1,xml中配置若干条dubbo registry,同时指定consumer的registry为其中1个<br>
<dubbo:registry id="r1" ...../><br>
<dubbo:registry id="r2" ...../><br>
<dubbo:consumer registry="r1"/><br>
2,消费方通过<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>注解订阅一个服务</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">消费方通过registry r1正常订阅</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">消费方订阅时报错No such any registry to refer service in consumer xxxxx</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.0及以上</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>2.5.3版本通过javassist动态加载class,没有任何问题</li>
<li>2.6.0及以上版本通过javassist加载class,在idea内启动项目没有问题,但是通过springboot java -jar启动后会报javassist.NotFoundException异常。</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Caused by: javassist.NotFoundException: com.alibaba.dubbo.common.bytecode.Wrapper<br>
at javassist.ClassPool.get(ClassPool.java:452)<br>
at com.alibaba.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:263)</p>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">无法正常加载业务class<br>
What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<p dir="auto">Spotted on the dashboard, from freebsd-386, <a href="http://build.golang.org/log/57659ae3bfad2299f82348b400aa9528ad20d8f6" rel="nofollow">http://build.golang.org/log/57659ae3bfad2299f82348b400aa9528ad20d8f6</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal error: unexpected signal during runtime execution
[signal 0xa code=0xc addr=0x2832e000 pc=0x8054f6b]
runtime stack:
runtime.throw(0x8249428, 0x2a)
/tmp/buildlet-scatch781387312/go/src/runtime/panic.go:543 +0x79
runtime.sigpanic()
/tmp/buildlet-scatch781387312/go/src/runtime/sigpanic_unix.go:12 +0x50
runtime.gcmarkwb_m(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:73 +0xab
runtime.writebarrierptr_nostore1.func1()
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:100 +0x111
runtime.systemstack(0x38421f60)
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:283 +0x77
runtime.writebarrierptr_nostore1(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:101 +0x50
runtime.writebarrierptr(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:124 +0x5b
runtime.acquirep(0x41a8b400)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:2793 +0x6e
runtime.stoplockedm()
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1286 +0x11e
runtime.schedule()
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1577 +0x5d
runtime.goschedImpl(0x383ef080)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1700 +0xf1
runtime.gosched_m(0x383ef080)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1708 +0x33
runtime.mcall(0x38421fec)
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:210 +0x43
goroutine 62 [runnable, locked to thread]:
runtime.Gosched()
/tmp/buildlet-scatch781387312/go/src/runtime/proc.go:166 +0x10 fp=0x3840afd0 sp=0x3840afc8
runtime/pprof_test.TestTraceStress.func4(0x41a9d140)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:141 +0x8f fp=0x3840afe8 sp=0x3840afd0
runtime.goexit()
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:1636 +0x1 fp=0x3840afec sp=0x3840afe8
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:144 +0x36f
goroutine 1 [chan receive]:
testing.RunTests(0x8263e28, 0x82fe260, 0xe, 0xe, 0x583ef001)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:561 +0x875
testing.(*M).Run(0x41ab1f9c, 0x20)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:490 +0x65
main.main()
runtime/pprof/_test/_testmain.go:82 +0xfd
goroutine 58 [runnable]:
runtime/pprof_test.TestTraceStress(0x38403f20)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:149 +0x3ad
testing.tRunner(0x38403f20, 0x82fe2e4)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:452 +0x8c
created by testing.RunTests
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:560 +0x843
goroutine 60 [syscall]:
syscall.Syscall(0x5, 0x3840a7cf, 0x1, 0x1, 0x83024e0, 0x83024e0, 0x80857da)
/tmp/buildlet-scatch781387312/go/src/syscall/asm_freebsd_386.s:20 +0x5
syscall.read(0x5, 0x3840a7cf, 0x1, 0x1, 0x3f064070, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/syscall/zsyscall_freebsd_386.go:890 +0x50
syscall.Read(0x5, 0x3840a7cf, 0x1, 0x1, 0x3844f500, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/syscall/syscall_unix.go:160 +0x46
os.(*File).read(0x38412620, 0x3840a7cf, 0x1, 0x1, 0x3f064070, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/os/file_unix.go:211 +0x6c
os.(*File).Read(0x38412620, 0x3840a7cf, 0x1, 0x1, 0x0, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/os/file.go:95 +0x6c
runtime/pprof_test.TestTraceStress.func3(0x38412620, 0x41a9d140, 0x3846f5c0)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:120 +0x55
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:123 +0x1fb
goroutine 41 [select (no cases)]:
runtime/pprof_test.TestTraceSymbolize.func1()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:38 +0x18
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:39 +0x174
goroutine 42 [chan send (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func2()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:42 +0x38
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:43 +0x189
goroutine 43 [chan receive (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func3()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:46 +0x30
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:47 +0x19e
goroutine 61 [trace reader (blocked)]:
runtime.ReadTrace(0x0, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/runtime/trace.go:318 +0x1bf
runtime/pprof.StartTrace.func1(0x584ff998, 0x38403f80)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/pprof.go:629 +0x1b
created by runtime/pprof.StartTrace
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/pprof.go:635 +0x6a
goroutine 59 [chan receive]:
runtime/pprof_test.TestTraceStress.func1(0x41a9d140, 0x3846f5c0)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:104 +0x32
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:106 +0x9d
FAIL runtime/pprof 7.180s"><pre class="notranslate"><code class="notranslate">fatal error: unexpected signal during runtime execution
[signal 0xa code=0xc addr=0x2832e000 pc=0x8054f6b]
runtime stack:
runtime.throw(0x8249428, 0x2a)
/tmp/buildlet-scatch781387312/go/src/runtime/panic.go:543 +0x79
runtime.sigpanic()
/tmp/buildlet-scatch781387312/go/src/runtime/sigpanic_unix.go:12 +0x50
runtime.gcmarkwb_m(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:73 +0xab
runtime.writebarrierptr_nostore1.func1()
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:100 +0x111
runtime.systemstack(0x38421f60)
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:283 +0x77
runtime.writebarrierptr_nostore1(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:101 +0x50
runtime.writebarrierptr(0x3841459c, 0x583ef960)
/tmp/buildlet-scatch781387312/go/src/runtime/mbarrier.go:124 +0x5b
runtime.acquirep(0x41a8b400)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:2793 +0x6e
runtime.stoplockedm()
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1286 +0x11e
runtime.schedule()
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1577 +0x5d
runtime.goschedImpl(0x383ef080)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1700 +0xf1
runtime.gosched_m(0x383ef080)
/tmp/buildlet-scatch781387312/go/src/runtime/proc1.go:1708 +0x33
runtime.mcall(0x38421fec)
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:210 +0x43
goroutine 62 [runnable, locked to thread]:
runtime.Gosched()
/tmp/buildlet-scatch781387312/go/src/runtime/proc.go:166 +0x10 fp=0x3840afd0 sp=0x3840afc8
runtime/pprof_test.TestTraceStress.func4(0x41a9d140)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:141 +0x8f fp=0x3840afe8 sp=0x3840afd0
runtime.goexit()
/tmp/buildlet-scatch781387312/go/src/runtime/asm_386.s:1636 +0x1 fp=0x3840afec sp=0x3840afe8
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:144 +0x36f
goroutine 1 [chan receive]:
testing.RunTests(0x8263e28, 0x82fe260, 0xe, 0xe, 0x583ef001)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:561 +0x875
testing.(*M).Run(0x41ab1f9c, 0x20)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:490 +0x65
main.main()
runtime/pprof/_test/_testmain.go:82 +0xfd
goroutine 58 [runnable]:
runtime/pprof_test.TestTraceStress(0x38403f20)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:149 +0x3ad
testing.tRunner(0x38403f20, 0x82fe2e4)
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:452 +0x8c
created by testing.RunTests
/tmp/buildlet-scatch781387312/go/src/testing/testing.go:560 +0x843
goroutine 60 [syscall]:
syscall.Syscall(0x5, 0x3840a7cf, 0x1, 0x1, 0x83024e0, 0x83024e0, 0x80857da)
/tmp/buildlet-scatch781387312/go/src/syscall/asm_freebsd_386.s:20 +0x5
syscall.read(0x5, 0x3840a7cf, 0x1, 0x1, 0x3f064070, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/syscall/zsyscall_freebsd_386.go:890 +0x50
syscall.Read(0x5, 0x3840a7cf, 0x1, 0x1, 0x3844f500, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/syscall/syscall_unix.go:160 +0x46
os.(*File).read(0x38412620, 0x3840a7cf, 0x1, 0x1, 0x3f064070, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/os/file_unix.go:211 +0x6c
os.(*File).Read(0x38412620, 0x3840a7cf, 0x1, 0x1, 0x0, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/os/file.go:95 +0x6c
runtime/pprof_test.TestTraceStress.func3(0x38412620, 0x41a9d140, 0x3846f5c0)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:120 +0x55
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:123 +0x1fb
goroutine 41 [select (no cases)]:
runtime/pprof_test.TestTraceSymbolize.func1()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:38 +0x18
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:39 +0x174
goroutine 42 [chan send (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func2()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:42 +0x38
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:43 +0x189
goroutine 43 [chan receive (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func3()
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:46 +0x30
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_stack_test.go:47 +0x19e
goroutine 61 [trace reader (blocked)]:
runtime.ReadTrace(0x0, 0x0, 0x0)
/tmp/buildlet-scatch781387312/go/src/runtime/trace.go:318 +0x1bf
runtime/pprof.StartTrace.func1(0x584ff998, 0x38403f80)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/pprof.go:629 +0x1b
created by runtime/pprof.StartTrace
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/pprof.go:635 +0x6a
goroutine 59 [chan receive]:
runtime/pprof_test.TestTraceStress.func1(0x41a9d140, 0x3846f5c0)
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:104 +0x32
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch781387312/go/src/runtime/pprof/trace_test.go:106 +0x9d
FAIL runtime/pprof 7.180s
</code></pre></div> | <p dir="auto">Not sure this is the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58467559" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/9953" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/9953/hovercard" href="https://github.com/golang/go/issues/9953">#9953</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal error: unexpected signal during runtime execution
[signal 0xa code=0xc addr=0x28316794 pc=0x80548be]
runtime stack:
runtime.throw(0x82311a8, 0x2a)
/tmp/buildlet-scatch766897833/go/src/runtime/panic.go:543 +0x80
runtime.sigpanic()
/tmp/buildlet-scatch766897833/go/src/runtime/sigpanic_unix.go:12 +0x54
runtime.gcmarkwb_m(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:73 +0xae
runtime.writebarrierptr_nostore1.func1()
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:111 +0x115
runtime.systemstack(0x38409e88)
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:283 +0x77
runtime.writebarrierptr_nostore1(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:112 +0x44
runtime.writebarrierptr(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:135 +0x7f
runtime.writebarrierslice(0x587a100c, 0x587a1218, 0x689d, 0xfde8)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:211 +0x1e
runtime.traceEvent(0x383d6a0e, 0xffffffff, 0x38409f70, 0x1, 0x1)
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:502 +0x5af
runtime.traceGoStart()
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:770 +0x81
runtime.execute(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1214 +0xd7
runtime.schedule()
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1418 +0x76
runtime.goschedImpl(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1530 +0xd1
runtime.gosched_m(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1538 +0x33
runtime.mcall(0x383fc52c)
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:210 +0x43
goroutine 66 [running, locked to thread]:
runtime.Gosched()
/tmp/buildlet-scatch766897833/go/src/runtime/proc.go:135 +0x10 fp=0x4c2497d4 sp=0x4c2497cc
runtime/pprof_test.TestTraceStressStartStop.func1.5(0x383e6140)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:269 +0x4a fp=0x4c2497e8 sp=0x4c2497d4
runtime.goexit()
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:2431 +0x1 fp=0x4c2497ec sp=0x4c2497e8
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:272 +0x233
goroutine 1 [chan receive]:
testing.RunTests(0x82528e8, 0x82e7160, 0xe, 0xe, 0x1)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:561 +0x864
testing.(*M).Run(0x383e8120, 0x82fdac0)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:490 +0x65
main.main()
/tmp/go-build720119124/runtime/pprof/_test/_testmain.go:82 +0x171
goroutine 89 [semacquire]:
runtime.StopTrace()
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:184 +0x28
runtime/pprof.StopTrace()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:642 +0x18
runtime/pprof_test.TestTraceStressStartStop(0x4c23a240)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:356 +0x1c0
testing.tRunner(0x4c23a240, 0x82e71f0)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:452 +0xa0
created by testing.RunTests
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:560 +0x832
goroutine 40 [select (no cases)]:
runtime/pprof_test.TestTraceSymbolize.func1()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:38 +0x18
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:39 +0x179
goroutine 41 [chan send (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func2()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:42 +0x38
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:43 +0x18e
goroutine 42 [chan receive (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func3()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:46 +0x30
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:47 +0x1a3
goroutine 90 [runnable]:
runtime/pprof_test.TestTraceStressStartStop.func1(0x384690c0, 0x4c23a240)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:277 +0x271
created by runtime/pprof_test.TestTraceStressStartStop
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:348 +0x99
goroutine 113 [chan receive]:
runtime/pprof_test.TestTraceStressStartStop.func1.2(0x383e6140, 0x4c23c020)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:241 +0x32
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:243 +0xb7
goroutine 114 [syscall]:
syscall.Syscall(0x3, 0x3ea03fcf, 0x1, 0x1, 0x0, 0x58751218, 0x3128)
/tmp/buildlet-scatch766897833/go/src/syscall/asm_freebsd_386.s:20 +0x5
syscall.read(0x3, 0x3ea03fcf, 0x1, 0x1, 0xb23bb542, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/syscall/zsyscall_freebsd_386.go:890 +0x50
syscall.Read(0x3, 0x3ea03fcf, 0x1, 0x1, 0x58751000, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/syscall/syscall_unix.go:136 +0x46
os.(*File).read(0x4c23e000, 0x3ea03fcf, 0x1, 0x1, 0x9, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/os/file_unix.go:203 +0x6c
os.(*File).Read(0x4c23e000, 0x3ea03fcf, 0x1, 0x1, 0xfde8, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/os/file.go:95 +0x6c
runtime/pprof_test.TestTraceStressStartStop.func1.4(0x4c23e000, 0x383e6140, 0x4c23c020)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:256 +0x54
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:259 +0x202
goroutine 98 [select (no cases)]:
runtime/pprof_test.TestTraceStress.func9()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:205 +0x1d
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:206 +0x82c
goroutine 67 [trace reader (blocked)]:
runtime.ReadTrace(0x0, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:313 +0x1d2
runtime/pprof.StartTrace.func1(0x584e8918, 0x383eb440)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:629 +0x1b
created by runtime/pprof.StartTrace
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:635 +0x6a
FAIL runtime/pprof 7.732s"><pre class="notranslate"><code class="notranslate">fatal error: unexpected signal during runtime execution
[signal 0xa code=0xc addr=0x28316794 pc=0x80548be]
runtime stack:
runtime.throw(0x82311a8, 0x2a)
/tmp/buildlet-scatch766897833/go/src/runtime/panic.go:543 +0x80
runtime.sigpanic()
/tmp/buildlet-scatch766897833/go/src/runtime/sigpanic_unix.go:12 +0x54
runtime.gcmarkwb_m(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:73 +0xae
runtime.writebarrierptr_nostore1.func1()
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:111 +0x115
runtime.systemstack(0x38409e88)
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:283 +0x77
runtime.writebarrierptr_nostore1(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:112 +0x44
runtime.writebarrierptr(0x587a100c, 0x587a1218)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:135 +0x7f
runtime.writebarrierslice(0x587a100c, 0x587a1218, 0x689d, 0xfde8)
/tmp/buildlet-scatch766897833/go/src/runtime/mbarrier.go:211 +0x1e
runtime.traceEvent(0x383d6a0e, 0xffffffff, 0x38409f70, 0x1, 0x1)
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:502 +0x5af
runtime.traceGoStart()
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:770 +0x81
runtime.execute(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1214 +0xd7
runtime.schedule()
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1418 +0x76
runtime.goschedImpl(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1530 +0xd1
runtime.gosched_m(0x383d74a0)
/tmp/buildlet-scatch766897833/go/src/runtime/proc1.go:1538 +0x33
runtime.mcall(0x383fc52c)
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:210 +0x43
goroutine 66 [running, locked to thread]:
runtime.Gosched()
/tmp/buildlet-scatch766897833/go/src/runtime/proc.go:135 +0x10 fp=0x4c2497d4 sp=0x4c2497cc
runtime/pprof_test.TestTraceStressStartStop.func1.5(0x383e6140)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:269 +0x4a fp=0x4c2497e8 sp=0x4c2497d4
runtime.goexit()
/tmp/buildlet-scatch766897833/go/src/runtime/asm_386.s:2431 +0x1 fp=0x4c2497ec sp=0x4c2497e8
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:272 +0x233
goroutine 1 [chan receive]:
testing.RunTests(0x82528e8, 0x82e7160, 0xe, 0xe, 0x1)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:561 +0x864
testing.(*M).Run(0x383e8120, 0x82fdac0)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:490 +0x65
main.main()
/tmp/go-build720119124/runtime/pprof/_test/_testmain.go:82 +0x171
goroutine 89 [semacquire]:
runtime.StopTrace()
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:184 +0x28
runtime/pprof.StopTrace()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:642 +0x18
runtime/pprof_test.TestTraceStressStartStop(0x4c23a240)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:356 +0x1c0
testing.tRunner(0x4c23a240, 0x82e71f0)
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:452 +0xa0
created by testing.RunTests
/tmp/buildlet-scatch766897833/go/src/testing/testing.go:560 +0x832
goroutine 40 [select (no cases)]:
runtime/pprof_test.TestTraceSymbolize.func1()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:38 +0x18
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:39 +0x179
goroutine 41 [chan send (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func2()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:42 +0x38
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:43 +0x18e
goroutine 42 [chan receive (nil chan)]:
runtime/pprof_test.TestTraceSymbolize.func3()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:46 +0x30
created by runtime/pprof_test.TestTraceSymbolize
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_stack_test.go:47 +0x1a3
goroutine 90 [runnable]:
runtime/pprof_test.TestTraceStressStartStop.func1(0x384690c0, 0x4c23a240)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:277 +0x271
created by runtime/pprof_test.TestTraceStressStartStop
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:348 +0x99
goroutine 113 [chan receive]:
runtime/pprof_test.TestTraceStressStartStop.func1.2(0x383e6140, 0x4c23c020)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:241 +0x32
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:243 +0xb7
goroutine 114 [syscall]:
syscall.Syscall(0x3, 0x3ea03fcf, 0x1, 0x1, 0x0, 0x58751218, 0x3128)
/tmp/buildlet-scatch766897833/go/src/syscall/asm_freebsd_386.s:20 +0x5
syscall.read(0x3, 0x3ea03fcf, 0x1, 0x1, 0xb23bb542, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/syscall/zsyscall_freebsd_386.go:890 +0x50
syscall.Read(0x3, 0x3ea03fcf, 0x1, 0x1, 0x58751000, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/syscall/syscall_unix.go:136 +0x46
os.(*File).read(0x4c23e000, 0x3ea03fcf, 0x1, 0x1, 0x9, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/os/file_unix.go:203 +0x6c
os.(*File).Read(0x4c23e000, 0x3ea03fcf, 0x1, 0x1, 0xfde8, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/os/file.go:95 +0x6c
runtime/pprof_test.TestTraceStressStartStop.func1.4(0x4c23e000, 0x383e6140, 0x4c23c020)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:256 +0x54
created by runtime/pprof_test.TestTraceStressStartStop.func1
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:259 +0x202
goroutine 98 [select (no cases)]:
runtime/pprof_test.TestTraceStress.func9()
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:205 +0x1d
created by runtime/pprof_test.TestTraceStress
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/trace_test.go:206 +0x82c
goroutine 67 [trace reader (blocked)]:
runtime.ReadTrace(0x0, 0x0, 0x0)
/tmp/buildlet-scatch766897833/go/src/runtime/trace.go:313 +0x1d2
runtime/pprof.StartTrace.func1(0x584e8918, 0x383eb440)
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:629 +0x1b
created by runtime/pprof.StartTrace
/tmp/buildlet-scatch766897833/go/src/runtime/pprof/pprof.go:635 +0x6a
FAIL runtime/pprof 7.732s
</code></pre></div> | 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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: master</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">CallbackServiceCodec has a method referOrdestroyCallbackService,</p>
<p dir="auto">I think it would be referOrDestroyCallbackService better ,so we can understand the method mean more simple.</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</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/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.2</li>
<li>Operating System version: win7</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<h4 dir="auto">Problem one</h4>
<p dir="auto">I want to test pseudo cluster, I create service like follow code :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public interface DemoService
{
String sayHello(String name);
}"><pre class="notranslate"><code class="notranslate">public interface DemoService
{
String sayHello(String name);
}
</code></pre></div>
<p dir="auto">implement service interface as follows, both loadbalance strategies are random:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}"><pre class="notranslate"><code class="notranslate">@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl2 implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service2 -> Hello " + name;
}
}"><pre class="notranslate"><code class="notranslate">@Service(timeout = 5000, loadbalance="random")
public class DemoServiceImpl2 implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service2 -> Hello " + name;
}
}
</code></pre></div>
<p dir="auto">I start one appliction to test it.</p>
<h3 dir="auto">Expected Result</h3>
<ul dir="auto">
<li>random return "Service1" and "Service2" .</li>
</ul>
<h3 dir="auto">Actual Result</h3>
<ul dir="auto">
<li>alway return "Service2"</li>
</ul>
<h4 dir="auto">Problem two</h4>
<p dir="auto">change one implement loadbalance stragy as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(timeout = 5000, loadbalance="consistenthash")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}"><pre class="notranslate"><code class="notranslate">@Service(timeout = 5000, loadbalance="consistenthash")
public class DemoServiceImpl implements DemoService
{
@Override
public String sayHello(String name)
{
return "Service1 -> Hello " + name;
}
}
</code></pre></div>
<h3 dir="auto">Expected Result</h3>
<ul dir="auto">
<li>random return "Service1" and "Service2" .</li>
</ul>
<h3 dir="auto">Actual Result</h3>
<ul dir="auto">
<li>alway return "Service1"</li>
</ul>
<h3 dir="auto">Question</h3>
<p dir="auto">I don't know how dubbo it works. but it is very strange , it always use consistenthash stragy.</p>
<p dir="auto">Dubbo provide client and server side loadbalance stragy , Who is at work.</p>
<p dir="auto">As I know,dubbo has no central node coordinator, may be is client side effect. If remove server side loadblance stragy or improve it ?</p>
<p dir="auto">could not provid unique way to use loadbalance</p>
<ul dir="auto">
<li>Single loadbalance stragy</li>
<li>Mixed loadbalance stragy</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ulinkwo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ulinkwo">@ulinkwo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinmclean/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinmclean">@justinmclean</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lonre/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lonre">@lonre</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ke4qqq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ke4qqq">@ke4qqq</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmcdonald/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmcdonald">@gmcdonald</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carryxyh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carryxyh">@carryxyh</a></p> | 0 |
<p dir="auto">by <strong>fibercut</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
package main
import (
"fmt"
)
type Node struct {
line string
unused [50]int
}
const (
LOOPS = 300 // consume ~ 1G of RAM, increase this at your own risk
MAX = 30000
STR = "1 2 3 4 5 6 7 8 9 0"
)
func main() {
for i := 1; i < LOOPS; i++ {
p := new([MAX]Node)[0:MAX]
for j := 0; j < MAX; j++ {
p[j].line = STR
}
fmt.Printf("%v\n", i)
}
}
What is the expected output?
On 64 bit Ubuntu (6g) to above program stays at a comfortable 45M memory consumption,
even for much larger values of LOOPS.
What do you see instead?
The above program consumes > 1G of RAM quickly on 32 bit systems (8g).
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Linux (ubuntu)
Which revision are you using? (hg identify)
ca4f9687cec0 release.2010-10-13.1/release
Please provide any additional information below.</pre> | <p dir="auto">Expected behavior: go test works</p>
<p dir="auto">Actual behavior: go test fails because it trips over long paths it itself constructs for building and running the tests</p>
<p dir="auto">Output of "go version":<br>
go version go1.4.2 windows/amd64</p>
<p dir="auto">Repro steps:</p>
<p dir="auto">C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>type foo\foo.go</p>
<p dir="auto">package foo</p>
<p dir="auto">func Foo() string {<br>
return "foo"<br>
}</p>
<p dir="auto">C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>type foo\foo_test.go</p>
<p dir="auto">package foo</p>
<p dir="auto">import "testing"</p>
<p dir="auto">func TestFoo(t *testing.T) {<br>
t.Log("Testing foo")<br>
}</p>
<p dir="auto">C:\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy>go test .\foo</p>
<h1 dir="auto"><em>/C</em>/Users/lukasza/my/enlistment/has/rather/long/and/descriptive/paths/that/I/rather/like/and/enjoy/foo</h1>
<p dir="auto">mkdir C:\Users\lukasza\AppData\Local\Temp\go-build344025871_\C_\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather\like\and\enjoy<br>
foo_test_\C_\Users\lukasza\my\enlistment\has\rather\long\and\descriptive\paths\that\I\rather: The filename or extension is too long.<br>
FAIL <em>/C</em>/Users/lukasza/my/enlistment/has/rather/long/and/descriptive/paths/that/I/rather/like/and/enjoy/foo [setup failed]</p> | 0 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.1</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: k8s on bare metal</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>: pip</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<details><summary>
Something bad has happened.
Please consider letting us know by creating a bug report using GitHub.
<h2 dir="auto">Python version: 3.8.7<br>
Airflow version: 2.0.1<br>
Node: airflow-webserver-57f76df565-ztfb5</h2>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context<br>
self.dialect.do_execute(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute<br>
cursor.execute(statement, parameters)<br>
psycopg2.errors.UndefinedFunction: operator does not exist: bytea ~~* bytea<br>
LINE 4: ...e' AND dag_run.state = 'running' AND dag_run.conf ILIKE '\x8...<br>
^<br>
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.</p>
<p dir="auto">The above exception was the direct cause of the following exception:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app<br>
response = self.full_dispatch_request()<br>
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request<br>
rv = self.handle_user_exception(e)<br>
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception<br>
reraise(exc_type, exc_value, tb)<br>
File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise<br>
raise value<br>
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request<br>
rv = self.dispatch_request()<br>
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request<br>
return self.view_functions<a href="**req.view_args">rule.endpoint</a><br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps<br>
return f(self, *args, **kwargs)<br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/views.py", line 551, in list<br>
widgets = self._list()<br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 1122, in _list<br>
widgets = self._get_list_widget(<br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 1021, in _get_list_widget<br>
count, lst = self.datamodel.query(<br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 425, in query<br>
count = self.query_count(query, filters, select_columns)<br>
File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 346, in query_count<br>
return self._apply_inner_all(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3803, in count<br>
return self.from_self(col).scalar()<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3523, in scalar<br>
ret = self.one()<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3490, in one<br>
ret = self.one_or_none()<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none<br>
ret = list(self)<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3535, in <strong>iter</strong><br>
return self._execute_and_instances(context)<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances<br>
result = conn.execute(querycontext.statement, self._params)<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute<br>
return meth(self, multiparams, params)<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection<br>
return connection._execute_clauseelement(self, multiparams, params)<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement<br>
ret = self._execute_context(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context<br>
self.<em>handle_dbapi_exception(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in <em>handle_dbapi_exception<br>
util.raise</em>(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise</em><br>
raise exception<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context<br>
self.dialect.do_execute(<br>
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute<br>
cursor.execute(statement, parameters)<br>
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: bytea ~~* bytea<br>
LINE 4: ...e' AND dag_run.state = 'running' AND dag_run.conf ILIKE '\x8...<br>
^<br>
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.</p>
<p dir="auto">[SQL: SELECT count(*) AS count_1<br>
FROM (SELECT dag_run.state AS dag_run_state, dag_run.id AS dag_run_id, dag_run.dag_id AS dag_run_dag_id, dag_run.execution_date AS dag_run_execution_date, dag_run.start_date AS dag_run_start_date, dag_run.end_date AS dag_run_end_date, dag_run.run_id AS dag_run_run_id, dag_run.creating_job_id AS dag_run_creating_job_id, dag_run.external_trigger AS dag_run_external_trigger, dag_run.run_type AS dag_run_run_type, dag_run.conf AS dag_run_conf, dag_run.last_scheduling_decision AS dag_run_last_scheduling_decision, dag_run.dag_hash AS dag_run_dag_hash<br>
FROM dag_run<br>
WHERE dag_run.dag_id = %(dag_id_1)s AND dag_run.state = %(state_1)s AND dag_run.conf ILIKE %(conf_1)s) AS anon_1]<br>
[parameters: {'dag_id_1': 'privacy-scrubbing-service', 'state_1': 'running', 'conf_1': <psycopg2.extensions.Binary object at 0x7f2e119d90c0>}]<br>
(Background on this error at: <a href="http://sqlalche.me/e/13/f405" rel="nofollow">http://sqlalche.me/e/13/f405</a>)</p>
</summary></details>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Be able to search dag runs by conf contents</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42754983/110379451-b1bed000-800b-11eb-9c78-92c22db244c6.png"><img src="https://user-images.githubusercontent.com/42754983/110379451-b1bed000-800b-11eb-9c78-92c22db244c6.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42754983/110378866-fc8c1800-800a-11eb-93fc-ddf0715c6b12.png"><img src="https://user-images.githubusercontent.com/42754983/110378866-fc8c1800-800a-11eb-93fc-ddf0715c6b12.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p> | <p dir="auto"><strong>Apache Airflow version</strong>:</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): "v1.14.2"</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):<br>
NAME="CentOS Linux"<br>
VERSION="7 (Core)"<br>
ID="centos"<br>
ID_LIKE="rhel fedora"<br>
VERSION_ID="7"<br>
PRETTY_NAME="CentOS Linux 7 (Core)"<br>
ANSI_COLOR="0;31"<br>
CPE_NAME="cpe:/o:centos:centos:7"<br>
HOME_URL="<a href="https://www.centos.org/" rel="nofollow">https://www.centos.org/</a>"<br>
BUG_REPORT_URL="<a href="https://bugs.centos.org/" rel="nofollow">https://bugs.centos.org/</a>"</li>
</ul>
<p dir="auto">CENTOS_MANTISBT_PROJECT="CentOS-7"<br>
CENTOS_MANTISBT_PROJECT_VERSION="7"<br>
REDHAT_SUPPORT_PRODUCT="centos"<br>
REDHAT_SUPPORT_PRODUCT_VERSION="7"</p>
<ul dir="auto">
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.10.0-957.21.3.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69689814" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/1/hovercard" href="https://github.com/apache/airflow/pull/1">#1</a> SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<ol dir="auto">
<li>Go to "Browse-> DAG Runs"</li>
<li>Add Filter, select "Conf", "Contains", Search</li>
</ol>
<h2 dir="auto">Error messages:<br>
`<br>
Python version: 3.6.12<br>
Airflow version: 2.0.0<br>
Node: airflow-webserver-6646b76f6d-kp9vr</h2>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context<br>
cursor, statement, parameters, context<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute<br>
cursor.execute(statement, parameters)<br>
psycopg2.errors.UndefinedFunction: operator does not exist: bytea ~~* bytea<br>
LINE 4: WHERE dag_run.conf ILIKE '\x80049506000000000000008c02252594...<br>
^<br>
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.</p>
<p dir="auto">The above exception was the direct cause of the following exception:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app<br>
response = self.full_dispatch_request()<br>
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request<br>
rv = self.handle_user_exception(e)<br>
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception<br>
reraise(exc_type, exc_value, tb)<br>
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise<br>
raise value<br>
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request<br>
rv = self.dispatch_request()<br>
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request<br>
return self.view_functions<a href="**req.view_args">rule.endpoint</a><br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps<br>
return f(self, *args, **kwargs)<br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/views.py", line 551, in list<br>
widgets = self._list()<br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 1127, in _list<br>
page_size=page_size,<br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 1026, in _get_list_widget<br>
page_size=page_size,<br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/models/sqla/interface.py", line 425, in query<br>
count = self.query_count(query, filters, select_columns)<br>
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/models/sqla/interface.py", line 347, in query_count<br>
query, filters, select_columns=select_columns, aliases_mapping={}<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3803, in count<br>
return self.from_self(col).scalar()<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3523, in scalar<br>
ret = self.one()<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3490, in one<br>
ret = self.one_or_none()<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none<br>
ret = list(self)<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3535, in <strong>iter</strong><br>
return self._execute_and_instances(context)<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances<br>
result = conn.execute(querycontext.statement, self._params)<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1011, in execute<br>
return meth(self, multiparams, params)<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection<br>
return connection._execute_clauseelement(self, multiparams, params)<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement<br>
distilled_params,<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1317, in <em>execute_context<br>
e, statement, parameters, cursor, context<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1511, in <em>handle_dbapi_exception<br>
sqlalchemy_exception, with_traceback=exc_info[2], from</em>=e<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 182, in raise</em><br>
raise exception<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context<br>
cursor, statement, parameters, context<br>
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute<br>
cursor.execute(statement, parameters)<br>
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: bytea ~~* bytea<br>
LINE 4: WHERE dag_run.conf ILIKE '\x80049506000000000000008c02252594...<br>
^<br>
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.</p>
<p dir="auto">[SQL: SELECT count(*) AS count_1<br>
FROM (SELECT dag_run.state AS dag_run_state, dag_run.id AS dag_run_id, dag_run.dag_id AS dag_run_dag_id, dag_run.execution_date AS dag_run_execution_date, dag_run.start_date AS dag_run_start_date, dag_run.end_date AS dag_run_end_date, dag_run.run_id AS dag_run_run_id, dag_run.creating_job_id AS dag_run_creating_job_id, dag_run.external_trigger AS dag_run_external_trigger, dag_run.run_type AS dag_run_run_type, dag_run.conf AS dag_run_conf, dag_run.last_scheduling_decision AS dag_run_last_scheduling_decision, dag_run.dag_hash AS dag_run_dag_hash<br>
FROM dag_run<br>
WHERE dag_run.conf ILIKE %(conf_1)s) AS anon_1]<br>
[parameters: {'conf_1': <psycopg2.extensions.Binary object at 0x7f5dad9c2c60>}]<br>
(Background on this error at: <a href="http://sqlalche.me/e/13/f405)%60" rel="nofollow">http://sqlalche.me/e/13/f405)`</a></p>
<p dir="auto"><strong>What you expected to happen</strong>: Not crashed.</p>
<p dir="auto"><strong>How to reproduce it</strong>: See above</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Version 10.0.18362.720
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Version 10.0.18362.720
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Run photoshop or Maya<br>
make sure to have a floating window.<br>
Move it while having shift pressed down<br>
FancyZones does not turn up.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">In earlier versions of FancyZones snapping of floating windows was allowed and worked just like any other window.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">FancyZones doesn't trigger when using any of the shortcuts and I am thuus unable to snapp any floating windows from any aplication I have tried it with.</p>
<h1 dir="auto">Screenshots</h1> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.17763.1039]
PowerToys version: 0.14 - 0.15
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Create FancyZone layout, use mouse to drag-and-drop "Solution Explorer" or any other window from Visual Studio (except main window) into a zone.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The window resizes to the zone accordingly, works in v0.13 of PowerToys.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The window does not resize to the zone.</p>
<p dir="auto">In version 0.14 it is still possible to arrange the window by activating the "Override Windows snap hotkeys..."-option and using hotkeys to arrange it into place. Drag-and-drop does not work.</p>
<p dir="auto">In version 0.15+ there is no option to arrange these windows into a zone.</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4114872/60814245-2aadba80-a18d-11e9-8188-cda6edf362f4.png"><img src="https://user-images.githubusercontent.com/4114872/60814245-2aadba80-a18d-11e9-8188-cda6edf362f4.png" alt="2019-07-08_14h29_22" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4114872/60814275-3a2d0380-a18d-11e9-9bb1-b8f822c82e96.png"><img src="https://user-images.githubusercontent.com/4114872/60814275-3a2d0380-a18d-11e9-9bb1-b8f822c82e96.png" alt="2019-07-08_14h29_54" style="max-width: 100%;"></a></p>
<p dir="auto">Seems there is an issue running the terminal "As Administrator"</p>
<p dir="auto">Error: Windows cannot find "C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" Make sure you've typed the name correctly, then try again</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.0
Windows Terminal version: 0.5.2661.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2661.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open WT</li>
<li>Open profiles.json</li>
<li>Create an object in the <code class="notranslate">profiles</code> array</li>
<li>Fill in some fields such as <code class="notranslate">name</code>, <code class="notranslate">commandline</code>, <code class="notranslate">startingDirectory</code>, <code class="notranslate">colorScheme</code>, etc.</li>
<li>Save profiles.json</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">WT will generate/add a guid to the new custom profile, that way it can be set as the <code class="notranslate">defaultProfile</code>. This was the case in previous versions of WT, before separation of cascading settings was implemented.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">WT does not generate/add a guid to the new profile, thus there appears to be no way to set your custom profile as the default.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jyothi.polani" rel="nofollow">Jyothi Prakash</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8681?redirect=false" rel="nofollow">SPR-8681</a></strong> and commented</p>
<p dir="auto">Hi,</p>
<p dir="auto">I am new to this technology.<br>
I've just started reading spring reference documentation (PDF) both Current Development Releases and Current GA Releases. Unfortunately both PDF version does not download the images in files.</p>
<p dir="auto">Thanks in advance,<br>
Jyothi</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5, 3.1 M2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?114388-Reference-Documentation" rel="nofollow">http://forum.springsource.org/showthread.php?114388-Reference-Documentation</a></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="398113405" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13158" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13158/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13158">#13158</a> pdf documentation doesn't contain images (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bfovez" rel="nofollow">Bertrand Fovez</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4108?redirect=false" rel="nofollow">SPR-4108</a></strong> and commented</p>
<p dir="auto">For example, spring-context.pom reads the following:<br>
<groupId>org.springframework</groupId><br>
<artifactId>spring-context</artifactId><br>
<version>2.5-rc1</version> <-- 2.5-rc1 here --></p>
<p dir="auto">And lower:<br>
<dependency><br>
<groupId>${project.groupId}</groupId><br>
<artifactId>spring-beans</artifactId><br>
<version>${project.version}</version> <-- ${project.version} here refers to 2.5-rc1 --><br>
</dependency></p>
<p dir="auto">As a results, any maven goal leads to maven trying to download spring-beans-2.5-rc1 instead of spring-beans-2.5-rc2.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC2</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="398082600" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8778" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8778/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8778">#8778</a> Error in spring-2.5-rc2.pom (Wrong version information) (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">The code and dataset were the same as before, but I got the following error. However they could work well about a half mouth ago.<br>
the pytorch's version is 0.3.1<br>
raceback (most recent call last):<br>
File "main.py", line 341, in<br>
main()<br>
File "main.py", line 141, in main<br>
train(train_loader, model, criterion, optimizer, epoch)<br>
File "main.py", line 192, in train<br>
prec1, prec5 = accuracy(output.data, target, topk=(1,5))<br>
File "main.py", line 329, in accuracy<br>
_, pred = output.topk(maxk, 1, True, True)<br>
RuntimeError: invalid argument 5: k not in range for dimension at /pytorch/torch/lib/THC/generic/THCTensorTopK.cu:21<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [1,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [2,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [3,0,0] Assertion t >= 0 && t < n_classes failed.<br>
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.c line=184 error=59 : device-side assert triggered<br>
terminate called after throwing an instance of 'std::runtime_error'<br>
what(): cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/generic/THCStorage.c:184<br>
Aborted (core dumped)</p> | <p dir="auto">The code and dataset were the same as before, but I got the following error. However they could work well about a half mouth ago.<br>
the pytorch's version is 0.3.1, BUT I find the version 0.4.0 also meeting with the same error<br>
raceback (most recent call last):<br>
File "main.py", line 341, in<br>
main()<br>
File "main.py", line 141, in main<br>
train(train_loader, model, criterion, optimizer, epoch)<br>
File "main.py", line 192, in train<br>
prec1, prec5 = accuracy(output.data, target, topk=(1,5))<br>
File "main.py", line 329, in accuracy<br>
_, pred = output.topk(maxk, 1, True, True)<br>
RuntimeError: invalid argument 5: k not in range for dimension at /pytorch/torch/lib/THC/generic/THCTensorTopK.cu:21<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [1,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [2,0,0] Assertion t >= 0 && t < n_classes failed.<br>
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [3,0,0] Assertion t >= 0 && t < n_classes failed.<br>
THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.c line=184 error=59 : device-side assert triggered<br>
terminate called after throwing an instance of 'std::runtime_error'<br>
what(): cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/generic/THCStorage.c:184<br>
Aborted (core dumped)</p> | 1 |
<p dir="auto">I see on my website and on your online docs this bug :<br>
When you click to "Launch demo modal", the modal appear. I click on "close", the modal disappear. But when I click again on "Launch demo modal", the button close doesn't work.<br>
You can see that on : <a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a></p>
<p dir="auto">In Bootstrap 2.3.2, it's correct : <a href="http://getbootstrap.com/2.3.2/javascript.html#modals" rel="nofollow">http://getbootstrap.com/2.3.2/javascript.html#modals</a></p>
<p dir="auto">Can you fixe that?</p>
<p dir="auto">Tx</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">rust-bindgen sets cargo:rustc -L to /usr/local/lib via build.rs</p>
<p dir="auto">When this happens, linking fails because duplicate candidate dylibs are found in the bootstrap libs: (/usr/local/lib) and the rustlib (/usr/local/lib/rustlib/../lib)</p>
<p dir="auto">Specific errors below:</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() {
for i in range(0, 30) {
}
}"><pre class="notranslate"><code class="notranslate">fn main() {
for i in range(0, 30) {
}
}
</code></pre></div>
<p dir="auto">says</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2:11: 2:16 error: cannot determine a type for this bounded type parameter: cannot determine the type of this integer; add a suffix to specify the type explicitly
2 for i in range(0, 30) {
^~~~~"><pre class="notranslate"><code class="notranslate">2:11: 2:16 error: cannot determine a type for this bounded type parameter: cannot determine the type of this integer; add a suffix to specify the type explicitly
2 for i in range(0, 30) {
^~~~~
</code></pre></div>
<p dir="auto">11 times.</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows...
"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto"><strong>Actual behavior:</strong></p> | <p dir="auto">I have a general question about project structures / modules.<br>
It's a project with 3 types of code:</p>
<ul dir="auto">
<li>client: classes used for the client web-app, built into a single js file (with --out).</li>
<li>server: code running on node</li>
<li>shared: classes used by both client and server, typically model classes with functions like validation, etc</li>
</ul>
<p dir="auto">My aim is this:</p>
<ul dir="auto">
<li>use 1 file per 1 class at the source level</li>
<li>deploy the client app into a single output file (for performance reasons: better start up time), the server can be deployed as many files (or if possible and makes sense from a perf. point of view it can be a single file too). These can be 2 separate compilations, the client with --out and the server with commonjs.</li>
<li>reuse the shared model classes (without duplication) in the client and the server</li>
<li>be able to use circular dependencies (although shared code will not depend on client/node code, only the other way around, circular dependencies can only occur in within the client code)</li>
</ul>
<p dir="auto">I can't seem to achieve these goals. The problem is this:</p>
<ul dir="auto">
<li>if I structure the shared code so that I only use the ///<reference.../> tags (like I do in the client) that won't be usable when compiling the server with common.js</li>
<li>if I use common.js style requires in the shared code then that won't work for the client's single file --out compilation</li>
</ul>
<p dir="auto">These are the options I think I have:</p>
<ul dir="auto">
<li>switch to using require js (amd) in the client as opposed to references and the single file output, and maybe use some post compile script to concatenate the modules to a single file. However circular dependencies may occur sometimes and that's a big issue I have with require.js</li>
<li>switch to using es6 style module syntax and use it on the client and in node with some polyfills/loaders until natively supported</li>
<li>switch to using commonjs style modules and load them with browserify on the client</li>
<li>do a pre-compilation step and transform the shared code to be eligible once for the client side single output compilation and once for the node.js side common.js compilation. However this can have many caveats and sounds like a hack.</li>
</ul>
<p dir="auto">What I'm really looking for is a way for each TypeScript class/file to be able to "say" what is the class it exports, but not specify how it will be consumed, ie. via commonjs or as a single file output. Probably that's not possible though in a simple way?</p> | 0 |
<p dir="auto">I found a strange behaviour when importing a default-exported module from file1 and using it for variable/parameter/return value/whatever... type declarations in file2. Please note that the imported namespace is still visible and works correctly when I use it for variable definitions (e.g. invoking class constructor with new). See the code below:</p>
<p dir="auto">file1.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export module a {
export module b {
export class MyClass {
x: number = 10;
}
}
}
export default a.b;"><pre class="notranslate"><span class="pl-k">export</span> module <span class="pl-s1">a</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> module <span class="pl-s1">b</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">MyClass</span> <span class="pl-kos">{</span>
<span class="pl-c1">x</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">file2.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import y from './file1';
function fn(): y.MyClass { //warning here: Cannot find namespace 'y'.
return new y.MyClass(); //it works here, no compiler warning
}
var a = fn(); //works fine
var b: y.MyClass = fn(); //warning here: Cannot find namespace 'y'.
function fn2(i: y.MyClass) { //warning here: Cannot find namespace 'y'.
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">y</span> <span class="pl-k">from</span> <span class="pl-s">'./file1'</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-smi">MyClass</span> <span class="pl-kos">{</span> <span class="pl-c">//warning here: Cannot find namespace 'y'.</span>
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-c1">MyClass</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//it works here, no compiler warning</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-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//works fine</span>
<span class="pl-k">var</span> <span class="pl-s1">b</span>: <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-smi">MyClass</span> <span class="pl-c1">=</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//warning here: Cannot find namespace 'y'.</span>
<span class="pl-k">function</span> <span class="pl-en">fn2</span><span class="pl-kos">(</span><span class="pl-s1">i</span>: <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-smi">MyClass</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">//warning here: Cannot find namespace 'y'.</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Instead, for class expression (<code class="notranslate">export default class {...</code> in file1.ts) it works fine, both for type declarations and variable definitions.</p> | <p dir="auto">Current description of export assignments in the spec states:</p>
<blockquote>
<p dir="auto">Export assignments exist for backward compatibility with earlier versions of TypeScript. An export assignment designates a module member as the entity to be exported in place of the module itself.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ExportAssignment:
export = IdentifierReference ;"><pre class="notranslate"> ExportAssignment:
<span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">IdentifierReference</span> <span class="pl-kos">;</span></pre></div>
<p dir="auto">A module containing an export assignment can be imported using an import require declaration (11.3.3), and the local alias introduced by the import require declaration then takes on all meanings of the <strong>identifier</strong> named in the export assignment.</p>
</blockquote>
<p dir="auto">However current implementation also <a href="https://github.com/Microsoft/TypeScript/blob/master/src/compiler/binder.ts#L948">permits</a> dotted names - in this case only value meaning is exported. This change seems to be quite recent, example below compiles with no errors in current master and issues a syntax error <code class="notranslate">';' expected."</code>in v1.4.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module foo.bar {
export type X = number;
export var X: { A: number };
}
declare module "test" {
export = foo.bar;
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-s1">bar</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">X</span> <span class="pl-c1">=</span> <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">X</span>: <span class="pl-kos">{</span> <span class="pl-c1">A</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> module <span class="pl-s">"test"</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-c1">bar</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This issue can have several interpretations:</p>
<ul dir="auto">
<li>this is only spec bug - current behavior for dotted names should be documented</li>
<li>this is both spec and implementation issue - we export all meanings also for dotted names and spec should be adjusted to reflect this</li>
<li>this is implementation bug - we should prohibit usage of dotted names in export assignments.</li>
</ul> | 1 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery#?solution=%0Afccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.parent%28%29.css%28%22background-color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%0A%20%20%20%20%24%28%22%23right-well%22%29.children%28%29%20.css%28%22color%22%2C%22FFa500%22%29%3B%0A%20%20%20%20%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Target the Children of an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children() .css("color","FFa500");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span><span class="pl-s">"FFa500"</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-ent">script</span><span class="pl-kos">></span>
<span class="pl-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">></span>#target2<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">></span>#target3<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">></span>#target5<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">></span>#target6<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge tests for jQuery fail to run if syntax errors are present in a campers code.</p>
<p dir="auto">Examples:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161661570" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9289/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289">#9289</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159738958" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9082/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082">#9082</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163218773" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9470/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470">#9470</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164753410" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9672/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672">#9672</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165201340" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9698/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698">#9698</a></p>
<p dir="auto">What is stopping the tests running? Can we fix it?</p>
<p dir="auto">Is there a way to lint jQuery in codemirror so campers get visual clues to syntax errors, like in the JS challenges?</p>
<p dir="auto">-Or-</p>
<p dir="auto">When there is a syntax error, can we present a modal to the camper saying there is a syntax error present in their code when they click 'Run tests'?</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=muthukumaran_m" rel="nofollow">Muthukumaran Madialagan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4077?redirect=false" rel="nofollow">SPR-4077</a></strong> and commented</p>
<p dir="auto">My Issue is same as of the BUG which was already disucssed and fixed in the following URL</p>
<p dir="auto"><a href="http://opensource.atlassian.com/projects/spring/browse/SPR-1384" rel="nofollow">http://opensource.atlassian.com/projects/spring/browse/SPR-1384</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.2</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="398082725" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8797" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8797/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8797">#8797</a> PROPAGATION_REQUIRES_NEW fails on JBoss 4.2.1 when using Hibernate connection release mode "on_close" (<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="398060723" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6084" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6084/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6084">#6084</a> IllegalStateException thrown by JBoss 4.0.3 when PROPAGATION_REQUIRES_NEW used during active transaction in MessageBean with BMT</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=maverick1601" rel="nofollow">Frank Scheffler</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9180?redirect=false" rel="nofollow">SPR-9180</a></strong> and commented</p>
<p dir="auto">As far as I've seen it most of the bean profile examples tend to use profiles such as dev and production. However, sometimes it would be useful to have a configuration that should NOT be applied, if a certain profile is active. More generally speaking, wouldn't it be possible to support some rudimentary boolean logic for bean profiles?</p>
<hr>
<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="398114754" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13370" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13370/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13370">#13370</a> Support not (!) operator for profile selection (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110303" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12637" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12637/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12637">#12637</a> Support profile exclusivity and/or bean definition finality</li>
</ul> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from torchvision.models import vgg16, resnet18
vgg16()"><pre class="notranslate"><code class="notranslate">from torchvision.models import vgg16, resnet18
vgg16()
</code></pre></div>
<p dir="auto">The following interrupt message appears:<br>
<strong>Illegal instruction</strong></p>
<p dir="auto">I installed pytorch(1.2/1.3) from binaries via pip wheels, and I don't know how to solve it.</p> | <p dir="auto">Hello,</p>
<p dir="auto">I have a strange issue when loading some pretrained models. On loading, some models abort and give an "illegal instruction" message, like below:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torchvision
torchvision.models.squeezenet1_0(pretrained=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torchvision</span>
<span class="pl-s1">torchvision</span>.<span class="pl-s1">models</span>.<span class="pl-en">squeezenet1_0</span>(<span class="pl-s1">pretrained</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<blockquote>
<p dir="auto">Illegal instruction (core dumped)</p>
</blockquote>
<p dir="auto">But with other models, everything runs smoothly. The following code</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torchvision
torchvision.models.alexnet(pretrained=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torchvision</span>
<span class="pl-s1">torchvision</span>.<span class="pl-s1">models</span>.<span class="pl-en">alexnet</span>(<span class="pl-s1">pretrained</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">outputs a nicely loaded model:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AlexNet(
(features): Sequential(
(0): Conv2d(3, 64, kernel_size=(11, 11), stride=(4, 4), padding=(2, 2))
(1): ReLU(inplace=True)
(2): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
(3): Conv2d(64, 192, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2))
(4): ReLU(inplace=True)
(5): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
(6): Conv2d(192, 384, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(7): ReLU(inplace=True)
(8): Conv2d(384, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(9): ReLU(inplace=True)
(10): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))
(11): ReLU(inplace=True)
(12): MaxPool2d(kernel_size=3, stride=2, padding=0, dilation=1, ceil_mode=False)
)
(avgpool): AdaptiveAvgPool2d(output_size=(6, 6))
(classifier): Sequential(
(0): Dropout(p=0.5, inplace=False)
(1): Linear(in_features=9216, out_features=4096, bias=True)
(2): ReLU(inplace=True)
(3): Dropout(p=0.5, inplace=False)
(4): Linear(in_features=4096, out_features=4096, bias=True)
(5): ReLU(inplace=True)
(6): Linear(in_features=4096, out_features=1000, bias=True)
)
)"><pre class="notranslate"><span class="pl-v">AlexNet</span>(
(<span class="pl-s1">features</span>): <span class="pl-v">Sequential</span>(
(<span class="pl-c1">0</span>): <span class="pl-v">Conv2d</span>(<span class="pl-c1">3</span>, <span class="pl-c1">64</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">11</span>, <span class="pl-c1">11</span>), <span class="pl-s1">stride</span><span class="pl-c1">=</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>))
(<span class="pl-c1">1</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">2</span>): <span class="pl-v">MaxPool2d</span>(<span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">dilation</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">ceil_mode</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
(<span class="pl-c1">3</span>): <span class="pl-v">Conv2d</span>(<span class="pl-c1">64</span>, <span class="pl-c1">192</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>), <span class="pl-s1">stride</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>))
(<span class="pl-c1">4</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">5</span>): <span class="pl-v">MaxPool2d</span>(<span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">dilation</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">ceil_mode</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
(<span class="pl-c1">6</span>): <span class="pl-v">Conv2d</span>(<span class="pl-c1">192</span>, <span class="pl-c1">384</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>), <span class="pl-s1">stride</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>))
(<span class="pl-c1">7</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">8</span>): <span class="pl-v">Conv2d</span>(<span class="pl-c1">384</span>, <span class="pl-c1">256</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>), <span class="pl-s1">stride</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>))
(<span class="pl-c1">9</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">10</span>): <span class="pl-v">Conv2d</span>(<span class="pl-c1">256</span>, <span class="pl-c1">256</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>), <span class="pl-s1">stride</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>))
(<span class="pl-c1">11</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">12</span>): <span class="pl-v">MaxPool2d</span>(<span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">dilation</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">ceil_mode</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
)
(<span class="pl-s1">avgpool</span>): <span class="pl-v">AdaptiveAvgPool2d</span>(<span class="pl-s1">output_size</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">6</span>))
(<span class="pl-s1">classifier</span>): <span class="pl-v">Sequential</span>(
(<span class="pl-c1">0</span>): <span class="pl-v">Dropout</span>(<span class="pl-s1">p</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
(<span class="pl-c1">1</span>): <span class="pl-v">Linear</span>(<span class="pl-s1">in_features</span><span class="pl-c1">=</span><span class="pl-c1">9216</span>, <span class="pl-s1">out_features</span><span class="pl-c1">=</span><span class="pl-c1">4096</span>, <span class="pl-s1">bias</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">2</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">3</span>): <span class="pl-v">Dropout</span>(<span class="pl-s1">p</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
(<span class="pl-c1">4</span>): <span class="pl-v">Linear</span>(<span class="pl-s1">in_features</span><span class="pl-c1">=</span><span class="pl-c1">4096</span>, <span class="pl-s1">out_features</span><span class="pl-c1">=</span><span class="pl-c1">4096</span>, <span class="pl-s1">bias</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">5</span>): <span class="pl-v">ReLU</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
(<span class="pl-c1">6</span>): <span class="pl-v">Linear</span>(<span class="pl-s1">in_features</span><span class="pl-c1">=</span><span class="pl-c1">4096</span>, <span class="pl-s1">out_features</span><span class="pl-c1">=</span><span class="pl-c1">1000</span>, <span class="pl-s1">bias</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
)
)</pre></div>
<p dir="auto">Running Python 3.7.5 on a CPU only Ubuntu machine with the following versions:<br>
PyTorch Version: 1.4.0+cpu<br>
Torchvision Version: 0.5.0+cpu</p>
<p dir="auto">The CPUs have the following properties:</p>
<blockquote>
<p dir="auto">processor : 7<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 13<br>
model name : QEMU Virtual CPU version (cpu64-rhel6)<br>
stepping : 3<br>
microcode : 0x1<br>
cpu MHz : 2593.902<br>
cache size : 4096 KB<br>
physical id : 7<br>
siblings : 1<br>
core id : 0<br>
cpu cores : 1<br>
apicid : 7<br>
initial apicid : 7<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 4<br>
wp : yes<br>
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm nopl cpuid pni cx16 hypervisor lahf_lm abm pti<br>
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf<br>
bogomips : 5187.80<br>
clflush size : 64<br>
cache_alignment : 64<br>
address sizes : 46 bits physical, 48 bits virtual<br>
power management:</p>
</blockquote>
<p dir="auto">I could not find help anywhere with this issue...</p> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Currently when using the <code class="notranslate">nn.MultiHeadAttention</code> layer, the <code class="notranslate">attn_output_weights</code> consists of an average of the attention weights of each head, therefore the original weights are inaccessible. That makes analysis like the one made in this <a href="https://arxiv.org/abs/1906.04341v1" rel="nofollow">paper</a> very difficult.</p>
<h2 dir="auto">Pitch</h2>
<p dir="auto">When the <code class="notranslate">nn.MultiHeadAttention</code> forward is called with <code class="notranslate">need_weights=True</code> (and maybe a second parameter like <code class="notranslate">nead_attn_heads=True</code>), <code class="notranslate">attn_output_weights</code> should be a tensor of size <code class="notranslate">[N,num_heads,L,S]</code>,with the weights of each head, instead of the average of size <code class="notranslate">[N,L,S]</code> (following the notation in the <a href="https://pytorch.org/docs/stable/nn.html#multiheadattention" rel="nofollow">docs</a>)</p>
<h2 dir="auto">Alternatives</h2>
<h2 dir="auto">Additional context</h2>
<p dir="auto">A small discussion about this subject with a potential solution was made <a href="https://discuss.pytorch.org/t/getting-nn-multiheadattention-attention-weights-for-each-head/72195" rel="nofollow">here</a></p>
<p dir="auto">If you guys agree, I'll gladly make a PR.</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature: Return the attention scores from all heads</h2>
<p dir="auto">Return the attention scores from all heads in the <a href="https://github.com/pytorch/pytorch/blob/b5dd6e3e61c59e88ce6e8aee2fa5d08d6c56fd97/torch/nn/modules/activation.py#L831"><code class="notranslate">MultiHeadAttention</code></a> Module and <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4026"><code class="notranslate">multi_head_attention_forward</code></a>. The current implementation <strong>only</strong> allows returning the averaged attention score over all heads</p>
<p dir="auto">In short: add option to change<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/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4309">pytorch/torch/nn/functional.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 4309
in
<a data-pjax="true" class="commit-tease-sha" href="/pytorch/pytorch/commit/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9">16c72a5</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="L4309" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4309"></td>
<td id="LC4309" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">attn_output</span>, <span class="pl-s1">attn_output_weights</span>.<span class="pl-en">sum</span>(<span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">/</span> <span class="pl-s1">num_heads</span> </td>
</tr>
</tbody></table>
</div>
</div>
<br>
into<br>
<code class="notranslate">return attn_output, attn_output_weights</code><p></p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">The motivating idea behind Multi-Head attention is to perform the attention mechanism in parallel and allow the model to attend to different sequence elements with each head separately. The current torch code (<a href="https://github.com/pytorch/pytorch/blob/b5dd6e3e61c59e88ce6e8aee2fa5d08d6c56fd97/torch/nn/modules/activation.py#L831"><code class="notranslate">MultiHeadAttention</code></a> Module and <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4026"><code class="notranslate">multi_head_attention_forward</code></a>) allows to return the <code class="notranslate">attn_output_weights</code> along with the <code class="notranslate">attn_output</code>.</p>
<p dir="auto">However, the <code class="notranslate">attn_output_weights</code> are averaged over all heads. The attention scores for each separate head are not accessible to the outside.</p>
<p dir="auto">Why should it be possible to get attention scores for each head?</p>
<ol dir="auto">
<li>Each head attends to different sequence elements. The information to which sequence elements each head attends to is lost when attention scores are averaged over all heads. The attention scores for each head are important to understand the features that are extracted in each layer (touches: feature importance, explainability).</li>
<li>This averaging behavior in <code class="notranslate">attn_output_weights</code> is inconsistent with <code class="notranslate">attn_output</code> where the embedding dimensions are grouped into <code class="notranslate">head_dim</code> blocks from the same attention head.<br>
<div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4124">pytorch/torch/nn/functional.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 4124
in
<a data-pjax="true" class="commit-tease-sha" href="/pytorch/pytorch/commit/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9">16c72a5</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="L4124" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="4124"></td>
<td id="LC4124" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">head_dim</span> <span class="pl-c1">=</span> <span class="pl-s1">embed_dim</span> <span class="pl-c1">//</span> <span class="pl-s1">num_heads</span> </td>
</tr>
</tbody></table>
</div>
</div>
</li>
</ol>
<h2 dir="auto">Pitch</h2>
<p dir="auto">I would propose</p>
<ol dir="auto">
<li>modifying the <code class="notranslate">need_weights=True</code> option in <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4026"><code class="notranslate">multi_head_attention_forward</code></a> to a choice [<code class="notranslate">all</code>, <code class="notranslate">average</code>, <code class="notranslate">none</code>] to control the return behavior of <code class="notranslate">multi_head_attention_forward</code>. The option <code class="notranslate">need_weights=avg</code> would be equivalent to current <code class="notranslate">need_weights=True</code> and <code class="notranslate">need_weights=all</code> would return <code class="notranslate">attn_output_weights</code> without summation and average with <code class="notranslate">num_heads</code> <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4309">here</a>. Alternatives like changing the current behavior or adding a second boolean <code class="notranslate">need_all_weights</code> flag are possible too.</li>
<li>carrying the <code class="notranslate">need_weights</code> option to the <a href="https://github.com/pytorch/pytorch/blob/b5dd6e3e61c59e88ce6e8aee2fa5d08d6c56fd97/torch/nn/modules/activation.py#L831"><code class="notranslate">MultiHeadAttention</code></a> Module to make it easily accessible to the outside when using the <code class="notranslate">MultiHeadAttention</code> module.</li>
</ol>
<p dir="auto">I am happy to write a pull request with the modifications in <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4026"><code class="notranslate">multi_head_attention_forward</code></a> and <a href="https://github.com/pytorch/pytorch/blob/b5dd6e3e61c59e88ce6e8aee2fa5d08d6c56fd97/torch/nn/modules/activation.py#L831"><code class="notranslate">MultiHeadAttention</code></a> Module according to further discussion or to leave the concrete implementation choices to the maintainers.</p>
<p dir="auto">Overall, it would be great to have this option in the PyTorch code. This would make the code mode cleaner and would allow understanding the different head behaviors without having to locally modify the pytorch functions.</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">Current alternatives are:</p>
<ol dir="auto">
<li>creating multiple MultiHeadAttention modules hardcoded with a single head to retrieve the attention scores of this head (probably less efficient)</li>
<li>copying and modifying the <a href="https://github.com/pytorch/pytorch/blob/16c72a5a6b7085a9651e7bef7e98c80b2d5547e9/torch/nn/functional.py#L4026"><code class="notranslate">multi_head_attention_forward</code></a> function and <a href="https://github.com/pytorch/pytorch/blob/b5dd6e3e61c59e88ce6e8aee2fa5d08d6c56fd97/torch/nn/modules/activation.py#L831"><code class="notranslate">MultiHeadAttention</code></a> Module locally.</li>
</ol>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhangguanheng66/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhangguanheng66">@zhangguanheng66</a></p> | 1 |
<p dir="auto">If I install <code class="notranslate">babel-plugin-transform-runtime</code> into a new project, NPM will install <code class="notranslate">babel-runtime</code> 5.x. This makes sense, as basically everything else uses a 5.x <code class="notranslate">babel-runtime</code> too.</p>
<p dir="auto">The problem is that it requires methods based on the 6.1.4 filenames, rendering it basically useless.</p>
<p dir="auto">This produces errors like this when I try to run Webpack on the resultant files:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Module not found: Error: Cannot resolve module 'babel-runtime/helpers/defineProperty'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/slicedToArray'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/objectWithoutProperties'"><pre class="notranslate"><code class="notranslate">Module not found: Error: Cannot resolve module 'babel-runtime/helpers/defineProperty'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/slicedToArray'
Module not found: Error: Cannot resolve module 'babel-runtime/helpers/objectWithoutProperties'
</code></pre></div>
<p dir="auto">These errors only occur when running <code class="notranslate">babel-plugin-transform-runtime</code>. I've tried it on 6.1.4, 6.1.2 and 6.0.2. I've also tried downgrading the versions of various other packages to 6.1.2 and 6.0.2. I've also removed <code class="notranslate">node_modules</code> and done a complete <code class="notranslate">npm install</code> on each of these steps.</p> | <p dir="auto">I'm using the latest everything:<br>
NodeJS 5.0.0<br>
NPM 3.3.12<br>
babel-runtime 6.1.4<br>
babel-register 6.1.4</p>
<p dir="auto">when running anything with <code class="notranslate">babel-node</code> I get the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Cannot find module 'babel-runtime/helpers/interop-require-default'
at Object.<anonymous> (babel-register/lib/node.js:5:30)
Error: Cannot find module 'babel-runtime/helpers/interop-require-wildcard'
at Object.<anonymous> (babel-register/lib/node.js:7:31)"><pre class="notranslate"><code class="notranslate">Error: Cannot find module 'babel-runtime/helpers/interop-require-default'
at Object.<anonymous> (babel-register/lib/node.js:5:30)
Error: Cannot find module 'babel-runtime/helpers/interop-require-wildcard'
at Object.<anonymous> (babel-register/lib/node.js:7:31)
</code></pre></div>
<p dir="auto">The reason this happens is that the files are actually named <code class="notranslate">interopRequireDefault.js</code> and <code class="notranslate">interopRequireWildcard.js</code> respectively.<br>
If I rename them to <code class="notranslate">interop-require-default.js</code> and <code class="notranslate">interop-require-wildcard.js</code> the errors go away.</p>
<p dir="auto">Other than that everything seems to work just fine.</p> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
I have two tags select bound to the same list, after changing the selection a couple times I can see items from the first select being overridden by the second select selection.<br>
This happens when I was testing bindings types on <em>select</em> with <em>ngValue</em>, <em>value</em> and a <em>change</em> event.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
The list instance should not change.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
This behavior seems ramdom, you'll need to change selection in both drop down a couple times before both select start containing only one duplicated object.<br>
Here is a plunker on version 2.4.7: <a href="http://plnkr.co/edit/u4Owq7NeP5GMlUGrR9Oa?p=preview" rel="nofollow">http://plnkr.co/edit/u4Owq7NeP5GMlUGrR9Oa?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Testing/prototyping</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Window 7 / Xeon</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.4.7</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [Chrome 55 | IE 11 ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.0.2 | ES6]</p>
</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Got extra empty li last element using ul li and ngFor.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4</li>
<li><strong>Browser:</strong> Linux Chromium51</li>
</ul>
<p dir="auto">Plunk: <a href="http://plnkr.co/edit/TtIFZegKFHrfG8TGQqKb?p=preview" rel="nofollow">http://plnkr.co/edit/TtIFZegKFHrfG8TGQqKb?p=preview</a></p>
<p dir="auto">Sorry if it is a duplicate, couldn't find any similar Issues.</p> | 0 |
<h2 dir="auto">Checklist</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>
</ul>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">I have been using <strong>celery==3.1.25</strong> for scheduling my periodic tasks at regular intervals. I am using the <strong>redis==2.10.6</strong> as our broker. The tasks are getting scheduled using <strong>apply_async</strong> method and the time gets scheduled using <strong>eta or countdown</strong>. My tasks are being duplicated at regular intervals.<br>
I have also set the <strong>timeout visibility</strong> to be greater than my *<em>ETA</em></p>
<p dir="auto"><a href="https://github.com/celery/celery/files/2044776/bug.txt">bug.txt</a><br>
*</p>
<h2 dir="auto">Expected behavior</h2>
<h2 dir="auto">Actual behavior</h2> | <p dir="auto">These two files overlap quite a bit. Instead of maintaining two files that mostly have equivalent content, maybe converting one of them into a symlink would be an idea?</p> | 0 |
<p dir="auto">I posted <a href="http://stackoverflow.com/questions/33860130/is-there-a-way-to-stream-translog-changes-out-of-elasticsearch" rel="nofollow">this question</a> to Stack Overflow the other day and have gotten no responses:</p>
<blockquote>
<p dir="auto">In some systems, there are ways to hook in to write-ahead log changes as they happen. For example, in HBase one can write a <a href="https://hbase.apache.org/testdevapidocs/org/apache/hadoop/hbase/coprocessor/SampleRegionWALObserver.html" rel="nofollow">coprocessor</a> to stream WAL edits out of the database as they happen. <a href="https://github.com/confluentinc/bottledwater-pg">A extensions for PostgreSQL</a> exist that lets you do the same thing.</p>
<p dir="auto">I've Googled and I've not found a way to harness the Elasticsearch translog. I've looked at the plugin APIs but not found anything that lets you get at the translog. Is there a way?</p>
</blockquote> | <p dir="auto">The analyze api currently hangs when e.g. you refer to a custom analyzer and you forget to specify the index in the url. I remember from previous versions a nice "analyzer not found" error but that now (2.0) just hangs and the logs show:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-12-02 15:27:46,621][ERROR][transport ] [Smart Alec] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@41c75d23]
java.lang.NullPointerException
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799)
at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.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)"><pre class="notranslate"><code class="notranslate">[2015-12-02 15:27:46,621][ERROR][transport ] [Smart Alec] failed to handle exception for action [indices:admin/analyze[s]], handler [org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1@41c75d23]
java.lang.NullPointerException
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:195)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.access$700(TransportSingleShardAction.java:115)
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$1.handleException(TransportSingleShardAction.java:174)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:821)
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:799)
at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:361)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.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)
</code></pre></div> | 0 |
<h2 dir="auto">Problems</h2>
<p dir="auto"><code class="notranslate">/// <reference path="..." /></code> comments (hereafter "reference directives") currently serve<br>
multiple purposes:</p>
<ul dir="auto">
<li>Including another definition file containing global declarations</li>
<li>Including another definition file containing ambient module declarations</li>
<li>Including another implementation file</li>
</ul>
<p dir="auto">The current mechanism has some common shortcomings:</p>
<ul dir="auto">
<li>Relative paths to a common typings folder can be come unwieldy</li>
<li>There's no mechanism to "override" a reference path</li>
<li>Reference directives only ever look in one place to find a file.</li>
</ul>
<p dir="auto">This has resulted in multiple issue reports of people trying to address this:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119972662" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5893" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5893/hovercard" href="https://github.com/microsoft/TypeScript/issues/5893">#5893</a> Multiple source roots - or something like classpath, like python_path, like include_path</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104604609" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4615" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4615/hovercard" href="https://github.com/microsoft/TypeScript/issues/4615">#4615</a> Support environment variables in reference paths</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126668998" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6482" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6482/hovercard" href="https://github.com/microsoft/TypeScript/issues/6482">#6482</a> Support a 'declarationPath' option</li>
</ul>
<h2 dir="auto">New Use Case in Bundled Type Acquisition</h2>
<p dir="auto">An important scenario we need to address is the case where multiple typings<br>
files need to refer to the same <em>global</em> set of types or namespaces. If these<br>
libraries refer to multiple versions of the same global types, we have no<br>
existing mechanism for resolving the conflict</p>
<h2 dir="auto">Solution: Library include directive</h2>
<h3 dir="auto">Syntax</h3>
<p dir="auto">The proposed syntax (🚲 🏠 of course) would look like this</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// <reference library="jquery/jquery.d.ts" />"><pre class="notranslate"><span class="pl-c">/// <reference library="jquery/jquery.d.ts" /></span></pre></div>
<h3 dir="auto">Behavior</h3>
<p dir="auto">This syntax means that the compiler should include the <em>first</em> file found<br>
when searching the following paths, where relative paths are resolved relative<br>
to the project root (either the location of <code class="notranslate">tsconfig.json</code>, or the common<br>
root of all input files):</p>
<ul dir="auto">
<li><code class="notranslate">./typings/jquery/jquery.d.ts</code></li>
<li><code class="notranslate">./node_modules/jquery/jquery.d.ts</code></li>
<li><code class="notranslate">./node_modules/@types/jquery/jquery.d.ts</code></li>
</ul>
<p dir="auto">This search order provides the following desirable behavior:</p>
<ul dir="auto">
<li>When needed, the user can resolve a version conflict by placing a definitive<br>
global version in the local <code class="notranslate">typings</code> folder</li>
<li>A bundled <code class="notranslate">.d.ts</code> file will be found automatically</li>
<li>A <code class="notranslate">types</code> package can fill in for libraries which don't have bundled definitions</li>
</ul>
<p dir="auto">We could conceivably allow for configuration of this search order in <code class="notranslate">tsconfig.json</code> if<br>
needed for complex scenarios.</p>
<h3 dir="auto">UMD</h3>
<p dir="auto">Additionally, when a UMD module definition is found, its global export declaration (if present)<br>
is added to the global scope.</p>
<h2 dir="auto">All-up World</h2>
<p dir="auto">Along with the rest of the typings acquisition story, we can now have a very coherent way to<br>
explain how file references should be managed in TypeScript programs:</p>
<ul dir="auto">
<li>Modules which are part of your program are always imported using <code class="notranslate">import</code></li>
<li>Modules which have definition files are always imported using <code class="notranslate">import</code>, and those <code class="notranslate">import</code>s should resolve to proper modules</li>
<li>Global definitions should always be located via <code class="notranslate">/// <reference library = ...</code> directives</li>
<li>File ordering for concatenated output is managed with <code class="notranslate">/// <reference path = ....</code> directives</li>
</ul> | <p dir="auto">Background:</p>
<p dir="auto">The build does a preprocessing step to build the <code class="notranslate">Diagnostics</code> map, which contains items naming tsc error codes and their corresponding human-readable messages. The generate-diagnostics target runs before the actual compilation step for tsc. It takes the diagnostic message from a JSON source and mangles it to create a suitable property name for the <code class="notranslate">Diagnostics</code> object.</p>
<p dir="auto">For example, given the 1100 diagnostic ("Invalid use of '{0}' in strict mode."), we create <code class="notranslate">Diagnostic.Invalid_use_of_0_in_strict_mode</code>.</p>
<p dir="auto">Because we're mangling these, processDiagnosticMessages.ts tries to go through some effort to avoid collisions in the generated property names. See <code class="notranslate">ts.buildUniqueNameMap</code>, <code class="notranslate">ts.NameGenerator.handleCollisions</code>, and others.</p>
<p dir="auto">For example, when dealing with two hypothetical diagnostic messages "Found '{0}'" and "Found 0", we wouldn't want the name-mangling to produce colliding <code class="notranslate">Found_0</code> keys for both messages.</p>
<p dir="auto">Problem:</p>
<p dir="auto">processDiagnosticMessages.ts does not succeed in its goal to properly deal with collisions.</p>
<p dir="auto">Analysis and Cause:</p>
<p dir="auto">During a visual audit of the code, before actually performing any tests against different inputs, I originally fingered the following line as problematic while eyeballing processDiagnosticMessages.ts:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" nameMap[names[i]] = uniqueNames[i];"><pre class="notranslate"><code class="notranslate"> nameMap[names[i]] = uniqueNames[i];
</code></pre></div>
<p dir="auto">This is in the context of having just produced the <code class="notranslate">uniqueNames</code> from the orginal elements of <code class="notranslate">names</code> (where <code class="notranslate">names</code> actually contains elements whose values are the diagnostic messages). The use of the two arrays are inverted.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" nameMap[uniqueNames[i]] = names[i];"><pre class="notranslate"><code class="notranslate"> nameMap[uniqueNames[i]] = names[i];
</code></pre></div>
<p dir="auto">(Again, <code class="notranslate">names[i]</code> is a bit of a misnomer. It actually contains the human-readable text of the diagnostic.)</p>
<p dir="auto">However, this does not resolve the problem. We can process Example Input 1 (adapted from the example above) and it will produce identical <code class="notranslate">Found_0</code> keys both before and after making the change above. There are actually several other problems in processDiagnosticMessages.ts wrt collision handling.</p>
<p dir="auto">The use of <code class="notranslate">buildUniqueNameMap</code> actually happens before the name-mangling (<code class="notranslate">convertPropertyName</code>) occurs, so the only time we would ever encounter a collision is if the <em>diagnostic messages</em> are exactly the same (rather than their <em>would-be mangled names</em> being the same as in Example Input). But in fact, it's not even possible for the messages to be the same, because they come from a JSON source keyed off that message, so they're already guaranteed to be unique. (Side note: add build preconditions to make sure there are no duplicate messages in the source JSON?)</p>
<p dir="auto">There's also a problem with the <code class="notranslate">isFixed</code> parameter in <code class="notranslate">handleCollisions</code>, but I will file a separate issue about that, for various reasons.</p>
<p dir="auto">Example Input:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"Found '{0}'.": {
"category": "Error",
"code": 9999
},
"Found 0.": {
"category": "Error",
"code": 9998
}
}"><pre class="notranslate"><code class="notranslate">{
"Found '{0}'.": {
"category": "Error",
"code": 9999
},
"Found 0.": {
"category": "Error",
"code": 9998
}
}
</code></pre></div> | 0 |
<p dir="auto">Per <a href="https://app.circleci.com/pipelines/github/pytorch/pytorch/144817/workflows/c0ac3f91-edb1-4294-9cf4-aad70b6a89d0/jobs/4916119" rel="nofollow">pytorch_windows_vs2019_py36_cuda10.1_test2</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ RUN ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
..\c10\test\util\Metaprogramming_test.cpp(176): error: Expected equality of these values:
2
result[0].move_count
Which is: 3
..\c10\test\util\Metaprogramming_test.cpp(178): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(180): error: Expected equality of these values:
2
result[2].move_count
Which is: 3
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
..\c10\test\util\Metaprogramming_test.cpp(194): error: Expected equality of these values:
1
result[0].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(196): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1 (0 ms)"><pre class="notranslate"><code class="notranslate">[ RUN ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
..\c10\test\util\Metaprogramming_test.cpp(176): error: Expected equality of these values:
2
result[0].move_count
Which is: 3
..\c10\test\util\Metaprogramming_test.cpp(178): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(180): error: Expected equality of these values:
2
result[2].move_count
Which is: 3
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
..\c10\test\util\Metaprogramming_test.cpp(194): error: Expected equality of these values:
1
result[0].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(196): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1 (0 ms)
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p> | <p dir="auto"><a href="https://ci.pytorch.org/jenkins/job/pytorch-builds/job/pytorch-win-ws2016-cuda9-cudnn7-py3-test2/44313/console" rel="nofollow">https://ci.pytorch.org/jenkins/job/pytorch-builds/job/pytorch-win-ws2016-cuda9-cudnn7-py3-test2/44313/console</a><br>
<a href="https://ci.pytorch.org/jenkins/job/pytorch-builds/job/pytorch-win-ws2016-cuda9-cudnn7-py3-test2/44309/console" rel="nofollow">https://ci.pytorch.org/jenkins/job/pytorch-builds/job/pytorch-win-ws2016-cuda9-cudnn7-py3-test2/44309/console</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running "C:\Jenkins\workspace\pytorch-builds\pytorch-win-ws2016-cuda9-cudnn7-py3-test2\build\win_tmp\build\torch\test\c10_Metaprogramming_test.exe"
Running main() from ..\third_party\googletest\googletest\src\gtest_main.cc
[==========] Running 14 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 14 tests from MetaprogrammingTest
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_singleInput
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_singleInput (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_movableOnly
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_movableOnly (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyCopiesIfNecessary
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyCopiesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyMovesIfNecessary
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyMovesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_keepsLValueReferencesIntact
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_keepsLValueReferencesIntact (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap
[ OK ] MetaprogrammingTest.FilterMap (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_emptyInput
[ OK ] MetaprogrammingTest.FilterMap_emptyInput (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_emptyOutput
[ OK ] MetaprogrammingTest.FilterMap_emptyOutput (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_movableOnly_byRValue
[ OK ] MetaprogrammingTest.FilterMap_movableOnly_byRValue (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_movableOnly_byValue
[ OK ] MetaprogrammingTest.FilterMap_movableOnly_byValue (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
..\c10\test\util\Metaprogramming_test.cpp(176): error: Expected equality of these values:
2
result[0].move_count
Which is: 3
..\c10\test\util\Metaprogramming_test.cpp(178): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(180): error: Expected equality of these values:
2
result[2].move_count
Which is: 3
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary (1 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
..\c10\test\util\Metaprogramming_test.cpp(194): error: Expected equality of these values:
1
result[0].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(196): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1 (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_2
[ OK ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_2 (0 ms)
[----------] 14 tests from MetaprogrammingTest (1 ms total)
[----------] Global test environment tear-down
[==========] 14 tests from 1 test case ran. (1 ms total)
[ PASSED ] 12 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
2 FAILED TESTS
Running "C:\Jenkins\workspace\pytorch-builds\pytorch-win-ws2016-cuda9-cudnn7-py3-test2\build\win_tmp\build\torch\test\module_test.exe"
Running main() from ..\third_party\googletest\googletest\src\gtest_main.cc
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from ModuleTest
[ RUN ] ModuleTest.StaticModule
unknown file: error: C++ exception with description "[enforce fail at ..\caffe2\core\module.cc:46] !HasModule(name). On Windows, LoadModule is currently not supported yet and you should use static linking for any module that you intend to use.
(no backtrace available)" thrown in the test body.
[ FAILED ] ModuleTest.StaticModule (0 ms)
[ RUN ] ModuleTest.DynamicModule
[E ..\caffe2\core\operator.cc:203] Cannot find operator schema for Caffe2ModuleTestDynamicDummy. Will skip schema checking.
..\caffe2\core\module_test.cc(68): error: Expected equality of these values:
modules.count(name)
Which is: 0
1
..\caffe2\core\module_test.cc(69): error: Value of: HasModule(name)
Actual: false
Expected: true
[E ..\caffe2\core\operator.cc:203] Cannot find operator schema for Caffe2ModuleTestDynamicDummy. Will skip schema checking.
unknown file: error: C++ exception with description "[enforce fail at ..\caffe2\core\operator.cc:273] op. Cannot create operator of type 'Caffe2ModuleTestDynamicDummy' on the device 'CPU'. Verify that implementation for the corresponding device exist. It might also happen if the binary is not linked with the operator implementation code. If Python frontend is used it might happen if dyndep.InitOpsLibrary call is missing. Operator def: type: "Caffe2ModuleTestDynamicDummy"
(no backtrace available)" thrown in the test body.
[ FAILED ] ModuleTest.DynamicModule (1 ms)
[----------] 2 tests from ModuleTest (2 ms total)
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (2 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] ModuleTest.StaticModule
[ FAILED ] ModuleTest.DynamicModule"><pre class="notranslate"><code class="notranslate">Running "C:\Jenkins\workspace\pytorch-builds\pytorch-win-ws2016-cuda9-cudnn7-py3-test2\build\win_tmp\build\torch\test\c10_Metaprogramming_test.exe"
Running main() from ..\third_party\googletest\googletest\src\gtest_main.cc
[==========] Running 14 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 14 tests from MetaprogrammingTest
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_singleInput
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_singleInput (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_movableOnly
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_movableOnly (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyCopiesIfNecessary
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyCopiesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyMovesIfNecessary
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_onlyMovesIfNecessary (0 ms)
[ RUN ] MetaprogrammingTest.ExtractArgByFilteredIndex_keepsLValueReferencesIntact
[ OK ] MetaprogrammingTest.ExtractArgByFilteredIndex_keepsLValueReferencesIntact (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap
[ OK ] MetaprogrammingTest.FilterMap (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_emptyInput
[ OK ] MetaprogrammingTest.FilterMap_emptyInput (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_emptyOutput
[ OK ] MetaprogrammingTest.FilterMap_emptyOutput (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_movableOnly_byRValue
[ OK ] MetaprogrammingTest.FilterMap_movableOnly_byRValue (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_movableOnly_byValue
[ OK ] MetaprogrammingTest.FilterMap_movableOnly_byValue (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
..\c10\test\util\Metaprogramming_test.cpp(176): error: Expected equality of these values:
2
result[0].move_count
Which is: 3
..\c10\test\util\Metaprogramming_test.cpp(178): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(180): error: Expected equality of these values:
2
result[2].move_count
Which is: 3
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary (1 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
..\c10\test\util\Metaprogramming_test.cpp(194): error: Expected equality of these values:
1
result[0].move_count
Which is: 2
..\c10\test\util\Metaprogramming_test.cpp(196): error: Expected equality of these values:
1
result[1].move_count
Which is: 2
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1 (0 ms)
[ RUN ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_2
[ OK ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_2 (0 ms)
[----------] 14 tests from MetaprogrammingTest (1 ms total)
[----------] Global test environment tear-down
[==========] 14 tests from 1 test case ran. (1 ms total)
[ PASSED ] 12 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] MetaprogrammingTest.FilterMap_onlyCopiesIfNecessary
[ FAILED ] MetaprogrammingTest.FilterMap_onlyMovesIfNecessary_1
2 FAILED TESTS
Running "C:\Jenkins\workspace\pytorch-builds\pytorch-win-ws2016-cuda9-cudnn7-py3-test2\build\win_tmp\build\torch\test\module_test.exe"
Running main() from ..\third_party\googletest\googletest\src\gtest_main.cc
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from ModuleTest
[ RUN ] ModuleTest.StaticModule
unknown file: error: C++ exception with description "[enforce fail at ..\caffe2\core\module.cc:46] !HasModule(name). On Windows, LoadModule is currently not supported yet and you should use static linking for any module that you intend to use.
(no backtrace available)" thrown in the test body.
[ FAILED ] ModuleTest.StaticModule (0 ms)
[ RUN ] ModuleTest.DynamicModule
[E ..\caffe2\core\operator.cc:203] Cannot find operator schema for Caffe2ModuleTestDynamicDummy. Will skip schema checking.
..\caffe2\core\module_test.cc(68): error: Expected equality of these values:
modules.count(name)
Which is: 0
1
..\caffe2\core\module_test.cc(69): error: Value of: HasModule(name)
Actual: false
Expected: true
[E ..\caffe2\core\operator.cc:203] Cannot find operator schema for Caffe2ModuleTestDynamicDummy. Will skip schema checking.
unknown file: error: C++ exception with description "[enforce fail at ..\caffe2\core\operator.cc:273] op. Cannot create operator of type 'Caffe2ModuleTestDynamicDummy' on the device 'CPU'. Verify that implementation for the corresponding device exist. It might also happen if the binary is not linked with the operator implementation code. If Python frontend is used it might happen if dyndep.InitOpsLibrary call is missing. Operator def: type: "Caffe2ModuleTestDynamicDummy"
(no backtrace available)" thrown in the test body.
[ FAILED ] ModuleTest.DynamicModule (1 ms)
[----------] 2 tests from ModuleTest (2 ms total)
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (2 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] ModuleTest.StaticModule
[ FAILED ] ModuleTest.DynamicModule
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p> | 1 |
<p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<p dir="auto"><code class="notranslate">softmax</code> will fail when using <code class="notranslate">value_and_grads</code> but succeed when calling it directly</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
def fn(arg_0):
return jax.nn.softmax(arg_0, axis=False).sum()
mykey = jax.random.PRNGKey(5386231)
array = jax.random.uniform(mykey, [10, 5], jax.numpy.float32, minval=-64, maxval=0)
arg_0 = array.clone()
print(fn(arg_0))
# 5
arg_0 = array.clone()
jax.value_and_grad(fn, (0))(arg_0)
# ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">def</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>):
<span class="pl-k">return</span> <span class="pl-s1">jax</span>.<span class="pl-s1">nn</span>.<span class="pl-en">softmax</span>(<span class="pl-s1">arg_0</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">sum</span>()
<span class="pl-s1">mykey</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">5386231</span>)
<span class="pl-s1">array</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-s1">mykey</span>, [<span class="pl-c1">10</span>, <span class="pl-c1">5</span>], <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">minval</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">64</span>, <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-en">print</span>(<span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>))
<span class="pl-c"># 5</span>
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">fn</span>, (<span class="pl-c1">0</span>))(<span class="pl-s1">arg_0</span>)
<span class="pl-c"># ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2</span></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
JaxStackTraceBeforeTransformation Traceback (most recent call last)
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py in _run_module_as_main(***failed resolving arguments***)
196 sys.argv[0] = mod_spec.origin
--> 197 return _run_code(code, main_globals, None,
198 "__main__", mod_spec)
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py in _run_code(***failed resolving arguments***)
86 __spec__ = mod_spec)
---> 87 exec(code, run_globals)
88 return run_globals
~/Library/Python/3.9/lib/python/site-packages/ipykernel_launcher.py in <module>
15 from ipykernel import kernelapp as app
---> 16 app.launch_new_instance()
~/Library/Python/3.9/lib/python/site-packages/traitlets/config/application.py in launch_instance(***failed resolving arguments***)
844 app.initialize(argv)
--> 845 app.start()
846
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelapp.py in start(***failed resolving arguments***)
618 try:
--> 619 self.io_loop.start()
620 except KeyboardInterrupt:
~/Library/Python/3.9/lib/python/site-packages/tornado/platform/asyncio.py in start(***failed resolving arguments***)
198 asyncio.set_event_loop(self.asyncio_loop)
--> 199 self.asyncio_loop.run_forever()
200 finally:
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py in run_forever(***failed resolving arguments***)
600 while True:
--> 601 self._run_once()
602 if self._stopping:
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py in _run_once(***failed resolving arguments***)
1904 else:
-> 1905 handle._run()
1906 handle = None # Needed to break cycles when an exception occurs.
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/events.py in _run(***failed resolving arguments***)
79 try:
---> 80 self._context.run(self._callback, *self._args)
81 except (SystemExit, KeyboardInterrupt):
~/Library/Python/3.9/lib/python/site-packages/tornado/ioloop.py in <lambda>(***failed resolving arguments***)
687 future.add_done_callback(
--> 688 lambda f: self._run_callback(functools.partial(callback, future))
689 )
~/Library/Python/3.9/lib/python/site-packages/tornado/ioloop.py in _run_callback(***failed resolving arguments***)
740 try:
--> 741 ret = callback()
742 if ret is not None:
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in inner(***failed resolving arguments***)
813 f = None # noqa: F841
--> 814 self.ctx_run(self.run)
815
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in run(***failed resolving arguments***)
774 else:
--> 775 yielded = self.gen.send(value)
776
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in process_one(***failed resolving arguments***)
357 return None
--> 358 yield gen.maybe_future(dispatch(*args))
359
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in dispatch_shell(***failed resolving arguments***)
260 try:
--> 261 yield gen.maybe_future(handler(stream, idents, msg))
262 except Exception:
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in execute_request(***failed resolving arguments***)
535 reply_content = yield gen.maybe_future(
--> 536 self.do_execute(
537 code, silent, store_history,
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/ipkernel.py in do_execute(***failed resolving arguments***)
301 # letting shell dispatch to loop runners
--> 302 res = shell.run_cell(code, store_history=store_history, silent=silent)
303 finally:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/zmqshell.py in run_cell(***failed resolving arguments***)
538 self._last_traceback = None
--> 539 return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
540
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_cell(***failed resolving arguments***)
2897 try:
-> 2898 result = self._run_cell(
2899 raw_cell, store_history, silent, shell_futures)
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in _run_cell(***failed resolving arguments***)
2943 try:
-> 2944 return runner(coro)
2945 except BaseException as e:
~/Library/Python/3.9/lib/python/site-packages/IPython/core/async_helpers.py in _pseudo_sync_runner(***failed resolving arguments***)
67 try:
---> 68 coro.send(None)
69 except StopIteration as exc:
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_cell_async(***failed resolving arguments***)
3168
-> 3169 has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
3170 interactivity=interactivity, compiler=compiler, result=result)
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_ast_nodes(***failed resolving arguments***)
3360 asy = compare(code)
-> 3361 if (await self.run_code(code, result, async_=asy)):
3362 return True
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_code(***failed resolving arguments***)
3440 else:
-> 3441 exec(code_obj, self.user_global_ns, self.user_ns)
3442 finally:
<ipython-input-14-5a11ff1b18d5> in <module>
16 arg_0 = arg_0_array.clone()
---> 17 results['res_2'], _ = jax.value_and_grad(fn, (0))(arg_0)
18 except Exception as e:
<ipython-input-14-5a11ff1b18d5> in fn(***failed resolving arguments***)
4 axis = False
----> 5 return jax.nn.softmax(arg_0, axis=axis).sum()
6 try:
/usr/local/lib/python3.9/site-packages/jax/_src/nn/functions.py in softmax(***failed resolving arguments***)
333 unnormalized = jnp.exp(x - lax.stop_gradient(x_max))
--> 334 return unnormalized / jnp.sum(unnormalized, axis, where=where, keepdims=True)
335
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in sum(***failed resolving arguments***)
164 out=None, keepdims=None, initial=None, where=None):
--> 165 return _reduce_sum(a, axis=_ensure_optional_axes(axis), dtype=dtype, out=out,
166 keepdims=keepdims, initial=initial, where=where)
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in _reduce_sum(***failed resolving arguments***)
156 dtype=None, out=None, keepdims=None, initial=None, where=None):
--> 157 return _reduction(a, "sum", np.sum, lax.add, 0,
158 bool_op=lax.bitwise_or, upcast_f16_for_computation=True,
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in _reduction(***failed resolving arguments***)
97 else:
---> 98 result = lax.reduce(a, init_val, op, dims)
99 if initial is not None:
JaxStackTraceBeforeTransformation: ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2
The preceding stack trace is the source of the JAX operation that, once transformed by JAX, triggered the following exception.
--------------------
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
<ipython-input-23-cba934583f87> in <module>
11
12 arg_0 = array.clone()
---> 13 jax.value_and_grad(fn, (0))(arg_0)
[... skipping hidden 23 frame]
<__array_function__ internals> in delete(*args, **kwargs)
/usr/local/lib/python3.9/site-packages/numpy/lib/function_base.py in delete(arr, obj, axis)
4470 if obj.dtype == bool:
4471 if obj.shape != (N,):
-> 4472 raise ValueError('boolean array argument obj to delete '
4473 'must be one dimensional and match the axis '
4474 'length of {}'.format(N))
ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
JaxStackTraceBeforeTransformation Traceback (most recent call last)
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py in _run_module_as_main(***failed resolving arguments***)
196 sys.argv[0] = mod_spec.origin
--> 197 return _run_code(code, main_globals, None,
198 "__main__", mod_spec)
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py in _run_code(***failed resolving arguments***)
86 __spec__ = mod_spec)
---> 87 exec(code, run_globals)
88 return run_globals
~/Library/Python/3.9/lib/python/site-packages/ipykernel_launcher.py in <module>
15 from ipykernel import kernelapp as app
---> 16 app.launch_new_instance()
~/Library/Python/3.9/lib/python/site-packages/traitlets/config/application.py in launch_instance(***failed resolving arguments***)
844 app.initialize(argv)
--> 845 app.start()
846
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelapp.py in start(***failed resolving arguments***)
618 try:
--> 619 self.io_loop.start()
620 except KeyboardInterrupt:
~/Library/Python/3.9/lib/python/site-packages/tornado/platform/asyncio.py in start(***failed resolving arguments***)
198 asyncio.set_event_loop(self.asyncio_loop)
--> 199 self.asyncio_loop.run_forever()
200 finally:
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py in run_forever(***failed resolving arguments***)
600 while True:
--> 601 self._run_once()
602 if self._stopping:
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py in _run_once(***failed resolving arguments***)
1904 else:
-> 1905 handle._run()
1906 handle = None # Needed to break cycles when an exception occurs.
/usr/local/Cellar/[email protected]/3.9.12_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/events.py in _run(***failed resolving arguments***)
79 try:
---> 80 self._context.run(self._callback, *self._args)
81 except (SystemExit, KeyboardInterrupt):
~/Library/Python/3.9/lib/python/site-packages/tornado/ioloop.py in <lambda>(***failed resolving arguments***)
687 future.add_done_callback(
--> 688 lambda f: self._run_callback(functools.partial(callback, future))
689 )
~/Library/Python/3.9/lib/python/site-packages/tornado/ioloop.py in _run_callback(***failed resolving arguments***)
740 try:
--> 741 ret = callback()
742 if ret is not None:
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in inner(***failed resolving arguments***)
813 f = None # noqa: F841
--> 814 self.ctx_run(self.run)
815
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in run(***failed resolving arguments***)
774 else:
--> 775 yielded = self.gen.send(value)
776
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in process_one(***failed resolving arguments***)
357 return None
--> 358 yield gen.maybe_future(dispatch(*args))
359
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in dispatch_shell(***failed resolving arguments***)
260 try:
--> 261 yield gen.maybe_future(handler(stream, idents, msg))
262 except Exception:
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/kernelbase.py in execute_request(***failed resolving arguments***)
535 reply_content = yield gen.maybe_future(
--> 536 self.do_execute(
537 code, silent, store_history,
~/Library/Python/3.9/lib/python/site-packages/tornado/gen.py in wrapper(***failed resolving arguments***)
233 try:
--> 234 yielded = ctx_run(next, result)
235 except (StopIteration, Return) as e:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/ipkernel.py in do_execute(***failed resolving arguments***)
301 # letting shell dispatch to loop runners
--> 302 res = shell.run_cell(code, store_history=store_history, silent=silent)
303 finally:
~/Library/Python/3.9/lib/python/site-packages/ipykernel/zmqshell.py in run_cell(***failed resolving arguments***)
538 self._last_traceback = None
--> 539 return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
540
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_cell(***failed resolving arguments***)
2897 try:
-> 2898 result = self._run_cell(
2899 raw_cell, store_history, silent, shell_futures)
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in _run_cell(***failed resolving arguments***)
2943 try:
-> 2944 return runner(coro)
2945 except BaseException as e:
~/Library/Python/3.9/lib/python/site-packages/IPython/core/async_helpers.py in _pseudo_sync_runner(***failed resolving arguments***)
67 try:
---> 68 coro.send(None)
69 except StopIteration as exc:
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_cell_async(***failed resolving arguments***)
3168
-> 3169 has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
3170 interactivity=interactivity, compiler=compiler, result=result)
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_ast_nodes(***failed resolving arguments***)
3360 asy = compare(code)
-> 3361 if (await self.run_code(code, result, async_=asy)):
3362 return True
~/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py in run_code(***failed resolving arguments***)
3440 else:
-> 3441 exec(code_obj, self.user_global_ns, self.user_ns)
3442 finally:
<ipython-input-14-5a11ff1b18d5> in <module>
16 arg_0 = arg_0_array.clone()
---> 17 results['res_2'], _ = jax.value_and_grad(fn, (0))(arg_0)
18 except Exception as e:
<ipython-input-14-5a11ff1b18d5> in fn(***failed resolving arguments***)
4 axis = False
----> 5 return jax.nn.softmax(arg_0, axis=axis).sum()
6 try:
/usr/local/lib/python3.9/site-packages/jax/_src/nn/functions.py in softmax(***failed resolving arguments***)
333 unnormalized = jnp.exp(x - lax.stop_gradient(x_max))
--> 334 return unnormalized / jnp.sum(unnormalized, axis, where=where, keepdims=True)
335
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in sum(***failed resolving arguments***)
164 out=None, keepdims=None, initial=None, where=None):
--> 165 return _reduce_sum(a, axis=_ensure_optional_axes(axis), dtype=dtype, out=out,
166 keepdims=keepdims, initial=initial, where=where)
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in _reduce_sum(***failed resolving arguments***)
156 dtype=None, out=None, keepdims=None, initial=None, where=None):
--> 157 return _reduction(a, "sum", np.sum, lax.add, 0,
158 bool_op=lax.bitwise_or, upcast_f16_for_computation=True,
/usr/local/lib/python3.9/site-packages/jax/_src/numpy/reductions.py in _reduction(***failed resolving arguments***)
97 else:
---> 98 result = lax.reduce(a, init_val, op, dims)
99 if initial is not None:
JaxStackTraceBeforeTransformation: ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2
The preceding stack trace is the source of the JAX operation that, once transformed by JAX, triggered the following exception.
--------------------
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
<ipython-input-23-cba934583f87> in <module>
11
12 arg_0 = array.clone()
---> 13 jax.value_and_grad(fn, (0))(arg_0)
[... skipping hidden 23 frame]
<__array_function__ internals> in delete(*args, **kwargs)
/usr/local/lib/python3.9/site-packages/numpy/lib/function_base.py in delete(arr, obj, axis)
4470 if obj.dtype == bool:
4471 if obj.shape != (N,):
-> 4472 raise ValueError('boolean array argument obj to delete '
4473 'must be one dimensional and match the axis '
4474 'length of {}'.format(N))
ValueError: boolean array argument obj to delete must be one dimensional and match the axis length of 2
</code></pre></div> | <p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<p dir="auto"><code class="notranslate">cummax, cummin, cumprod</code> will succeed when using <code class="notranslate">value_and_grads</code> but fail if directly call</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
def fn(arg_0):
axis = -1
return jax.lax.cummax(arg_0, axis=axis).sum()
mykey = jax.random.PRNGKey(14830444)
array = jax.random.uniform(mykey, [2, 3], jax.numpy.float32, minval=0, maxval=128)
try:
arg_0 = array.clone()
res1 = fn(arg_0)
except Exception as e:
print(e)
arg_0 = array.clone()
res2, _ = jax.value_and_grad(fn, (0))(arg_0)
print(res2)
# axis -1 is out of bounds for array of shape (2, 3)
# 676.8106"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">def</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>):
<span class="pl-s1">axis</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-k">return</span> <span class="pl-s1">jax</span>.<span class="pl-s1">lax</span>.<span class="pl-en">cummax</span>(<span class="pl-s1">arg_0</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>).<span class="pl-en">sum</span>()
<span class="pl-s1">mykey</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">14830444</span>)
<span class="pl-s1">array</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-s1">mykey</span>, [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">minval</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-c1">128</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res1</span> <span class="pl-c1">=</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-en">print</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res2</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">fn</span>, (<span class="pl-c1">0</span>))(<span class="pl-s1">arg_0</span>)
<span class="pl-en">print</span>(<span class="pl-s1">res2</span>)
<span class="pl-c"># axis -1 is out of bounds for array of shape (2, 3)</span>
<span class="pl-c"># 676.8106</span></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
def fn(arg_0):
axis = -1
return jax.lax.cummin(arg_0, axis=axis).sum()
mykey = jax.random.PRNGKey(14830444)
array = jax.random.uniform(mykey, [2, 3], jax.numpy.float32, minval=0, maxval=128)
try:
arg_0 = array.clone()
res1 = fn(arg_0)
except Exception as e:
print(e)
arg_0 = array.clone()
res2, _ = jax.value_and_grad(fn, (0))(arg_0)
print(res2)
# axis -1 is out of bounds for array of shape (2, 3)
# 549.35925"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">def</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>):
<span class="pl-s1">axis</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-k">return</span> <span class="pl-s1">jax</span>.<span class="pl-s1">lax</span>.<span class="pl-en">cummin</span>(<span class="pl-s1">arg_0</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>).<span class="pl-en">sum</span>()
<span class="pl-s1">mykey</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">14830444</span>)
<span class="pl-s1">array</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-s1">mykey</span>, [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">minval</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-c1">128</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res1</span> <span class="pl-c1">=</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-en">print</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res2</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">fn</span>, (<span class="pl-c1">0</span>))(<span class="pl-s1">arg_0</span>)
<span class="pl-en">print</span>(<span class="pl-s1">res2</span>)
<span class="pl-c"># axis -1 is out of bounds for array of shape (2, 3)</span>
<span class="pl-c"># 549.35925</span></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax
def fn(arg_0):
axis = -1
return jax.lax.cumprod(arg_0, axis=axis).sum()
mykey = jax.random.PRNGKey(14830444)
array = jax.random.uniform(mykey, [2, 3], jax.numpy.float32, minval=0, maxval=128)
try:
arg_0 = array.clone()
res1 = fn(arg_0)
except Exception as e:
print(e)
arg_0 = array.clone()
res2, _ = jax.value_and_grad(fn, (0))(arg_0)
print(res2)
# axis -1 is out of bounds for array of shape (2, 3)
# 1533018.6"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-k">def</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>):
<span class="pl-s1">axis</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-k">return</span> <span class="pl-s1">jax</span>.<span class="pl-s1">lax</span>.<span class="pl-en">cumprod</span>(<span class="pl-s1">arg_0</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>).<span class="pl-en">sum</span>()
<span class="pl-s1">mykey</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">14830444</span>)
<span class="pl-s1">array</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-en">uniform</span>(<span class="pl-s1">mykey</span>, [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">minval</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-c1">128</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res1</span> <span class="pl-c1">=</span> <span class="pl-en">fn</span>(<span class="pl-s1">arg_0</span>)
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>:
<span class="pl-en">print</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">arg_0</span> <span class="pl-c1">=</span> <span class="pl-s1">array</span>.<span class="pl-en">clone</span>()
<span class="pl-s1">res2</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-en">value_and_grad</span>(<span class="pl-s1">fn</span>, (<span class="pl-c1">0</span>))(<span class="pl-s1">arg_0</span>)
<span class="pl-en">print</span>(<span class="pl-s1">res2</span>)
<span class="pl-c"># axis -1 is out of bounds for array of shape (2, 3)</span>
<span class="pl-c"># 1533018.6</span></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-b034345b2caa> in <module>
15
16 arg_0 = array.clone()
---> 17 res1 = fn(arg_0)
<ipython-input-9-b034345b2caa> in fn(arg_0)
3 def fn(arg_0):
4 axis = -1
----> 5 return jax.lax.cummin(arg_0, axis=axis).sum()
6
7 mykey = jax.random.PRNGKey(14830444)
/usr/local/lib/python3.9/site-packages/jax/_src/lax/control_flow.py in cummin(operand, axis, reverse)
2869 def cummin(operand: Array, axis: int = 0, reverse: bool = False) -> Array:
2870 """Computes a cumulative minimum along `axis`."""
-> 2871 return cummin_p.bind(operand, axis=int(axis), reverse=bool(reverse))
2872
2873 def _cumred_shape_rule(x, *, axis: int, reverse: bool):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind(self, *args, **params)
321 assert (not config.jax_enable_checks or
322 all(isinstance(arg, Tracer) or valid_jaxtype(arg) for arg in args)), args
--> 323 return self.bind_with_trace(find_top_trace(args), args, params)
324
325 def bind_with_trace(self, trace, args, params):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind_with_trace(self, trace, args, params)
324
325 def bind_with_trace(self, trace, args, params):
--> 326 out = trace.process_primitive(self, map(trace.full_raise, args), params)
327 return map(full_lower, out) if self.multiple_results else full_lower(out)
328
/usr/local/lib/python3.9/site-packages/jax/core.py in process_primitive(self, primitive, tracers, params)
673
674 def process_primitive(self, primitive, tracers, params):
--> 675 return primitive.impl(*tracers, **params)
676
677 def process_call(self, primitive, f, tracers, params):
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in apply_primitive(prim, *args, **params)
96 def apply_primitive(prim, *args, **params):
97 """Impl rule that compiles and runs a single primitive 'prim' using XLA."""
---> 98 compiled_fun = xla_primitive_callable(prim, *unsafe_map(arg_spec, args),
99 **params)
100 return compiled_fun(*args)
/usr/local/lib/python3.9/site-packages/jax/_src/util.py in wrapper(*args, **kwargs)
217 return f(*args, **kwargs)
218 else:
--> 219 return cached(config._trace_context(), *args, **kwargs)
220
221 wrapper.cache_clear = cached.cache_clear
/usr/local/lib/python3.9/site-packages/jax/_src/util.py in cached(_, *args, **kwargs)
210 @functools.lru_cache(max_size)
211 def cached(_, *args, **kwargs):
--> 212 return f(*args, **kwargs)
213
214 @functools.wraps(f)
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in xla_primitive_callable(prim, *arg_specs, **params)
146 else:
147 return out,
--> 148 compiled = _xla_callable_uncached(lu.wrap_init(prim_fun), device, None,
149 prim.name, donated_invars, False, *arg_specs)
150 if not prim.multiple_results:
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in _xla_callable_uncached(fun, device, backend, name, donated_invars, keep_unused, *arg_specs)
228 def _xla_callable_uncached(fun: lu.WrappedFun, device, backend, name,
229 donated_invars, keep_unused, *arg_specs):
--> 230 return lower_xla_callable(fun, device, backend, name, donated_invars, False,
231 keep_unused, *arg_specs).compile().unsafe_call
232
/usr/local/lib/python3.9/site-packages/jax/_src/profiler.py in wrapper(*args, **kwargs)
204 def wrapper(*args, **kwargs):
205 with TraceAnnotation(name, **decorator_kwargs):
--> 206 return func(*args, **kwargs)
207 return wrapper
208 return wrapper
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in lower_xla_callable(fun, device, backend, name, donated_invars, always_lower, keep_unused, *arg_specs)
270 with log_elapsed_time(f"Finished tracing + transforming {fun.__name__} "
271 "for jit in {elapsed_time} sec"):
--> 272 jaxpr, out_avals, consts = pe.trace_to_jaxpr_final(
273 fun, abstract_args, pe.debug_info_final(fun, "jit"), which_explicit)
274 if any(isinstance(c, core.Tracer) for c in consts):
/usr/local/lib/python3.9/site-packages/jax/_src/profiler.py in wrapper(*args, **kwargs)
204 def wrapper(*args, **kwargs):
205 with TraceAnnotation(name, **decorator_kwargs):
--> 206 return func(*args, **kwargs)
207 return wrapper
208 return wrapper
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in trace_to_jaxpr_final(fun, in_avals, debug_info, keep_inputs)
1891 main.jaxpr_stack = () # type: ignore
1892 with core.new_sublevel():
-> 1893 jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic(
1894 fun, main, in_avals, keep_inputs=keep_inputs)
1895 del fun, main
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in trace_to_subjaxpr_dynamic(fun, main, in_avals, keep_inputs)
1863 in_tracers = _input_type_to_tracers(trace, in_avals)
1864 in_tracers_ = [t for t, keep in zip(in_tracers, keep_inputs) if keep]
-> 1865 ans = fun.call_wrapped(*in_tracers_)
1866 out_tracers = map(trace.full_raise, ans)
1867 jaxpr, consts = frame.to_jaxpr(out_tracers)
/usr/local/lib/python3.9/site-packages/jax/linear_util.py in call_wrapped(self, *args, **kwargs)
166
167 try:
--> 168 ans = self.f(*args, **dict(self.params, **kwargs))
169 except:
170 # Some transformations yield from inside context managers, so we have to
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in prim_fun(*args)
141 device = _device_from_arg_devices(arg_devices)
142 def prim_fun(*args):
--> 143 out = prim.bind(*args, **params)
144 if prim.multiple_results:
145 return out
/usr/local/lib/python3.9/site-packages/jax/core.py in bind(self, *args, **params)
321 assert (not config.jax_enable_checks or
322 all(isinstance(arg, Tracer) or valid_jaxtype(arg) for arg in args)), args
--> 323 return self.bind_with_trace(find_top_trace(args), args, params)
324
325 def bind_with_trace(self, trace, args, params):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind_with_trace(self, trace, args, params)
324
325 def bind_with_trace(self, trace, args, params):
--> 326 out = trace.process_primitive(self, map(trace.full_raise, args), params)
327 return map(full_lower, out) if self.multiple_results else full_lower(out)
328
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in process_primitive(self, primitive, tracers, params)
1558 if primitive in custom_staging_rules:
1559 return custom_staging_rules[primitive](self, *tracers, **params)
-> 1560 return self.default_process_primitive(primitive, tracers, params)
1561
1562 def default_process_primitive(self, primitive, tracers, params):
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in default_process_primitive(self, primitive, tracers, params)
1562 def default_process_primitive(self, primitive, tracers, params):
1563 avals = [t.aval for t in tracers]
-> 1564 out_avals, effects = primitive.abstract_eval(*avals, **params)
1565 out_avals = [out_avals] if not primitive.multiple_results else out_avals
1566 source_info = source_info_util.current()
/usr/local/lib/python3.9/site-packages/jax/core.py in abstract_eval_(*args, **kwargs)
357 def _effect_free_abstract_eval(abstract_eval):
358 def abstract_eval_(*args, **kwargs):
--> 359 return abstract_eval(*args, **kwargs), no_effects
360 return abstract_eval_
361
/usr/local/lib/python3.9/site-packages/jax/_src/lax/utils.py in standard_abstract_eval(prim, shape_rule, dtype_rule, weak_type_rule, named_shape_rule, *avals, **kwargs)
64 return core.ConcreteArray(out.dtype, out, weak_type=weak_type)
65 elif least_specialized is core.ShapedArray:
---> 66 return core.ShapedArray(shape_rule(*avals, **kwargs),
67 dtype_rule(*avals, **kwargs), weak_type=weak_type,
68 named_shape=named_shape_rule(*avals, **kwargs))
/usr/local/lib/python3.9/site-packages/jax/_src/lax/control_flow.py in _cumred_shape_rule(x, axis, reverse)
2873 def _cumred_shape_rule(x, *, axis: int, reverse: bool):
2874 if axis < 0 or axis >= x.ndim:
-> 2875 raise ValueError(
2876 "axis {} is out of bounds for array of shape {}".format(axis, x.shape))
2877 return x.shape
ValueError: axis -1 is out of bounds for array of shape (2, 3)"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-b034345b2caa> in <module>
15
16 arg_0 = array.clone()
---> 17 res1 = fn(arg_0)
<ipython-input-9-b034345b2caa> in fn(arg_0)
3 def fn(arg_0):
4 axis = -1
----> 5 return jax.lax.cummin(arg_0, axis=axis).sum()
6
7 mykey = jax.random.PRNGKey(14830444)
/usr/local/lib/python3.9/site-packages/jax/_src/lax/control_flow.py in cummin(operand, axis, reverse)
2869 def cummin(operand: Array, axis: int = 0, reverse: bool = False) -> Array:
2870 """Computes a cumulative minimum along `axis`."""
-> 2871 return cummin_p.bind(operand, axis=int(axis), reverse=bool(reverse))
2872
2873 def _cumred_shape_rule(x, *, axis: int, reverse: bool):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind(self, *args, **params)
321 assert (not config.jax_enable_checks or
322 all(isinstance(arg, Tracer) or valid_jaxtype(arg) for arg in args)), args
--> 323 return self.bind_with_trace(find_top_trace(args), args, params)
324
325 def bind_with_trace(self, trace, args, params):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind_with_trace(self, trace, args, params)
324
325 def bind_with_trace(self, trace, args, params):
--> 326 out = trace.process_primitive(self, map(trace.full_raise, args), params)
327 return map(full_lower, out) if self.multiple_results else full_lower(out)
328
/usr/local/lib/python3.9/site-packages/jax/core.py in process_primitive(self, primitive, tracers, params)
673
674 def process_primitive(self, primitive, tracers, params):
--> 675 return primitive.impl(*tracers, **params)
676
677 def process_call(self, primitive, f, tracers, params):
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in apply_primitive(prim, *args, **params)
96 def apply_primitive(prim, *args, **params):
97 """Impl rule that compiles and runs a single primitive 'prim' using XLA."""
---> 98 compiled_fun = xla_primitive_callable(prim, *unsafe_map(arg_spec, args),
99 **params)
100 return compiled_fun(*args)
/usr/local/lib/python3.9/site-packages/jax/_src/util.py in wrapper(*args, **kwargs)
217 return f(*args, **kwargs)
218 else:
--> 219 return cached(config._trace_context(), *args, **kwargs)
220
221 wrapper.cache_clear = cached.cache_clear
/usr/local/lib/python3.9/site-packages/jax/_src/util.py in cached(_, *args, **kwargs)
210 @functools.lru_cache(max_size)
211 def cached(_, *args, **kwargs):
--> 212 return f(*args, **kwargs)
213
214 @functools.wraps(f)
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in xla_primitive_callable(prim, *arg_specs, **params)
146 else:
147 return out,
--> 148 compiled = _xla_callable_uncached(lu.wrap_init(prim_fun), device, None,
149 prim.name, donated_invars, False, *arg_specs)
150 if not prim.multiple_results:
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in _xla_callable_uncached(fun, device, backend, name, donated_invars, keep_unused, *arg_specs)
228 def _xla_callable_uncached(fun: lu.WrappedFun, device, backend, name,
229 donated_invars, keep_unused, *arg_specs):
--> 230 return lower_xla_callable(fun, device, backend, name, donated_invars, False,
231 keep_unused, *arg_specs).compile().unsafe_call
232
/usr/local/lib/python3.9/site-packages/jax/_src/profiler.py in wrapper(*args, **kwargs)
204 def wrapper(*args, **kwargs):
205 with TraceAnnotation(name, **decorator_kwargs):
--> 206 return func(*args, **kwargs)
207 return wrapper
208 return wrapper
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in lower_xla_callable(fun, device, backend, name, donated_invars, always_lower, keep_unused, *arg_specs)
270 with log_elapsed_time(f"Finished tracing + transforming {fun.__name__} "
271 "for jit in {elapsed_time} sec"):
--> 272 jaxpr, out_avals, consts = pe.trace_to_jaxpr_final(
273 fun, abstract_args, pe.debug_info_final(fun, "jit"), which_explicit)
274 if any(isinstance(c, core.Tracer) for c in consts):
/usr/local/lib/python3.9/site-packages/jax/_src/profiler.py in wrapper(*args, **kwargs)
204 def wrapper(*args, **kwargs):
205 with TraceAnnotation(name, **decorator_kwargs):
--> 206 return func(*args, **kwargs)
207 return wrapper
208 return wrapper
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in trace_to_jaxpr_final(fun, in_avals, debug_info, keep_inputs)
1891 main.jaxpr_stack = () # type: ignore
1892 with core.new_sublevel():
-> 1893 jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic(
1894 fun, main, in_avals, keep_inputs=keep_inputs)
1895 del fun, main
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in trace_to_subjaxpr_dynamic(fun, main, in_avals, keep_inputs)
1863 in_tracers = _input_type_to_tracers(trace, in_avals)
1864 in_tracers_ = [t for t, keep in zip(in_tracers, keep_inputs) if keep]
-> 1865 ans = fun.call_wrapped(*in_tracers_)
1866 out_tracers = map(trace.full_raise, ans)
1867 jaxpr, consts = frame.to_jaxpr(out_tracers)
/usr/local/lib/python3.9/site-packages/jax/linear_util.py in call_wrapped(self, *args, **kwargs)
166
167 try:
--> 168 ans = self.f(*args, **dict(self.params, **kwargs))
169 except:
170 # Some transformations yield from inside context managers, so we have to
/usr/local/lib/python3.9/site-packages/jax/_src/dispatch.py in prim_fun(*args)
141 device = _device_from_arg_devices(arg_devices)
142 def prim_fun(*args):
--> 143 out = prim.bind(*args, **params)
144 if prim.multiple_results:
145 return out
/usr/local/lib/python3.9/site-packages/jax/core.py in bind(self, *args, **params)
321 assert (not config.jax_enable_checks or
322 all(isinstance(arg, Tracer) or valid_jaxtype(arg) for arg in args)), args
--> 323 return self.bind_with_trace(find_top_trace(args), args, params)
324
325 def bind_with_trace(self, trace, args, params):
/usr/local/lib/python3.9/site-packages/jax/core.py in bind_with_trace(self, trace, args, params)
324
325 def bind_with_trace(self, trace, args, params):
--> 326 out = trace.process_primitive(self, map(trace.full_raise, args), params)
327 return map(full_lower, out) if self.multiple_results else full_lower(out)
328
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in process_primitive(self, primitive, tracers, params)
1558 if primitive in custom_staging_rules:
1559 return custom_staging_rules[primitive](self, *tracers, **params)
-> 1560 return self.default_process_primitive(primitive, tracers, params)
1561
1562 def default_process_primitive(self, primitive, tracers, params):
/usr/local/lib/python3.9/site-packages/jax/interpreters/partial_eval.py in default_process_primitive(self, primitive, tracers, params)
1562 def default_process_primitive(self, primitive, tracers, params):
1563 avals = [t.aval for t in tracers]
-> 1564 out_avals, effects = primitive.abstract_eval(*avals, **params)
1565 out_avals = [out_avals] if not primitive.multiple_results else out_avals
1566 source_info = source_info_util.current()
/usr/local/lib/python3.9/site-packages/jax/core.py in abstract_eval_(*args, **kwargs)
357 def _effect_free_abstract_eval(abstract_eval):
358 def abstract_eval_(*args, **kwargs):
--> 359 return abstract_eval(*args, **kwargs), no_effects
360 return abstract_eval_
361
/usr/local/lib/python3.9/site-packages/jax/_src/lax/utils.py in standard_abstract_eval(prim, shape_rule, dtype_rule, weak_type_rule, named_shape_rule, *avals, **kwargs)
64 return core.ConcreteArray(out.dtype, out, weak_type=weak_type)
65 elif least_specialized is core.ShapedArray:
---> 66 return core.ShapedArray(shape_rule(*avals, **kwargs),
67 dtype_rule(*avals, **kwargs), weak_type=weak_type,
68 named_shape=named_shape_rule(*avals, **kwargs))
/usr/local/lib/python3.9/site-packages/jax/_src/lax/control_flow.py in _cumred_shape_rule(x, axis, reverse)
2873 def _cumred_shape_rule(x, *, axis: int, reverse: bool):
2874 if axis < 0 or axis >= x.ndim:
-> 2875 raise ValueError(
2876 "axis {} is out of bounds for array of shape {}".format(axis, x.shape))
2877 return x.shape
ValueError: axis -1 is out of bounds for array of shape (2, 3)
</code></pre></div>
<p dir="auto">version: 0.3.13</p> | 1 |
<ul dir="auto">
<li>*<em>I'm submitting a ... *</em><br>
[x ] bug report</li>
</ul>
<p dir="auto">I have a datamodel where Danish characters are used e.g. 'ø'. This works fine in my components. When I try to bind to a model entity which contains a Danish character, I get an error though.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ=$event] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
at new BaseException (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:7385:21)
at TemplateParser.parse (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24039:15)
at https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24744:54
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1243:24)
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:13456:32)
at zoneBoundFn (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1220:26)
at lib$es6$promise$$internal$$tryCatch (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:468:17)
at lib$es6$promise$$internal$$invokeCallback (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:480:18)
at lib$es6$promise$$internal$$publish (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:451:12)
at https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:123:10"><pre class="notranslate"><code class="notranslate">Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
Lexer Error: Unexpected character [Ø] at column 7 in expression [testVarØ=$event] ("
<div>
<h2>Hello {{name}}</h2>
<input [ERROR ->][(ngModel)]="testVarØ" type="text"/>
</div>
"): App@3:13
at new BaseException (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:7385:21)
at TemplateParser.parse (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24039:15)
at https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:24744:54
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1243:24)
at Zone.run (https://code.angularjs.org/2.0.0-beta.8/angular2.dev.js:13456:32)
at zoneBoundFn (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:1220:26)
at lib$es6$promise$$internal$$tryCatch (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:468:17)
at lib$es6$promise$$internal$$invokeCallback (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:480:18)
at lib$es6$promise$$internal$$publish (https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:451:12)
at https://code.angularjs.org/2.0.0-beta.8/angular2-polyfills.js:123:10
</code></pre></div>
<p dir="auto">I have reproduced the problem here:<br>
<a href="http://plnkr.co/edit/KEC0GQFYuotdnhP3XxAV?p=info" rel="nofollow">http://plnkr.co/edit/KEC0GQFYuotdnhP3XxAV?p=info</a></p>
<ul dir="auto">
<li>Angular version: 2.0.0-beta.8</li>
<li>Browser: [all ]</li>
<li>Language: [all]</li>
</ul> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When using async validators together with sync validators, the errors from sync validators have no effect, when async validator is resolved</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Even when an async validator resolves without errors, the validation errors of the sync validators (e.g. required) should be reported</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
here is the plunker <a href="https://plnkr.co/edit/JOVCMycssT0c7vcZa6jZ" rel="nofollow">https://plnkr.co/edit/JOVCMycssT0c7vcZa6jZ</a></p>
<p dir="auto">initially the input field is marked as invalid due to the <code class="notranslate">required</code> validator. When input is changed, the custom async validator kicks in. When the input is cleared, the async validator reports a success and this marks the field as valid.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.4</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/mu4q63db/1/" rel="nofollow">https://jsfiddle.net/mu4q63db/1/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Select a period radio button</li>
<li>Hit Monthly and Daily back and forth</li>
<li>Sometimes maybe select a period radio button again</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">the v-model for period should always select a radio button when being rendered</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Sometimes, no radio button will be selected even when the corresponding v-model variable (period_month) still has its previous value.</p>
<hr>
<p dir="auto">This is reproducible, but sometimes it can take a few clicks to get it to happen.</p> | <h3 dir="auto">Vue.js version</h3>
<p dir="auto">Most recent</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto"><a href="https://jsfiddle.net/mo48q36L/" rel="nofollow">https://jsfiddle.net/mo48q36L/</a></p>
<p dir="auto">Each custom select element has a togglable option to represent an option that might change in real-world conditions. I want to prevent the value in vue and the value in the select element from being out of sync.</p>
<p dir="auto">To do this, I compare the value of the select element and the value in vue in the <code class="notranslate">updated</code> lifecycle hook. If they're not equal, that means that the corresponding option no longer exists, so I want to simply set the value of both to be null.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Click the "Toggle option" buttons below each custom select element, which will remove the currently selected element.</p>
<p dir="auto">The top element (custom-select) does emit the null value, but the dom isn't updated until something else triggers a dom update. If vue devtools worked on jsfiddle, you would also be able to notice that the corresponding data value in the parent component is immediately updated after emitting null, but the value prop in the child component is not updated until the dom updates.</p>
<p dir="auto">The bottom element (custom-select-next-tick) emits the null value in <code class="notranslate">$nextTick</code>, and the dom is updated in the next tick as it should be.</p>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">I expect that emitting a new value in <code class="notranslate">updated</code> should trigger a new dom update.</p>
<p dir="auto">The docs suggest that the dom will be updated by manipulating state in <code class="notranslate">updated</code>: <a href="https://vuejs.org/v2/api/#updated" rel="nofollow">https://vuejs.org/v2/api/#updated</a></p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Emitting a new value in <code class="notranslate">updated</code> is not triggering a dom update or v-model <code class="notranslate">value</code> change unless it's wrapped in <code class="notranslate">$nextTick</code>.</p>
<p dir="auto">Thank you!</p> | 0 |
<p dir="auto">nosetests is no longer maintained and contains deprecated code (inspect.getargspec). It might not keep working with future versions of python. Should we create a plan to move to py.tests?</p> | <h4 dir="auto">Describe the workflow you want to enable</h4>
<p dir="auto">Hi all,<br>
I regularly have to estimate Ridge regressions with a large number of different targets and vastly different signal-to-noise ratios across targets. The optimal regularization per target therefore differs quite a lot. RidgeCV currently estimates the optimal regularization <strong>across all targets</strong>, which can lead to quite sub-optimal performance in the situation I describe.</p>
<h4 dir="auto">Describe your proposed solution</h4>
<p dir="auto">Since RidgeCV evaluates every possible for every target anyway, one can easily get the best alpha per target as well - however, this does not work with GridSearchCV as is. I'm not sure what the best approach to change this would be - I assume it would be necessary to allow multiple scores for a Ridge estimator, as well as adapting ParameterGrid to allow arrays as an individual parameter.<br>
This might warrant too many changes to the inner working of sklearn's model_selection for a use-case that's too specialized (it's hard for me to judge that).<br>
If you think it's worth having this feature, I'm happy to tackle it and discuss what solution might be best.</p>
<h4 dir="auto">Additional context</h4>
<p dir="auto">This problem arises frequently in neuroimaging, where people solve this by either writing their own gridsearch or using individual Ridge estimators per target, but I assume this is a common problem in other fields as well.</p> | 0 |
<p dir="auto">When I perform the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Import relevant libraries
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
# set up the dataframe
ids = range(12)
surv = [0,0,1,1] * 3
fare = list(range(3, 3*13, 3))
sex = ['m', 'f', 'f', 'm'] * 3
emb = ['A'] * 4 +['B']*4 + ['C'] * 4
titles = ['id', 'Survived', 'Fare', 'Sex', 'Embarked']
data = pd.DataFrame(columns=titles)
data['id'] = ids
data['Survived'] = surv
data['Fare'] = fare
data['Sex'] =sex
data['Embarked'] = emb
# inspect the data - esp. values for fare and sex
data"><pre class="notranslate"><code class="notranslate"># Import relevant libraries
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
# set up the dataframe
ids = range(12)
surv = [0,0,1,1] * 3
fare = list(range(3, 3*13, 3))
sex = ['m', 'f', 'f', 'm'] * 3
emb = ['A'] * 4 +['B']*4 + ['C'] * 4
titles = ['id', 'Survived', 'Fare', 'Sex', 'Embarked']
data = pd.DataFrame(columns=titles)
data['id'] = ids
data['Survived'] = surv
data['Fare'] = fare
data['Sex'] =sex
data['Embarked'] = emb
# inspect the data - esp. values for fare and sex
data
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1828588/25071180/f0c68ae8-22b0-11e7-9290-bb235b445b80.png"><img width="268" alt="data" src="https://cloud.githubusercontent.com/assets/1828588/25071180/f0c68ae8-22b0-11e7-9290-bb235b445b80.png" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# plot the data - here the bug manifests
grid = sns.FacetGrid(data, row='Embarked', col='Survived', size=2.2, aspect=1.6)
grid.map(sns.barplot, 'Sex', 'Fare', alpha=.5, ci=None)
grid.add_legend()"><pre class="notranslate"><code class="notranslate"># plot the data - here the bug manifests
grid = sns.FacetGrid(data, row='Embarked', col='Survived', size=2.2, aspect=1.6)
grid.map(sns.barplot, 'Sex', 'Fare', alpha=.5, ci=None)
grid.add_legend()
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1828588/25071175/c4466574-22b0-11e7-81b5-7aa732e05785.png"><img width="520" alt="facetgrid" src="https://cloud.githubusercontent.com/assets/1828588/25071175/c4466574-22b0-11e7-81b5-7aa732e05785.png" style="max-width: 100%;"></a></p>
As you can see, the order of the 'm' and 'f' bars in the graphs in the first columns have been switched, even though the labels on the axes suggest otherwise.
<p dir="auto">Versions:<br>
pandas : 0.19.2<br>
seaborn : 0.7.1<br>
matplotlib: 2.0.0</p> | <p dir="auto">The <code class="notranslate">area</code> method for calculating the width of boxenplot letter-value boxes is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'area': lambda h, i, k: (1 - 2**(-k + i - 2)) / h}"><pre class="notranslate"><code class="notranslate">'area': lambda h, i, k: (1 - 2**(-k + i - 2)) / h}
</code></pre></div>
<p dir="auto">in <a href="https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L1890">https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L1890</a></p>
<p dir="auto">IIUC, in order for the area to be proportional to the percentage of data covered, as documented (<a href="https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L2672">https://github.com/mwaskom/seaborn/blob/master/seaborn/categorical.py#L2672</a>), the formula should rather be:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'area': lambda h, i, k: (1 - 2**(-k + i - 1)) / h}"><pre class="notranslate"><code class="notranslate">'area': lambda h, i, k: (1 - 2**(-k + i - 1)) / h}
</code></pre></div> | 0 |
<p dir="auto">The second comparison crashes. Probably due to weird alignment.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tag modlist = [int];
fn main() {
let ml = modlist([]);
assert ml == modlist([]);
assert ml == modlist([]);
} "><pre class="notranslate"><code class="notranslate">tag modlist = [int];
fn main() {
let ml = modlist([]);
assert ml == modlist([]);
assert ml == modlist([]);
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==27842== Thread 2:
==27842== Invalid read of size 8
==27842== at 0x50FA892: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_vec0() (rust_shape.h:964)
==27842== by 0x50FA084: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:372)
==27842== by 0x50F6879: shape::cmp::walk_variant2(shape::tag_info&, unsigned long, std::pair<unsigned char const*, unsigned char const*>) (rust_shape.cpp:423)
==27842== by 0x50F6914: shape::cmp::walk_tag2(shape::tag_info&, shape::data_pair<unsigned long> const&) (rust_shape.h:955)
==27842== by 0x50F98E5: shape::data<shape::cmp, shape::ptr_pair>::walk_tag1(shape::tag_info&) (rust_shape.h:993)
==27842== by 0x50F9A8C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_tag0() (rust_shape.h:468)
==27842== by 0x50F9F6C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:373)
==27842== by 0x50F6732: shape_cmp_type (rust_shape.cpp:542)
==27842== by 0x5101E48: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== by 0x64A06AF: ???
==27842== by 0x64A5FEF: ???
==27842== by 0x533482F: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== Address 0x100000000064ac1 is not stack'd, malloc'd or (recently) free'd"><pre class="notranslate"><code class="notranslate">==27842== Thread 2:
==27842== Invalid read of size 8
==27842== at 0x50FA892: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_vec0() (rust_shape.h:964)
==27842== by 0x50FA084: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:372)
==27842== by 0x50F6879: shape::cmp::walk_variant2(shape::tag_info&, unsigned long, std::pair<unsigned char const*, unsigned char const*>) (rust_shape.cpp:423)
==27842== by 0x50F6914: shape::cmp::walk_tag2(shape::tag_info&, shape::data_pair<unsigned long> const&) (rust_shape.h:955)
==27842== by 0x50F98E5: shape::data<shape::cmp, shape::ptr_pair>::walk_tag1(shape::tag_info&) (rust_shape.h:993)
==27842== by 0x50F9A8C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk_tag0() (rust_shape.h:468)
==27842== by 0x50F9F6C: shape::ctxt<shape::data<shape::cmp, shape::ptr_pair> >::walk() (rust_shape.h:373)
==27842== by 0x50F6732: shape_cmp_type (rust_shape.cpp:542)
==27842== by 0x5101E48: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== by 0x64A06AF: ???
==27842== by 0x64A5FEF: ???
==27842== by 0x533482F: ??? (in /home/brian/dev/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so)
==27842== Address 0x100000000064ac1 is not stack'd, malloc'd or (recently) free'd
</code></pre></div> | 0 |
|
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6012322/12772350/8038511a-ca6b-11e5-8ea6-f225686b3a25.png"><img src="https://cloud.githubusercontent.com/assets/6012322/12772350/8038511a-ca6b-11e5-8ea6-f225686b3a25.png" alt="image" style="max-width: 100%;"></a><br>
why?</p> | <p dir="auto">jQuery contains something along this lines:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if ( typeof module === "object" && typeof module.exports === "object" ) {
// set jQuery in `module`
} else {
// set jQuery in `window`
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-k">typeof</span> <span class="pl-smi">module</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-c1">&&</span> <span class="pl-k">typeof</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// set jQuery in `module`</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-c">// set jQuery in `window`</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">module is defined, even in the browser-side scripts. This causes jQuery to ignore the <code class="notranslate">window</code> object and use <code class="notranslate">module</code>, so the other scripts won't find <code class="notranslate">$</code> nor <code class="notranslate">jQuery</code> in global scope..</p>
<p dir="auto">I am not sure if this is a jQuery or atom-shell bug, but I wanted to put this on the web, so others won't search as long as I did.</p> | 1 |
<p dir="auto">Hi, I am building a desktop app with Electron and I am using <code class="notranslate">electron-prebuit</code> in development.</p>
<p dir="auto">My issue is that I would like to use the <kbd>⌘</kbd> + <kbd>W</kbd> shortcut (on my Mac)..</p>
<p dir="auto">This does not happen in the built version of my app though. Happens only in development.</p>
<p dir="auto">I mentioned this in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="154902421" data-permission-text="Title is private" data-url="https://github.com/electron-userland/electron-prebuilt/issues/129" data-hovercard-type="issue" data-hovercard-url="/electron-userland/electron-prebuilt/issues/129/hovercard" href="https://github.com/electron-userland/electron-prebuilt/issues/129">electron-userland/electron-prebuilt#129</a>, but I was prompted to mention in here actually.</p> | <ul dir="auto">
<li>Electron version: 1.0.1</li>
<li>Operating system: OS X 10.11.2</li>
</ul>
<p dir="auto">After using [email protected] <strong>cmd-w</strong> doesn't close windows on mac, you have to click the red circle to close the window. However, it works when you execute the app with <strong>electron .</strong></p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.